Skip to contentSkip to conversation

crypto: testmgr: add twofish tests

PATCH In review Jussi Kivilinna 2 participants 2 messages Oct 10, 2011 – Oct 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: testmgr: add twofish tests

Add tests for parallel twofish-x86_64-3way code paths.

---
 crypto/tcrypt.c  |    1 
 crypto/testmgr.c |   15 ++++
 crypto/testmgr.h |  226 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 238 insertions(+), 4 deletions(-)
crypto/tcrypt.c +1 -0
index 91f3ab4..0c4e80f 100644
@@ -788,6 +788,7 @@ static int do_test(int m)
 	case 8:
 		ret += tcrypt_test("ecb(twofish)");
 		ret += tcrypt_test("cbc(twofish)");
+		ret += tcrypt_test("ctr(twofish)");
 		break;
 
 	case 9:
crypto/testmgr.c +15 -0
index 466f9c0..e91c1eb 100644
@@ -1771,6 +1771,21 @@ static const struct alg_test_desc alg_test_descs[] = {
 			}
 		}
 	}, {
+		.alg = "ctr(twofish)",
+		.test = alg_test_skcipher,
+		.suite = {
+			.cipher = {
+				.enc = {
+					.vecs = tf_ctr_enc_tv_template,
+					.count = TF_CTR_ENC_TEST_VECTORS
+				},
+				.dec = {
+					.vecs = tf_ctr_dec_tv_template,
+					.count = TF_CTR_DEC_TEST_VECTORS
+				}
+			}
+		}
+	}, {
 		.alg = "cts(cbc(aes))",
 		.test = alg_test_skcipher,
 		.suite = {
crypto/testmgr.h +222 -4

256 lines not on this page · raw message

maintainer
#1 lore raw
Quoted 3 lines · Jussi Kivilinna

Add tests for parallel twofish-x86_64-3way code paths.

Both patches 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