Skip to contentSkip to conversation

crypto: tcrypt - add missing tests for camellia and ghash

PATCH In review Jussi Kivilinna 3 participants 3 messages Sep 21, 2012 – Sep 27, 2012 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 crypto/tcrypt.c |    7 +++++++
 1 file changed, 7 insertions(+)
crypto/tcrypt.c +7 -0
index 871076b..6e8874b 100644
@@ -1118,6 +1118,9 @@ static int do_test(int m)
 	case 32:
 		ret += tcrypt_test("ecb(camellia)");
 		ret += tcrypt_test("cbc(camellia)");
+		ret += tcrypt_test("ctr(camellia)");
+		ret += tcrypt_test("lrw(camellia)");
+		ret += tcrypt_test("xts(camellia)");
 		break;
 	case 33:
 		ret += tcrypt_test("sha224");
@@ -1171,6 +1174,10 @@ static int do_test(int m)
 		ret += tcrypt_test("rfc4309(ccm(aes))");
 		break;
 
+	case 46:
+		ret += tcrypt_test("ghash");
+		break;
+
 	case 100:
 		ret += tcrypt_test("hmac(md5)");
 		break;
maintainer
#2 lore raw
Quoted 9 lines · David Miller

From: Jussi Kivilinna <[email protected]>
Date: Fri, 21 Sep 2012 10:27:10 +0300

Quoted 4 lines

Add missing tests for ctr(camellia), lrw(camellia), xts(camellia) and ghash, as these have test vectors available.

Patch applied. Thanks!

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt