aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorHoria Geanta <horia.geanta@freescale.com>2014-03-14 11:46:51 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-03-21 09:54:27 -0400
commitbca4feb0d4fe2d5da1a0f31ef89f63709aba4906 (patch)
tree35f55c781ce29e88edc0594e2d663464ede00ca5 /crypto/tcrypt.c
parent72567258f0643eda5d622be16e35fb933aa6146e (diff)
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 0d9003ae8c61..870be7b4dc05 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1511,6 +1511,14 @@ static int do_test(int m)
1511 ret += tcrypt_test("authenc(hmac(sha1),cbc(aes))"); 1511 ret += tcrypt_test("authenc(hmac(sha1),cbc(aes))");
1512 break; 1512 break;
1513 1513
1514 case 156:
1515 ret += tcrypt_test("authenc(hmac(md5),ecb(cipher_null))");
1516 break;
1517
1518 case 157:
1519 ret += tcrypt_test("authenc(hmac(sha1),ecb(cipher_null))");
1520 break;
1521
1514 case 200: 1522 case 200:
1515 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, 1523 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0,
1516 speed_template_16_24_32); 1524 speed_template_16_24_32);