crypto: testmgr - Add test vectors for authenc(hmac(md5),cbc(aes))
Subsystems (2)
PATCH v3 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.
Signed-off-by Aleksander Jan Bajkowski <[email protected]>
---
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
@@ -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-generic))", + .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