crypto: nhpoly1305 - add a test vector with len % 16 != 0
authorEric Biggers <ebiggers@google.com>
Thu, 14 Feb 2019 18:27:48 +0000 (10:27 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Feb 2019 04:47:27 +0000 (12:47 +0800)
commit367ecc07314a650084f8a46fe3ce550a9cdabef3
tree805a24bb35f6e5f9c8c78d3017ecb3a9fdb29f21
parent511306b2d075e3cb1e5dd805bffcf4041535f2b5
crypto: nhpoly1305 - add a test vector with len % 16 != 0

This is needed to test that the end of the message is zero-padded when
the length is not a multiple of 16 (NH_MESSAGE_UNIT).  It's already
tested indirectly by the 31-byte Adiantum test vector, but it should be
tested directly at the nhpoly1305 level too.

As with the other nhpoly1305 test vectors, this was 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