aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-01 22:55:47 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 16:16:30 -0500
commit8df213d9b520a4b58b7a8f7f2200324d4e40363d (patch)
tree5d747119df4a334a4087a0ae3661214bc2dfeb06 /crypto
parent481f34ae752ac74c4cbd88a9954dd4ed10e84f81 (diff)
[CRYPTO] tcrypt: Make gcm available as a standalone test
Currently the gcm(aes) tests have to be taken together with all other ciphers. This patch makes it available by itself at number 35. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/tcrypt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 387d1053f11a..df93595c2c68 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1548,6 +1548,13 @@ static void do_test(void)
1548 SALSA20_STREAM_ENC_TEST_VECTORS); 1548 SALSA20_STREAM_ENC_TEST_VECTORS);
1549 break; 1549 break;
1550 1550
1551 case 35:
1552 test_aead("gcm(aes)", ENCRYPT, aes_gcm_enc_tv_template,
1553 AES_GCM_ENC_TEST_VECTORS);
1554 test_aead("gcm(aes)", DECRYPT, aes_gcm_dec_tv_template,
1555 AES_GCM_DEC_TEST_VECTORS);
1556 break;
1557
1551 case 100: 1558 case 100:
1552 test_hash("hmac(md5)", hmac_md5_tv_template, 1559 test_hash("hmac(md5)", hmac_md5_tv_template,
1553 HMAC_MD5_TEST_VECTORS); 1560 HMAC_MD5_TEST_VECTORS);