diff options
Diffstat (limited to 'src/lib/libcrypto/hmac/hmac.c')
-rw-r--r-- | src/lib/libcrypto/hmac/hmac.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/libcrypto/hmac/hmac.c b/src/lib/libcrypto/hmac/hmac.c index 1315b1a0d2..dc1614d3ce 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.35 2024/06/01 07:36:16 tb Exp $ */ | 1 | /* $OpenBSD: hmac.c,v 1.36 2024/08/31 10:42:21 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 | * |
@@ -137,15 +137,6 @@ err: | |||
137 | LCRYPTO_ALIAS(HMAC_Init_ex); | 137 | LCRYPTO_ALIAS(HMAC_Init_ex); |
138 | 138 | ||
139 | int | 139 | int |
140 | HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md) | ||
141 | { | ||
142 | if (key && md) | ||
143 | HMAC_CTX_init(ctx); | ||
144 | return HMAC_Init_ex(ctx, key, len, md, NULL); | ||
145 | } | ||
146 | LCRYPTO_ALIAS(HMAC_Init); | ||
147 | |||
148 | int | ||
149 | HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len) | 140 | HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len) |
150 | { | 141 | { |
151 | if (ctx->md == NULL) | 142 | if (ctx->md == NULL) |