OSDN Git Service

crypto: xchacha20 - fix comments for test vectors
authorEric Biggers <ebiggers@google.com>
Thu, 6 Dec 2018 21:00:08 +0000 (13:00 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:59 +0000 (18:24 +0800)
commit282c14852d00d6d1b8fadf3e01e4180f02ddda84
treeb53a81a4fe030f050facafeaed28f3bdcbb50890
parent5569e8c07447344cdc3771378ba4e0da0b94c2a4
crypto: xchacha20 - fix comments for test vectors

The kernel's ChaCha20 uses the RFC7539 convention of the nonce being 12
bytes rather than 8, so actually I only appended 12 random bytes (not
16) to its test vectors to form 24-byte nonces for the XChaCha20 test
vectors.  The other 4 bytes were just from zero-padding the stream
position to 8 bytes.  Fix the comments above the test vectors.

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