Skip to contentSkip to conversation

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

PATCH In review Aleksander Jan Bajkowski 2 participants 2 messages Jan 31 – Feb 6

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

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

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

---
v2:
- typo in commit name

---
 crypto/testmgr.c |   7 ++
 crypto/testmgr.h | 311 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 318 insertions(+)
crypto/testmgr.c +7 -0
index a302be53896d..50cf685a3c6f 100644
@@ -4174,6 +4174,13 @@ static const struct alg_test_desc alg_test_descs[] = {
 		.alg = "authenc(hmac(sha256),rfc3686(ctr(aes)))",
 		.test = alg_test_null,
 		.fips_allowed = 1,
+	}, {
+		.alg = "authenc(hmac(sha384),cbc(aes))",
+		.generic_driver = "authenc(hmac-sha384-lib,cbc(aes-generic))",
+		.test = alg_test_aead,
+		.suite = {
+			.aead = __VECS(hmac_sha384_aes_cbc_tv_temp)
+		}
 	}, {
 		.alg = "authenc(hmac(sha384),cbc(des))",
 		.generic_driver = "authenc(hmac-sha384-lib,cbc(des-generic))",
crypto/testmgr.h +311 -0

317 lines not on this page · raw message

Signature · 1 line
2.47.3
maintainer
#1 lore raw
Quoted 5 lines · Aleksander Jan Bajkowski

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

Quoted 8 lines

---
v2:
- typo in commit name

---
 crypto/testmgr.c |   7 ++
 crypto/testmgr.h | 311 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 318 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