Skip the no derivation functions when in FIPS mode because they are not

applicable.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8695)
This commit is contained in:
Pauli 2019-04-11 08:55:50 +10:00
parent 7eeefcd841
commit 1fb3c0afff

View file

@ -257,7 +257,8 @@ static int test_cavs_kats(const struct drbg_kat *test[], int i)
#ifdef FIPS_MODE
/* FIPS mode doesn't support instantiating without a derivation function */
if ((td->flags & USE_DF) == 0)
return 1;
return TEST_skip("instantiating without derivation function "
"is not supported in FIPS mode");
#endif
switch (td->type) {
case NO_RESEED: