summaryrefslogtreecommitdiff
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-05-20 22:50:26 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2018-05-31 00:13:37 +0800
commite0028b836e4cfdffd39c124c199025eeec002ecb (patch)
treee2df84effd05b9427ffaf66daca5172fc0b484aa /crypto/testmgr.h
parent63b0319339c1ef08f94b19707238f949d78d37a3 (diff)
downloadlinux-crypto-e0028b836e4cfdffd39c124c199025eeec002ecb.tar.gz
linux-crypto-e0028b836e4cfdffd39c124c199025eeec002ecb.zip
crypto: testmgr - make an cbc(des) encryption test vector chunked
One "cbc(des)" decryption test vector doesn't exactly match an encryption test vector with input and result swapped. It's *almost* the same as one, but the decryption version is "chunked" while the encryption version is "unchunked". In preparation for removing the decryption test vectors, make the encryption one both chunked and unchunked, so we don't lose any test coverage. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
-rw-r--r--crypto/testmgr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index 0de99ebb..1e265820 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -5885,6 +5885,9 @@ static const struct cipher_testvec des_cbc_enc_tv_template[] = {
.ilen = 8,
.result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
.rlen = 8,
+ .np = 2,
+ .tap = { 4, 4 },
+ .also_non_np = 1,
}, { /* Copy of openssl vector for chunk testing */
/* From OpenSSL */
.key = "\x01\x23\x45\x67\x89\xab\xcd\xef",