summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-02-25 13:48:48 +1000
committerPauli <ppzgs1@gmail.com>2021-02-28 17:25:49 +1000
commitcc2314a9f630c47860afbddd29ef5b4223371a8a (patch)
tree7f90a35d55d67e1efab7e09be3d1a2bd17e30c41 /crypto
parent1dc28e742d0a7e37f76353680afac547e88375ef (diff)
evp: updates for the new additional MAC_init arguments
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14310)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/mac_lib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/evp/mac_lib.c b/crypto/evp/mac_lib.c
index de4d3623ff..91edb93afd 100644
--- a/crypto/evp/mac_lib.c
+++ b/crypto/evp/mac_lib.c
@@ -105,9 +105,10 @@ size_t EVP_MAC_CTX_get_mac_size(EVP_MAC_CTX *ctx)
return 0;
}
-int EVP_MAC_init(EVP_MAC_CTX *ctx)
+int EVP_MAC_init(EVP_MAC_CTX *ctx, const unsigned char *key, size_t keylen,
+ const OSSL_PARAM params[])
{
- return ctx->meth->init(ctx->data);
+ return ctx->meth->init(ctx->data, key, keylen, params);
}
int EVP_MAC_update(EVP_MAC_CTX *ctx, const unsigned char *data, size_t datalen)