aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-31 23:59:28 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 16:17:01 -0500
commit38ed9ab23b8614c9c1553b2961ef2627f3088fd9 (patch)
treef2423c248bf6349de34e6d68f27c908b26639a9d /crypto
parent94765b9e4cba8e3c51c292338db16aa174894d30 (diff)
[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 'crypto')
-rw-r--r--crypto/tcrypt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 72073ef4a06d..1ab8c017a011 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1608,11 +1608,17 @@ static void do_test(void)
1608 test_hash("hmac(sha512)", hmac_sha512_tv_template, 1608 test_hash("hmac(sha512)", hmac_sha512_tv_template,
1609 HMAC_SHA512_TEST_VECTORS); 1609 HMAC_SHA512_TEST_VECTORS);
1610 break; 1610 break;
1611
1611 case 105: 1612 case 105:
1612 test_hash("hmac(sha224)", hmac_sha224_tv_template, 1613 test_hash("hmac(sha224)", hmac_sha224_tv_template,
1613 HMAC_SHA224_TEST_VECTORS); 1614 HMAC_SHA224_TEST_VECTORS);
1614 break; 1615 break;
1615 1616
1617 case 106:
1618 test_hash("xcbc(aes)", aes_xcbc128_tv_template,
1619 XCBC_AES_TEST_VECTORS);
1620 break;
1621
1616 case 200: 1622 case 200:
1617 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, 1623 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0,
1618 aes_speed_template); 1624 aes_speed_template);