From aa06ff6ff84baafcac76b48d7a0dcd4f9d00d7d2 Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 25 Apr 2023 15:48:48 +0000 Subject: Wire up truncated SHA-2, SHA-3 and related things from jsing --- src/lib/libcrypto/rsa/rsa_pmeth.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/rsa') diff --git a/src/lib/libcrypto/rsa/rsa_pmeth.c b/src/lib/libcrypto/rsa/rsa_pmeth.c index 688c0d64db..8e06365566 100644 --- a/src/lib/libcrypto/rsa/rsa_pmeth.c +++ b/src/lib/libcrypto/rsa/rsa_pmeth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_pmeth.c,v 1.36 2023/04/15 18:48:52 tb Exp $ */ +/* $OpenBSD: rsa_pmeth.c,v 1.37 2023/04/25 15:48:48 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -371,12 +371,19 @@ check_padding_md(const EVP_MD *md, int padding) } /* List of all supported RSA digests. */ + /* RFC 8017 and NIST CSOR. */ switch(EVP_MD_type(md)) { case NID_sha1: case NID_sha224: case NID_sha256: case NID_sha384: case NID_sha512: + case NID_sha512_224: + case NID_sha512_256: + case NID_sha3_224: + case NID_sha3_256: + case NID_sha3_384: + case NID_sha3_512: case NID_md5: case NID_md5_sha1: case NID_md4: -- cgit v1.2.3-55-g6feb