crypto: testmgr - Add test vectors for authenc(hmac(sha1),rfc3686(ctr(aes)))
Subsystems (2)
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
@@ -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
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
@@ -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
PATCH v2 3/5 crypto: testmgr - Add test vectors for authenc(hmac(sha256),rfc3686(ctr(aes)))
In reply to Aleksander Jan BajkowskiTest 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
@@ -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
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
@@ -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
PATCH v2 5/5 crypto: testmgr - Add test vectors for authenc(hmac(sha512),rfc3686(ctr(aes)))
In reply to Aleksander Jan BajkowskiTest 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
@@ -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
Herbert Xu
maintainerQuoted 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
Signed-off-by Aleksander Jan Bajkowski <[email protected]>---
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