summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorHoria Geanta <horia.geanta@freescale.com>2014-03-14 17:46:51 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2014-03-21 21:54:27 +0800
commit2311b3526eccbbd1c6a880a8436e752527537ec6 (patch)
treeebbf4143386cd7374ed02d5968567dc9e49e4014 /crypto/tcrypt.c
parenta11d31eb29343fcc2d5919d06ebabb92a9920993 (diff)
downloadlinux-crypto-2311b3526eccbbd1c6a880a8436e752527537ec6.tar.gz
linux-crypto-2311b3526eccbbd1c6a880a8436e752527537ec6.zip
crypto: testmgr - add aead null encryption test vectors
Add test vectors for aead with null encryption and md5, respectively sha1 authentication. Input data is taken from test vectors listed in RFC2410. Signed-off-by: Horia Geanta <horia.geanta@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r--crypto/tcrypt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 0d9003ae..870be7b4 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1511,6 +1511,14 @@ static int do_test(int m)
ret += tcrypt_test("authenc(hmac(sha1),cbc(aes))");
break;
+ case 156:
+ ret += tcrypt_test("authenc(hmac(md5),ecb(cipher_null))");
+ break;
+
+ case 157:
+ ret += tcrypt_test("authenc(hmac(sha1),ecb(cipher_null))");
+ break;
+
case 200:
test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0,
speed_template_16_24_32);