Commit 54216bbd authored by Jussi Kivilinna's avatar Jussi Kivilinna Committed by Herbert Xu

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: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent d8a32ac2
...@@ -1112,6 +1112,9 @@ static int do_test(int m) ...@@ -1112,6 +1112,9 @@ static int do_test(int m)
case 32: case 32:
ret += tcrypt_test("ecb(camellia)"); ret += tcrypt_test("ecb(camellia)");
ret += tcrypt_test("cbc(camellia)"); ret += tcrypt_test("cbc(camellia)");
ret += tcrypt_test("ctr(camellia)");
ret += tcrypt_test("lrw(camellia)");
ret += tcrypt_test("xts(camellia)");
break; break;
case 33: case 33:
ret += tcrypt_test("sha224"); ret += tcrypt_test("sha224");
...@@ -1165,6 +1168,10 @@ static int do_test(int m) ...@@ -1165,6 +1168,10 @@ static int do_test(int m)
ret += tcrypt_test("rfc4309(ccm(aes))"); ret += tcrypt_test("rfc4309(ccm(aes))");
break; break;
case 46:
ret += tcrypt_test("ghash");
break;
case 100: case 100:
ret += tcrypt_test("hmac(md5)"); ret += tcrypt_test("hmac(md5)");
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment