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/m_sigver.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/m_sigver.c')
-rw-r--r-- | src/lib/libcrypto/evp/m_sigver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/m_sigver.c b/src/lib/libcrypto/evp/m_sigver.c index 3ce7f7e2a6..a72671ed92 100644 --- a/src/lib/libcrypto/evp/m_sigver.c +++ b/src/lib/libcrypto/evp/m_sigver.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_sigver.c,v 1.14 2023/11/29 21:35:57 tb Exp $ */ | 1 | /* $OpenBSD: m_sigver.c,v 1.15 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 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -171,7 +171,7 @@ EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen) | |||
171 | EVP_MD_CTX tmp_ctx; | 171 | EVP_MD_CTX tmp_ctx; |
172 | unsigned char md[EVP_MAX_MD_SIZE]; | 172 | unsigned char md[EVP_MAX_MD_SIZE]; |
173 | unsigned int mdlen = 0; | 173 | unsigned int mdlen = 0; |
174 | EVP_MD_CTX_init(&tmp_ctx); | 174 | EVP_MD_CTX_legacy_clear(&tmp_ctx); |
175 | if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) | 175 | if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) |
176 | return 0; | 176 | return 0; |
177 | if (sctx) | 177 | if (sctx) |
@@ -228,7 +228,7 @@ EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, size_t siglen) | |||
228 | vctx = 1; | 228 | vctx = 1; |
229 | else | 229 | else |
230 | vctx = 0; | 230 | vctx = 0; |
231 | EVP_MD_CTX_init(&tmp_ctx); | 231 | EVP_MD_CTX_legacy_clear(&tmp_ctx); |
232 | if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) | 232 | if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) |
233 | return -1; | 233 | return -1; |
234 | if (vctx) { | 234 | if (vctx) { |