Re: [PATCH] crypto: nhpoly1305 - add a test vector with len % 16 != 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 14, 2019 at 10:27:48AM -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
> 
> 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@xxxxxxxxxx>
> ---
>  crypto/testmgr.h | 144 +++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 144 insertions(+)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux