crypto: drbg - ensure most preferred type is FIPS health checked
[linux-2.6-microblaze.git] / crypto / drbg.c
index e01f8c7..e3baaa5 100644 (file)
@@ -2018,9 +2018,11 @@ static inline int __init drbg_healthcheck_sanity(void)
 
 #ifdef CONFIG_CRYPTO_DRBG_CTR
        drbg_convert_tfm_core("drbg_nopr_ctr_aes128", &coreref, &pr);
-#elif defined CONFIG_CRYPTO_DRBG_HASH
+#endif
+#ifdef CONFIG_CRYPTO_DRBG_HASH
        drbg_convert_tfm_core("drbg_nopr_sha256", &coreref, &pr);
-#else
+#endif
+#ifdef CONFIG_CRYPTO_DRBG_HMAC
        drbg_convert_tfm_core("drbg_nopr_hmac_sha256", &coreref, &pr);
 #endif