summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-08-05 15:28:54 -0700
committerEric Biggers <ebiggers@kernel.org>2025-08-26 12:52:28 -0400
commitba8ee22a7f924ba10571b31f8a2e5aa1cf479308 (patch)
treed249d17729562255b21ab71345eff46078cdd695 /crypto/testmgr.c
parenta1848f6e382145e0200843549f24f5af4b5c8136 (diff)
crypto: md5 - Wrap library and add HMAC support
Reimplement crypto/md5.c on top of the new MD5 library functions. Also add support for HMAC-MD5, again just wrapping the library functions. This closely mirrors crypto/sha1.c. Link: https://lore.kernel.org/r/20250805222855.10362-7-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index ee33ba21ae2b..beab926ba102 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -4178,6 +4178,7 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}, {
.alg = "authenc(hmac(md5),ecb(cipher_null))",
+ .generic_driver = "authenc(hmac-md5-lib,ecb-cipher_null)",
.test = alg_test_aead,
.suite = {
.aead = __VECS(hmac_md5_ecb_cipher_null_tv_template)
@@ -5064,6 +5065,7 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}, {
.alg = "hmac(md5)",
+ .generic_driver = "hmac-md5-lib",
.test = alg_test_hash,
.suite = {
.hash = __VECS(hmac_md5_tv_template)
@@ -5250,6 +5252,7 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}, {
.alg = "md5",
+ .generic_driver = "md5-lib",
.test = alg_test_hash,
.suite = {
.hash = __VECS(md5_tv_template)