[PATCH] tcrypt: add hash speed tests for hmac().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Karl Hiramoto <karl@xxxxxxxxxxxx>
---
 crypto/tcrypt.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 001f07c..fb57ad7 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1510,6 +1510,37 @@ static int do_test(int m)
 		test_hash_speed("crct10dif", sec, generic_hash_speed_template);
 		if (mode > 300 && mode < 400) break;
 
+	case 319:
+		test_hash_speed("hmac(md5)", sec, hash_speed_template_16);
+		if (mode > 300 && mode < 400) break;
+	case 320:
+		test_hash_speed("hmac(sha1)", sec, hash_speed_template_16);
+		if (mode > 300 && mode < 400) break;
+
+	case 321:
+		test_hash_speed("hmac(sha256)", sec, hash_speed_template_16);
+		if (mode > 300 && mode < 400) break;
+
+	case 322:
+		test_hash_speed("hmac(sha384)", sec, hash_speed_template_16);
+		if (mode > 300 && mode < 400) break;
+	case 323:
+		test_hash_speed("hmac(sha512)", sec, hash_speed_template_16);
+		if (mode > 300 && mode < 400) break;
+	case 324:
+		test_hash_speed("hmac(sha224)", sec, hash_speed_template_16);
+		if (mode > 300 && mode < 400) break;
+
+	case 325:
+		test_hash_speed("hmac(rmd128)", sec, hash_speed_template_16);
+		if (mode > 300 && mode < 400) break;
+	case 326:
+		test_hash_speed("hmac(rmd160)", sec, hash_speed_template_16);
+		if (mode > 300 && mode < 400) break;
+	case 327:
+		test_hash_speed("hmac(crc32)", sec, hash_speed_template_16);
+		if (mode > 300 && mode < 400) break;
+
 	case 399:
 		break;
 
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux