diff options
author | Eric Biggers | 2018-12-06 13:00:08 -0800 |
---|---|---|
committer | Herbert Xu | 2018-12-13 18:24:59 +0800 |
commit | 282c14852d00d6d1b8fadf3e01e4180f02ddda84 (patch) | |
tree | b53a81a4fe030f050facafeaed28f3bdcbb50890 /LICENSES/preferred/LGPL-2.0 | |
parent | 5569e8c07447344cdc3771378ba4e0da0b94c2a4 (diff) |
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 'LICENSES/preferred/LGPL-2.0')
0 files changed, 0 insertions, 0 deletions