]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - crypto/testmgr.h
crypto: xchacha - add test vector from XChaCha20 draft RFC
authorEric Biggers <ebiggers@google.com>
Thu, 6 Dec 2018 20:31:54 +0000 (12:31 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:58 +0000 (18:24 +0800)
commit5569e8c07447344cdc3771378ba4e0da0b94c2a4
treee7aad4184e7727396465e8839c9e858212bc01b0
parenta033aed5a84eb93a32929b6862602cb283d39e82
crypto: xchacha - add test vector from XChaCha20 draft RFC

There is a draft specification for XChaCha20 being worked on.  Add the
XChaCha20 test vector from the appendix so that we can be extra sure the
kernel's implementation is compatible.

I also recomputed the ciphertext with XChaCha12 and added it there too,
to keep the tests for XChaCha20 and XChaCha12 in sync.

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