diff options
| author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-08-14 14:28:15 +0100 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-12-14 15:00:51 +0100 |
| commit | 704fadfe120c3813610f0b2063bbd33b34d8c4df (patch) | |
| tree | 11b85c6159f4edcd6e5c2fec0344e468f45a77bc /crypto/testmgr.h | |
| parent | 86978d6bbff1f22c69537af55a479c80e4672e71 (diff) | |
UPSTREAM: crypto: testmgr - add chunked test cases for chacha20
We failed to catch a bug in the chacha20 code after porting it to the
skcipher API. We would have caught it if any chunked tests had been
defined, so define some now so we will catch future regressions.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 549f64153c354e69fc19534f7d7e867de1992f95)
Change-Id: Ic4ebc0feb0c26a1fb06cba49ecbab97a9edb995f
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'crypto/testmgr.h')
| -rw-r--r-- | crypto/testmgr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h index 76add5cf5..31b9234b9 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h @@ -26004,6 +26004,10 @@ static struct cipher_testvec chacha20_enc_tv_template[] = { "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd" "\xc4\xfd\x80\x6c\x22\xf2\x21", .rlen = 375, + .also_non_np = 1, + .np = 3, + .tap = { 375 - 20, 4, 16 }, + }, { /* RFC7539 A.2. Test Vector #3 */ .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" @@ -26378,6 +26382,9 @@ static struct cipher_testvec chacha20_enc_tv_template[] = { "\xa1\xed\xad\xd5\x76\xfa\x24\x8f" "\x98", .rlen = 1281, + .also_non_np = 1, + .np = 3, + .tap = { 1200, 1, 80 }, }, }; |
