summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_pss.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_pss.c')
-rw-r--r--src/lib/libcrypto/rsa/rsa_pss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_pss.c b/src/lib/libcrypto/rsa/rsa_pss.c
index 0860409be9..6670866ff6 100644
--- a/src/lib/libcrypto/rsa/rsa_pss.c
+++ b/src/lib/libcrypto/rsa/rsa_pss.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_pss.c,v 1.17 2023/07/08 12:26:45 beck Exp $ */ 1/* $OpenBSD: rsa_pss.c,v 1.18 2024/02/18 15:45:42 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2005. 3 * project 2005.
4 */ 4 */
@@ -92,7 +92,7 @@ RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash,
92 EVP_MD_CTX ctx; 92 EVP_MD_CTX ctx;
93 unsigned char H_[EVP_MAX_MD_SIZE]; 93 unsigned char H_[EVP_MAX_MD_SIZE];
94 94
95 EVP_MD_CTX_init(&ctx); 95 EVP_MD_CTX_legacy_clear(&ctx);
96 96
97 if (mgf1Hash == NULL) 97 if (mgf1Hash == NULL)
98 mgf1Hash = Hash; 98 mgf1Hash = Hash;
@@ -200,7 +200,7 @@ RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM,
200 unsigned char *H, *salt = NULL, *p; 200 unsigned char *H, *salt = NULL, *p;
201 EVP_MD_CTX ctx; 201 EVP_MD_CTX ctx;
202 202
203 EVP_MD_CTX_init(&ctx); 203 EVP_MD_CTX_legacy_clear(&ctx);
204 204
205 if (mgf1Hash == NULL) 205 if (mgf1Hash == NULL)
206 mgf1Hash = Hash; 206 mgf1Hash = Hash;