diff options
author | Pauli <ppzgs1@gmail.com> | 2021-02-26 10:09:07 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-28 17:25:49 +1000 |
commit | 6bcd32a43fffc944c1f06f018dd52eeefd286e7c (patch) | |
tree | cd8088bcfd17c57c4fa4c2a055eb4b95c61b2307 /providers/fips | |
parent | 36fae6e85a12c46b48d82762911c74e53ec0cc13 (diff) |
fips: add additional argument to KDF derive call in self test
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14310)
Diffstat (limited to 'providers/fips')
-rw-r--r-- | providers/fips/self_test_kats.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/providers/fips/self_test_kats.c b/providers/fips/self_test_kats.c index 79b78f0ba5..7f59bb508a 100644 --- a/providers/fips/self_test_kats.c +++ b/providers/fips/self_test_kats.c @@ -217,12 +217,10 @@ static int self_test_kdf(const ST_KAT_KDF *t, OSSL_SELF_TEST *st, params = OSSL_PARAM_BLD_to_param(bld); if (params == NULL) goto err; - if (!EVP_KDF_CTX_set_params(ctx, params)) - goto err; if (t->expected_len > sizeof(out)) goto err; - if (EVP_KDF_derive(ctx, out, t->expected_len) <= 0) + if (EVP_KDF_derive(ctx, out, t->expected_len, params) <= 0) goto err; OSSL_SELF_TEST_oncorrupt_byte(st, out); |