fips: update DRBG KATs for the extra instantiate argument

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14310)
This commit is contained in:
Pauli 2021-02-26 10:55:02 +10:00
parent 671ff5c74e
commit 8d5b197b28

View File

@ -294,10 +294,10 @@ static int self_test_drbg(const ST_KAT_DRBG *t, OSSL_SELF_TEST *st,
drbg_params[1] =
OSSL_PARAM_construct_octet_string(OSSL_RAND_PARAM_TEST_NONCE,
(void *)t->nonce, t->noncelen);
if (!EVP_RAND_set_ctx_params(test, drbg_params)
|| !EVP_RAND_instantiate(test, strength, 0, NULL, 0))
if (!EVP_RAND_instantiate(test, strength, 0, NULL, 0, drbg_params))
goto err;
if (!EVP_RAND_instantiate(drbg, strength, 0, t->persstr, t->persstrlen))
if (!EVP_RAND_instantiate(drbg, strength, 0, t->persstr, t->persstrlen,
NULL))
goto err;
drbg_params[0] =