]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - crypto/testmgr.h
crypto: adiantum - add 1536 and 4096-byte test vectors
authorEric Biggers <ebiggers@google.com>
Thu, 14 Feb 2019 18:29:39 +0000 (10:29 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Feb 2019 04:47:27 +0000 (12:47 +0800)
commit333e664772c5b8cfd5c019e300b378cd9d1c5ae3
tree9392c82dd5680f412121648a222e49f8ac810706
parent367ecc07314a650084f8a46fe3ce550a9cdabef3
crypto: adiantum - add 1536 and 4096-byte test vectors

Add 1536 and 4096-byte Adiantum test vectors so that the case where
there are multiple NH hashes is tested.  This is already tested by the
nhpoly1305 test vectors, but it should be tested at the Adiantum level
too.  Moreover the 4096-byte case is especially important.

As with the other Adiantum test vectors, these were generated by the
reference Python implementation at https://github.com/google/adiantum
and then automatically formatted for testmgr by a script.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.h