From: tb Date: Sat, 27 Jan 2024 16:18:25 +0000 (+0000) Subject: Support HMAC with SHA-3 as a PBE PRF X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f5e924a1f59045385fca7a6e7edfbf7c5769ac06;p=openbsd Support HMAC with SHA-3 as a PBE PRF ok jsing --- diff --git a/lib/libcrypto/evp/evp_pbe.c b/lib/libcrypto/evp/evp_pbe.c index ed5f97b6e70..12292ab7289 100644 --- a/lib/libcrypto/evp/evp_pbe.c +++ b/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]))