Skip to contentSkip to conversation

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

PATCH Superseded Aleksander Jan Bajkowski 3 participants 3 messages Feb 7 – Mar 2

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

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

Test vector was generated using a software implementation and then double checked on Mediatek MT7981 (safexcel) and NXP P2020 (talitos). Both platforms pass self-tests.

---
 crypto/testmgr.c |  7 ++++++
 crypto/testmgr.h | 57 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)
crypto/testmgr.c +7 -0
index 3d60d9ae9416..a14829b67894 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(des))",
+		.generic_driver = "authenc(hmac-md5-lib,cbc(des-generic))",
+		.test = alg_test_aead,
+		.suite = {
+			.aead = __VECS(hmac_md5_des_cbc_tv_temp)
+		}
 	}, {
 		.alg = "authenc(hmac(md5),cbc(des3_ede))",
 		.generic_driver = "authenc(hmac-md5-lib,cbc(des3_ede-generic))",
crypto/testmgr.h +57 -0

63 lines not on this page · raw message

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

Test vector was generated using a software implementation and then double checked on Mediatek MT7981 (safexcel) and NXP P2020 (talitos). Both platforms pass self-tests.

---
 crypto/testmgr.c |  7 ++++++
 crypto/testmgr.h | 57 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 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
#2 lore raw
In reply to Aleksander Jan Bajkowski
Quoted 3 lines · Aleksander Jan Bajkowski

Test vector was generated using a software implementation and then double checked on Mediatek MT7981 (safexcel) and NXP P2020 (talitos). Both platforms pass self-tests.

It would be better to just remove the support for these obsolete algorithms from the drivers that support them.

- Eric