diff options
author | Eric Biggers <ebiggers@google.com> | 2018-12-06 13:00:08 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-12-13 18:24:59 +0800 |
commit | b5447b3e05f148d4eb8ff16cebb47aae3a787b00 (patch) | |
tree | 3d13bef3e08fd81f66c1e6cfe09ff69cae09037c /crypto/cmac.c | |
parent | bdba3e3cfa401adee4dcaf4c34db27b4190dfcd9 (diff) | |
download | linux-crypto-b5447b3e05f148d4eb8ff16cebb47aae3a787b00.tar.gz linux-crypto-b5447b3e05f148d4eb8ff16cebb47aae3a787b00.zip |
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>
Diffstat (limited to 'crypto/cmac.c')
0 files changed, 0 insertions, 0 deletions