Skip to contentSkip to conversation

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

PATCH Superseded Aleksander Jan Bajkowski 1 participant 1 message Feb 28

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

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

Test vectors were generated starting from existing CBC(AES) test vectors (RFC3602, NIST SP800-38A) and adding HMAC(MD5) computed with Python script. Then, the results were double-checked on Mediatek MT7981 (safexcel) and NXP P2020 (talitos). Both platforms pass self-tests.

---
v3:
- correct sha384 -> md5 in description
v2:
- rebase and resolve conflicts

---
 crypto/testmgr.c |   7 ++
 crypto/testmgr.h | 255 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 262 insertions(+)
crypto/testmgr.c +7 -0
index 8e92971b13ec..7bd647425e3a 100644
@@ -4079,6 +4079,13 @@ static const struct alg_test_desc alg_test_descs[] = {
 		.suite = {
 			.aead = __VECS(aegis128_tv_template)
 		}
+	}, {
+		.alg = "authenc(hmac(md5),cbc(aes))",
+		.generic_driver = "authenc(hmac-md5-lib,cbc(aes-generic))",
+		.test = alg_test_aead,
+		.suite = {
+			.aead = __VECS(hmac_md5_aes_cbc_tv_temp)
+		}
 	}, {
 		.alg = "authenc(hmac(md5),cbc(des))",
 		.generic_driver = "authenc(hmac-md5-lib,cbc(des-generic))",
crypto/testmgr.h +255 -0

261 lines not on this page · raw message

Signature · 1 line
2.47.3