diff options
Diffstat (limited to 'providers/implementations/rands/drbg_hash.c')
-rw-r--r-- | providers/implementations/rands/drbg_hash.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/providers/implementations/rands/drbg_hash.c b/providers/implementations/rands/drbg_hash.c index c89b0cd5c3..4db104c773 100644 --- a/providers/implementations/rands/drbg_hash.c +++ b/providers/implementations/rands/drbg_hash.c @@ -266,10 +266,13 @@ static int drbg_hash_instantiate(PROV_DRBG *drbg, static int drbg_hash_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_hash_set_ctx_params(drbg, params)) + return 0; return ossl_prov_drbg_instantiate(drbg, strength, prediction_resistance, pstr, pstr_len); } |