summaryrefslogtreecommitdiffstats
path: root/providers/implementations/rands/drbg_hmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'providers/implementations/rands/drbg_hmac.c')
-rw-r--r--providers/implementations/rands/drbg_hmac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/providers/implementations/rands/drbg_hmac.c b/providers/implementations/rands/drbg_hmac.c
index 85b7adfe86..67c0339801 100644
--- a/providers/implementations/rands/drbg_hmac.c
+++ b/providers/implementations/rands/drbg_hmac.c
@@ -143,10 +143,13 @@ static int drbg_hmac_instantiate(PROV_DRBG *drbg,
static int drbg_hmac_instantiate_wrapper(void *vdrbg, unsigned int strength,
int prediction_resistance,
const unsigned char *pstr,
- size_t pstr_len)
+ size_t pstr_len,
+ const OSSL_PARAM params[])
{
PROV_DRBG *drbg = (PROV_DRBG *)vdrbg;
+ if (!ossl_prov_is_running() || !drbg_hmac_set_ctx_params(drbg, params))
+ return 0;
return ossl_prov_drbg_instantiate(drbg, strength, prediction_resistance,
pstr, pstr_len);
}