]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0de391f8095ed3084b979cbcd90bea843903a213
treeb53a81a4fe030f050facafeaed28f3bdcbb50890
parentd4c05ccd0204cc339e4b90cc3c843ed449612d72
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