From 6dc773214b8d9d19fc8d7052f2c24be65fd5a3d6 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 27 Jan 2024 16:18:25 +0000 Subject: Support HMAC with SHA-3 as a PBE PRF ok jsing --- src/lib/libcrypto/evp/evp_pbe.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/libcrypto/evp/evp_pbe.c b/src/lib/libcrypto/evp/evp_pbe.c index ed5f97b6e7..12292ab728 100644 --- a/src/lib/libcrypto/evp/evp_pbe.c +++ b/src/lib/libcrypto/evp/evp_pbe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_pbe.c,v 1.35 2024/01/27 16:17:32 tb Exp $ */ +/* $OpenBSD: evp_pbe.c,v 1.36 2024/01/27 16:18:25 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -226,6 +226,26 @@ static const struct pbe_config pbe_prf[] = { .cipher_nid = -1, .md_nid = NID_sha512_256, }, + { + .pbe_nid = NID_hmac_sha3_224, + .cipher_nid = -1, + .md_nid = NID_sha3_224, + }, + { + .pbe_nid = NID_hmac_sha3_256, + .cipher_nid = -1, + .md_nid = NID_sha3_256, + }, + { + .pbe_nid = NID_hmac_sha3_384, + .cipher_nid = -1, + .md_nid = NID_sha3_384, + }, + { + .pbe_nid = NID_hmac_sha3_512, + .cipher_nid = -1, + .md_nid = NID_sha3_512, + }, }; #define N_PBE_PRF (sizeof(pbe_prf) / sizeof(pbe_prf[0])) -- cgit v1.2.3-55-g6feb