Skip to contentSkip to conversation

crypto: testmgr: add support for aes ofb mode

PATCH In review [email protected] 2 participants 2 messages Apr 26, 2011 – May 4, 2011 1 message not in the archive

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

PATCH v3 1/1 crypto: testmgr: add support for aes ofb mode

From: puneet saxena <[email protected]>

the fix add testcase for testing aes ofb mode.

---
v3: fix indentation

 crypto/testmgr.c |   16 ++++++++++++++
 crypto/testmgr.h |   62 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 76 insertions(+), 2 deletions(-)
crypto/testmgr.c +16 -0
index 2854865..b6b93d4 100644
@@ -2219,6 +2219,22 @@ static const struct alg_test_desc alg_test_descs[] = {
 			}
 		}
 	}, {
+		.alg = "ofb(aes)",
+		.test = alg_test_skcipher,
+		.fips_allowed = 1,
+		.suite = {
+			.cipher = {
+				.enc = {
+					.vecs = aes_ofb_enc_tv_template,
+					.count = AES_OFB_ENC_TEST_VECTORS
+				},
+				.dec = {
+					.vecs = aes_ofb_dec_tv_template,
+					.count = AES_OFB_DEC_TEST_VECTORS
+				}
+			}
+		}
+	}, {
 		.alg = "pcbc(fcrypt)",
 		.test = alg_test_skcipher,
 		.suite = {
crypto/testmgr.h +60 -2

80 lines not on this page · raw message

Signature · 1 line
1.7.1.1

A message that is not in the archive (sent off-list or not yet received): 1303809071-4081-1-git-send-email-puneets-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org