diff options
author | tb <> | 2024-02-18 15:44:10 +0000 |
---|---|---|
committer | tb <> | 2024-02-18 15:44:10 +0000 |
commit | 39b6299876ec6c908309c9f47f3940eb84b3be12 (patch) | |
tree | b0632599c491a36f1093cf7c7c9f79bfda606b0a /src/lib/libcrypto/asn1 | |
parent | 6098295db7aa89d96198a327d46d76586bd54ee0 (diff) | |
download | openbsd-39b6299876ec6c908309c9f47f3940eb84b3be12.tar.gz openbsd-39b6299876ec6c908309c9f47f3940eb84b3be12.tar.bz2 openbsd-39b6299876ec6c908309c9f47f3940eb84b3be12.zip |
Use EVP_CIPHER_CTX_legacy_clear() internally
ok jsing
Diffstat (limited to 'src/lib/libcrypto/asn1')
-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)) |