summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hmac/hmac.c
diff options
context:
space:
mode:
authortb <>2024-02-18 15:45:42 +0000
committertb <>2024-02-18 15:45:42 +0000
commit46825b346de88f3d8b554aef8711f11431f7e17c (patch)
tree9047d6e85fd9fcd495ed303a0ed1b208200ff841 /src/lib/libcrypto/hmac/hmac.c
parent39b6299876ec6c908309c9f47f3940eb84b3be12 (diff)
downloadopenbsd-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/hmac/hmac.c')
-rw-r--r--src/lib/libcrypto/hmac/hmac.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/hmac/hmac.c b/src/lib/libcrypto/hmac/hmac.c
index ea3a1b4a45..32d75154d4 100644
--- a/src/lib/libcrypto/hmac/hmac.c
+++ b/src/lib/libcrypto/hmac/hmac.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: hmac.c,v 1.31 2023/02/16 08:38:17 tb Exp $ */ 1/* $OpenBSD: hmac.c,v 1.32 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 *
@@ -214,9 +214,9 @@ HMAC_CTX_reset(HMAC_CTX *ctx)
214void 214void
215HMAC_CTX_init(HMAC_CTX *ctx) 215HMAC_CTX_init(HMAC_CTX *ctx)
216{ 216{
217 EVP_MD_CTX_init(&ctx->i_ctx); 217 EVP_MD_CTX_legacy_clear(&ctx->i_ctx);
218 EVP_MD_CTX_init(&ctx->o_ctx); 218 EVP_MD_CTX_legacy_clear(&ctx->o_ctx);
219 EVP_MD_CTX_init(&ctx->md_ctx); 219 EVP_MD_CTX_legacy_clear(&ctx->md_ctx);
220 ctx->md = NULL; 220 ctx->md = NULL;
221} 221}
222 222