]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4c05ccd0204cc339e4b90cc3c843ed449612d72
treee7aad4184e7727396465e8839c9e858212bc01b0
parent3879afa02aa6594c9d62187afdada5b32efabdec
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