summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-01-01 15:59:28 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-11 08:17:01 +1100
commit28490fc45d799a7d45a6f005bf1f77fb9b8f39f9 (patch)
tree8b578d79050c0e628ae4a1820f47546c74b12acc /crypto/tcrypt.c
parentbaece5759dbbe1cc0277271a39c9ec3fbb6b41d4 (diff)
downloadlinux-crypto-28490fc45d799a7d45a6f005bf1f77fb9b8f39f9.tar.gz
linux-crypto-28490fc45d799a7d45a6f005bf1f77fb9b8f39f9.zip
[CRYPTO] tcrypt: Make xcbc available as a standalone test
Currently the gcm(aes) tests have to be taken together with all other algorithms. This patch makes it available by itself at number 106. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/tcrypt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 72073ef4..1ab8c017 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1608,11 +1608,17 @@ static void do_test(void)
test_hash("hmac(sha512)", hmac_sha512_tv_template,
HMAC_SHA512_TEST_VECTORS);
break;
+
case 105:
test_hash("hmac(sha224)", hmac_sha224_tv_template,
HMAC_SHA224_TEST_VECTORS);
break;
+ case 106:
+ test_hash("xcbc(aes)", aes_xcbc128_tv_template,
+ XCBC_AES_TEST_VECTORS);
+ break;
+
case 200:
test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0,
aes_speed_template);