Skip to contentSkip to conversation

crypto: testmgr - Add test vectors for authenc(hmac(sha1),rfc3686(ctr(aes)))

PATCH In review Aleksander Jan Bajkowski 2 participants 6 messages Mar 5 – Mar 14

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

PATCH v2 1/5 crypto: testmgr - Add test vectors for authenc(hmac(sha1),rfc3686(ctr(aes)))

Test vectors were generated starting from existing RFC3686(CTR(AES)) test vectors and adding HMAC(SHA1) computed with software implementation. Then, the results were double-checked on Mediatek MT7986 (safexcel). Platform pass self-tests.

---
v2:
- rename aes-generic -> aes-lib

---
 crypto/testmgr.c |   6 +-
 crypto/testmgr.h | 221 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 226 insertions(+), 1 deletion(-)
crypto/testmgr.c +5 -1
index 4985411dedae..abbaaafa2502 100644
@@ -4128,8 +4128,12 @@ static const struct alg_test_desc alg_test_descs[] = {
 		}
 	}, {
 		.alg = "authenc(hmac(sha1),rfc3686(ctr(aes)))",
-		.test = alg_test_null,
+		.generic_driver = "authenc(hmac-sha1-lib,rfc3686(ctr(aes-lib)))",
+		.test = alg_test_aead,
 		.fips_allowed = 1,
+		.suite = {
+			.aead = __VECS(hmac_sha1_aes_ctr_rfc3686_tv_temp)
+		}
 	}, {
 		.alg = "authenc(hmac(sha224),cbc(aes))",
 		.generic_driver = "authenc(hmac-sha224-lib,cbc(aes-lib))",
crypto/testmgr.h +221 -0

227 lines not on this page · raw message

Signature · 1 line
2.47.3
#1 lore raw

PATCH v2 2/5 crypto: testmgr - Add test vectors for authenc(hmac(sha224),rfc3686(ctr(aes)))

Test vectors were generated starting from existing RFC3686(CTR(AES)) test vectors and adding HMAC(SHA224) computed with software implementation. Then, the results were double-checked on Mediatek MT7986 (safexcel). Platform pass self-tests.

---
v2:
- rename aes-generic -> aes-lib

---
 crypto/testmgr.c |   6 +-
 crypto/testmgr.h | 235 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 240 insertions(+), 1 deletion(-)
crypto/testmgr.c +5 -1
index abbaaafa2502..b0d2d7538e98 100644
@@ -4157,8 +4157,12 @@ static const struct alg_test_desc alg_test_descs[] = {
 		}
 	}, {
 		.alg = "authenc(hmac(sha224),rfc3686(ctr(aes)))",
-		.test = alg_test_null,
+		.generic_driver = "authenc(hmac-sha224-lib,rfc3686(ctr(aes-lib)))",
+		.test = alg_test_aead,
 		.fips_allowed = 1,
+		.suite = {
+			.aead = __VECS(hmac_sha224_aes_ctr_rfc3686_tv_temp)
+		}
 	}, {
 		.alg = "authenc(hmac(sha256),cbc(aes))",
 		.generic_driver = "authenc(hmac-sha256-lib,cbc(aes-lib))",
crypto/testmgr.h +235 -0

241 lines not on this page · raw message

Signature · 1 line
2.47.3
#2 lore raw

PATCH v2 3/5 crypto: testmgr - Add test vectors for authenc(hmac(sha256),rfc3686(ctr(aes)))

In reply to Aleksander Jan Bajkowski

Test vectors were generated starting from existing RFC3686(CTR(AES)) test vectors and adding HMAC(SHA256) computed with software implementation. Then, the results were double-checked on Mediatek MT7986 (safexcel). Platform pass self-tests.

---
v2:
- rename aes-generic -> aes-lib

---
 crypto/testmgr.c |   6 +-
 crypto/testmgr.h | 235 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 240 insertions(+), 1 deletion(-)
crypto/testmgr.c +5 -1
index b0d2d7538e98..befc46145841 100644
@@ -4198,8 +4198,12 @@ static const struct alg_test_desc alg_test_descs[] = {
 		}
 	}, {
 		.alg = "authenc(hmac(sha256),rfc3686(ctr(aes)))",
-		.test = alg_test_null,
+		.generic_driver = "authenc(hmac-sha256-lib,rfc3686(ctr(aes-lib)))",
+		.test = alg_test_aead,
 		.fips_allowed = 1,
+		.suite = {
+			.aead = __VECS(hmac_sha256_aes_ctr_rfc3686_tv_temp)
+		}
 	}, {
 		.alg = "authenc(hmac(sha384),cbc(aes))",
 		.generic_driver = "authenc(hmac-sha384-lib,cbc(aes-lib))",
crypto/testmgr.h +235 -0

241 lines not on this page · raw message

Signature · 1 line
2.47.3
#3 lore raw

PATCH v2 4/5 crypto: testmgr - Add test vectors for authenc(hmac(sha384),rfc3686(ctr(aes)))

In reply to Aleksander Jan Bajkowski

Test vectors were generated starting from existing RFC3686(CTR(AES)) test
vectors and adding HMAC(SHA384) computed with software implementation. Then, the results were double-checked on Mediatek MT7986 (safexcel). Platform pass self-tests.

---
v2:
- rename aes-generic -> aes-lib

---
 crypto/testmgr.c |   6 +-
 crypto/testmgr.h | 263 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 268 insertions(+), 1 deletion(-)
crypto/testmgr.c +5 -1
index befc46145841..04be77aa15f1 100644
@@ -4238,8 +4238,12 @@ static const struct alg_test_desc alg_test_descs[] = {
 		}
 	}, {
 		.alg = "authenc(hmac(sha384),rfc3686(ctr(aes)))",
-		.test = alg_test_null,
+		.generic_driver = "authenc(hmac-sha384-lib,rfc3686(ctr(aes-lib)))",
+		.test = alg_test_aead,
 		.fips_allowed = 1,
+		.suite = {
+			.aead = __VECS(hmac_sha384_aes_ctr_rfc3686_tv_temp)
+		}
 	}, {
 		.alg = "authenc(hmac(sha512),cbc(aes))",
 		.generic_driver = "authenc(hmac-sha512-lib,cbc(aes-lib))",
crypto/testmgr.h +263 -0

269 lines not on this page · raw message

Signature · 1 line
2.47.3
#4 lore raw

PATCH v2 5/5 crypto: testmgr - Add test vectors for authenc(hmac(sha512),rfc3686(ctr(aes)))

In reply to Aleksander Jan Bajkowski

Test vectors were generated starting from existing RFC3686(CTR(AES)) test vectors and adding HMAC(SHA512) computed with software implementation. Then, the results were double-checked on Mediatek MT7986 (safexcel). Platform pass self-tests.

---
v2:
- rename aes-generic -> aes-lib

---
 crypto/testmgr.c |   6 +-
 crypto/testmgr.h | 291 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 296 insertions(+), 1 deletion(-)
crypto/testmgr.c +5 -1
index 04be77aa15f1..8c34d6f8f139 100644
@@ -4272,8 +4272,12 @@ static const struct alg_test_desc alg_test_descs[] = {
 		.fips_allowed = 1,
 	}, {
 		.alg = "authenc(hmac(sha512),rfc3686(ctr(aes)))",
-		.test = alg_test_null,
+		.generic_driver = "authenc(hmac-sha512-lib,rfc3686(ctr(aes-lib)))",
+		.test = alg_test_aead,
 		.fips_allowed = 1,
+		.suite = {
+			.aead = __VECS(hmac_sha512_aes_ctr_rfc3686_tv_temp)
+		}
 	}, {
 		.alg = "blake2b-160",
 		.generic_driver = "blake2b-160-lib",
crypto/testmgr.h +291 -0

297 lines not on this page · raw message

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

Test vectors were generated starting from existing RFC3686(CTR(AES)) test vectors and adding HMAC(SHA1) computed with software implementation. Then, the results were double-checked on Mediatek MT7986 (safexcel). Platform pass self-tests.

Quoted 8 lines

---
v2:
- rename aes-generic -> aes-lib

---
 crypto/testmgr.c |   6 +-
 crypto/testmgr.h | 221 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 226 insertions(+), 1 deletion(-)

All 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