diff options
author | tb <> | 2024-02-18 15:45:42 +0000 |
---|---|---|
committer | tb <> | 2024-02-18 15:45:42 +0000 |
commit | 46825b346de88f3d8b554aef8711f11431f7e17c (patch) | |
tree | 9047d6e85fd9fcd495ed303a0ed1b208200ff841 /src/lib/libcrypto/evp/evp_key.c | |
parent | 39b6299876ec6c908309c9f47f3940eb84b3be12 (diff) | |
download | openbsd-46825b346de88f3d8b554aef8711f11431f7e17c.tar.gz openbsd-46825b346de88f3d8b554aef8711f11431f7e17c.tar.bz2 openbsd-46825b346de88f3d8b554aef8711f11431f7e17c.zip |
Use EVP_MD_CTX_legacy_clear() internally
ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp_key.c')
-rw-r--r-- | src/lib/libcrypto/evp/evp_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp_key.c b/src/lib/libcrypto/evp/evp_key.c index 1f3d758268..f51584b84b 100644 --- a/src/lib/libcrypto/evp/evp_key.c +++ b/src/lib/libcrypto/evp/evp_key.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_key.c,v 1.33 2024/01/05 10:18:52 tb Exp $ */ | 1 | /* $OpenBSD: evp_key.c,v 1.34 2024/02/18 15:45:42 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -156,7 +156,7 @@ EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md, | |||
156 | if (data == NULL) | 156 | if (data == NULL) |
157 | return nkey; | 157 | return nkey; |
158 | 158 | ||
159 | EVP_MD_CTX_init(&c); | 159 | EVP_MD_CTX_legacy_clear(&c); |
160 | for (;;) { | 160 | for (;;) { |
161 | if (!EVP_DigestInit_ex(&c, md, NULL)) | 161 | if (!EVP_DigestInit_ex(&c, md, NULL)) |
162 | goto err; | 162 | goto err; |