diff options
Diffstat (limited to 'providers/implementations/macs/hmac_prov.c')
-rw-r--r-- | providers/implementations/macs/hmac_prov.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/providers/implementations/macs/hmac_prov.c b/providers/implementations/macs/hmac_prov.c index 7188232..f291e57 100644 --- a/providers/implementations/macs/hmac_prov.c +++ b/providers/implementations/macs/hmac_prov.c @@ -294,6 +294,9 @@ static int hmac_set_ctx_params(void *vmacctx, const OSSL_PARAM params[]) const OSSL_PARAM *p; int flags = 0; + if (params == NULL) + return 1; + if (!ossl_prov_digest_load_from_params(&macctx->digest, params, ctx)) return 0; |