From 46825b346de88f3d8b554aef8711f11431f7e17c Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 18 Feb 2024 15:45:42 +0000 Subject: Use EVP_MD_CTX_legacy_clear() internally ok jsing --- src/lib/libcrypto/rsa/rsa_oaep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/rsa/rsa_oaep.c') diff --git a/src/lib/libcrypto/rsa/rsa_oaep.c b/src/lib/libcrypto/rsa/rsa_oaep.c index c2c3a61daa..4927673898 100644 --- a/src/lib/libcrypto/rsa/rsa_oaep.c +++ b/src/lib/libcrypto/rsa/rsa_oaep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_oaep.c,v 1.37 2023/07/08 12:26:45 beck Exp $ */ +/* $OpenBSD: rsa_oaep.c,v 1.38 2024/02/18 15:45:42 tb Exp $ */ /* * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved. * @@ -331,7 +331,7 @@ PKCS1_MGF1(unsigned char *mask, long len, const unsigned char *seed, int mdlen; int rv = -1; - EVP_MD_CTX_init(&c); + EVP_MD_CTX_legacy_clear(&c); mdlen = EVP_MD_size(dgst); if (mdlen < 0) goto err; -- cgit v1.2.3-55-g6feb