Skip to contentSkip to conversation

crypto: tesmgr - add authenc(hmac(sha224),cbc(aes)) tests

PATCH New Aleksander Jan Bajkowski 1 participant 1 message Jan 29

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

PATCH 1/1 crypto: tesmgr - add authenc(hmac(sha224),cbc(aes)) tests

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

---
 crypto/testmgr.c |   7 ++
 crypto/testmgr.h | 285 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 292 insertions(+)
crypto/testmgr.c +7 -0
index a302be53896d..4fc3f994828c 100644
@@ -4123,6 +4123,13 @@ static const struct alg_test_desc alg_test_descs[] = {
 		.alg = "authenc(hmac(sha1),rfc3686(ctr(aes)))",
 		.test = alg_test_null,
 		.fips_allowed = 1,
+	}, {
+		.alg = "authenc(hmac(sha224),cbc(aes))",
+		.generic_driver = "authenc(hmac-sha224-lib,cbc(aes-generic))",
+		.test = alg_test_aead,
+		.suite = {
+			.aead = __VECS(hmac_sha224_aes_cbc_tv_temp)
+		}
 	}, {
 		.alg = "authenc(hmac(sha224),cbc(des))",
 		.generic_driver = "authenc(hmac-sha224-lib,cbc(des-generic))",
crypto/testmgr.h +285 -0

291 lines not on this page · raw message

Signature · 1 line
2.47.3