Skip to contentSkip to conversation

crypto: testmgr - Add test vectors for authenc(hmac(md5),rfc3686(ctr(aes)))

PATCH In review Aleksander Jan Bajkowski 2 participants 2 messages Mar 19 – Mar 27

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

PATCH 1/1 crypto: testmgr - Add test vectors for authenc(hmac(md5),rfc3686(ctr(aes)))

Test vectors were generated starting from existing RFC3686(CTR(AES)) test vectors and adding HMAC(MD5) computed with software implementation. Then, the results were double-checked on Mediatek MT7986 (safexcel). Platform pass self-tests.

---
 crypto/testmgr.c |   7 ++
 crypto/testmgr.h | 207 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 214 insertions(+)
crypto/testmgr.c +7 -0
index 4985411dedae..bce14894f1a2 100644
@@ -4093,6 +4093,13 @@ static const struct alg_test_desc alg_test_descs[] = {
 		.suite = {
 			.aead = __VECS(hmac_md5_ecb_cipher_null_tv_template)
 		}
+	}, {
+		.alg = "authenc(hmac(md5),rfc3686(ctr(aes)))",
+		.generic_driver = "authenc(hmac-md5-lib,rfc3686(ctr(aes-lib)))",
+		.test = alg_test_aead,
+		.suite = {
+			.aead = __VECS(hmac_md5_aes_ctr_rfc3686_tv_temp)
+		}
 	}, {
 		.alg = "authenc(hmac(sha1),cbc(aes))",
 		.generic_driver = "authenc(hmac-sha1-lib,cbc(aes-lib))",
crypto/testmgr.h +207 -0

213 lines not on this page · raw message

Signature · 1 line
2.51.0
maintainer
#1 lore raw
Quoted 10 lines · Aleksander Jan Bajkowski

Test vectors were generated starting from existing RFC3686(CTR(AES)) test vectors and adding HMAC(MD5) computed with software implementation. Then, the results were double-checked on Mediatek MT7986 (safexcel). Platform pass self-tests.

---
 crypto/testmgr.c |   7 ++
 crypto/testmgr.h | 207 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 214 insertions(+)

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