diff options
author | Eric Biggers | 2018-12-06 22:00:08 +0100 |
---|---|---|
committer | Herbert Xu | 2018-12-13 11:24:59 +0100 |
commit | 282c14852d00d6d1b8fadf3e01e4180f02ddda84 (patch) | |
tree | b53a81a4fe030f050facafeaed28f3bdcbb50890 /crypto/adiantum.c | |
parent | crypto: xchacha - add test vector from XChaCha20 draft RFC (diff) | |
download | kernel-qcow2-linux-282c14852d00d6d1b8fadf3e01e4180f02ddda84.tar.gz kernel-qcow2-linux-282c14852d00d6d1b8fadf3e01e4180f02ddda84.tar.xz kernel-qcow2-linux-282c14852d00d6d1b8fadf3e01e4180f02ddda84.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/adiantum.c')
0 files changed, 0 insertions, 0 deletions