X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=fips%2Ffips.c;h=c7d4bb567cd22288475f1fd75c067edd12be569d;hb=beb895083c4794c6134e05dc0fbf0a1a6b919b8e;hp=6b5e4d4ccb46df39628425582a012c93608cc4be;hpb=017bc57bf9734777d7cc0b847a55b0d762b5a149;p=oweals%2Fopenssl.git diff --git a/fips/fips.c b/fips/fips.c index 6b5e4d4ccb..c7d4bb567c 100644 --- a/fips/fips.c +++ b/fips/fips.c @@ -175,8 +175,10 @@ int FIPS_selftest(void) return FIPS_selftest_sha1() && FIPS_selftest_hmac() && FIPS_selftest_aes() + && FIPS_selftest_aes_gcm() && FIPS_selftest_des() && FIPS_selftest_rsa() + && FIPS_selftest_ecdsa() && FIPS_selftest_dsa(); } @@ -313,6 +315,13 @@ int FIPS_mode_set(int onoff) goto end; } + if (!FIPS_selftest_drbg()) + { + fips_selftest_fail = 1; + ret = 0; + goto end; + } + /* Perform RNG KAT before seeding */ if (!FIPS_selftest_rng()) {