diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-09-21 03:27:10 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-09-27 01:32:16 -0400 |
commit | 54216bbd76aa394c93a9e92c0a2e3b314391b134 (patch) | |
tree | 92dd379bbc8d54c7f2cb1caf80c34d0b84c0c463 /crypto/tcrypt.c | |
parent | d8a32ac25698cd60b02bed2100379803c7f964e3 (diff) |
crypto: tcrypt - add missing tests for camellia and ghash
Add missing tests for ctr(camellia), lrw(camellia), xts(camellia) and ghash,
as these have test vectors available.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 1ac77b720b2d..e87fa60f5831 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -1112,6 +1112,9 @@ static int do_test(int m) | |||
1112 | case 32: | 1112 | case 32: |
1113 | ret += tcrypt_test("ecb(camellia)"); | 1113 | ret += tcrypt_test("ecb(camellia)"); |
1114 | ret += tcrypt_test("cbc(camellia)"); | 1114 | ret += tcrypt_test("cbc(camellia)"); |
1115 | ret += tcrypt_test("ctr(camellia)"); | ||
1116 | ret += tcrypt_test("lrw(camellia)"); | ||
1117 | ret += tcrypt_test("xts(camellia)"); | ||
1115 | break; | 1118 | break; |
1116 | case 33: | 1119 | case 33: |
1117 | ret += tcrypt_test("sha224"); | 1120 | ret += tcrypt_test("sha224"); |
@@ -1165,6 +1168,10 @@ static int do_test(int m) | |||
1165 | ret += tcrypt_test("rfc4309(ccm(aes))"); | 1168 | ret += tcrypt_test("rfc4309(ccm(aes))"); |
1166 | break; | 1169 | break; |
1167 | 1170 | ||
1171 | case 46: | ||
1172 | ret += tcrypt_test("ghash"); | ||
1173 | break; | ||
1174 | |||
1168 | case 100: | 1175 | case 100: |
1169 | ret += tcrypt_test("hmac(md5)"); | 1176 | ret += tcrypt_test("hmac(md5)"); |
1170 | break; | 1177 | break; |