Skip to contentSkip to conversation

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

PATCH In review Aleksander Jan Bajkowski 2 participants 5 messages Mar 3 – Apr 3

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

PATCH v4 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.

---
v4:
- rename aes-generic -> aes-lib
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..8047bae1ae9b 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-lib))",
+		.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
maintainer
#1 lore raw
Quoted 13 lines · Aleksander Jan Bajkowski

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.

---
v4:
- rename aes-generic -> aes-lib
v3:
- correct sha384 -> md5 in description
v2:
- rebase and resolve conflicts

Quoted 4 lines
---
 crypto/testmgr.c |   7 ++
 crypto/testmgr.h | 255 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 262 insertions(+)

The previous patch has already been applied. Please redo this as an incremental patch.

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

Hi Herbert,

Quoted 18 lines · Herbert Xu
Quoted 13 lines · Aleksander Jan Bajkowski

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.

---
v4:
- rename aes-generic -> aes-lib
v3:
- correct sha384 -> md5 in description
v2:
- rebase and resolve conflicts

Quoted 4 lines
---
  crypto/testmgr.c |   7 ++
  crypto/testmgr.h | 255 +++++++++++++++++++++++++++++++++++++++++++++++
  2 files changed, 262 insertions(+)
Quoted 2 lines

The previous patch has already been applied. Please redo this as an incremental patch.

Checked the crypto tree, and this patch still isn't applied. I've sent multiple test vectors, and you're probably referring to a another patch. Should I send it again, or will you accept it as is?

By the way, that's the last one. As of now, all my routers have the missing vectors added :)

Regards, Aleksander

maintainer
#3 lore raw
Quoted 7 lines · Aleksander Jan Bajkowski

Checked the crypto tree, and this patch still isn't applied. I've sent multiple test vectors, and you're probably referring to a another patch. Should I send it again, or will you accept it as is?

By the way, that's the last one. As of now, all my routers have the missing vectors added :)

Thanks I'll put the patch back into the queue.

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
maintainer
#4 lore raw
In reply to Aleksander Jan Bajkowski
Quoted 13 lines · Aleksander Jan Bajkowski

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.

---
v4:
- rename aes-generic -> aes-lib
v3:
- correct sha384 -> md5 in description
v2:
- rebase and resolve conflicts

Quoted 4 lines
---
 crypto/testmgr.c |   7 ++
 crypto/testmgr.h | 255 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 262 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