summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-05-21 07:50:28 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-05-30 18:13:38 +0200
commit4074a77d48f676e8ed9cd0141522c933109d4168 (patch)
treef2af284fce8f9aece18b0bfd1b5d90ffb7d27e2a /crypto/testmgr.h
parentcrypto: testmgr - add extra ecb(tnepres) encryption test vectors (diff)
downloadlinux-4074a77d48f676e8ed9cd0141522c933109d4168.tar.xz
linux-4074a77d48f676e8ed9cd0141522c933109d4168.zip
crypto: testmgr - add extra kw(aes) encryption test vector
One "kw(aes)" decryption test vector doesn't exactly match an encryption test vector with input and result swapped. In preparation for removing the decryption test vectors, add this test vector to the encryption test vectors, 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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index 710033dc62b4..3af6ca90f7ea 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -33695,6 +33695,19 @@ static const struct cipher_testvec aes_kw_enc_tv_template[] = {
"\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
.rlen = 16,
.iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
+ }, {
+ .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
+ "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
+ "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
+ "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
+ .klen = 32,
+ .input = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
+ "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
+ .ilen = 16,
+ .result = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
+ "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
+ .rlen = 16,
+ .iv_out = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
},
};