diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/p5_pbev2.c')
-rw-r--r-- | src/lib/libcrypto/asn1/p5_pbev2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/p5_pbev2.c b/src/lib/libcrypto/asn1/p5_pbev2.c index 8b6d1929b3..8ee752c020 100644 --- a/src/lib/libcrypto/asn1/p5_pbev2.c +++ b/src/lib/libcrypto/asn1/p5_pbev2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p5_pbev2.c,v 1.30 2023/07/07 19:37:52 beck Exp $ */ | 1 | /* $OpenBSD: p5_pbev2.c,v 1.31 2024/02/18 15:44:10 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 1999-2004. | 3 | * project 1999-2004. |
4 | */ | 4 | */ |
@@ -218,7 +218,7 @@ PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter, unsigned char *salt, | |||
218 | arc4random_buf(iv, EVP_CIPHER_iv_length(cipher)); | 218 | arc4random_buf(iv, EVP_CIPHER_iv_length(cipher)); |
219 | } | 219 | } |
220 | 220 | ||
221 | EVP_CIPHER_CTX_init(&ctx); | 221 | EVP_CIPHER_CTX_legacy_clear(&ctx); |
222 | 222 | ||
223 | /* Dummy cipherinit to just setup the IV, and PRF */ | 223 | /* Dummy cipherinit to just setup the IV, and PRF */ |
224 | if (!EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0)) | 224 | if (!EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0)) |