{ NULL, NULL, NULL }
};
+static const OSSL_ALGORITHM deflt_rands[] = {
+ { "TEST-RAND", "provider=default", test_rng_functions },
+ { "HASH-DRBG", "provider=default", drbg_hash_functions },
+/*
+ { "HMAC-DRBG", "provider=default", drbg_hmac_functions },
+ { "CTR-DRBG", "provider=default", drbg_ctr_functions },
+*/
+ { "CRNGT:continuous-rng-test", "provider=default", crngt_functions },
+ { NULL, NULL, NULL }
+};
+
static const OSSL_ALGORITHM deflt_signature[] = {
#ifndef OPENSSL_NO_DSA
{ "DSA:dsaEncryption", "provider=default", dsa_signature_functions },
return deflt_macs;
case OSSL_OP_KDF:
return deflt_kdfs;
+ case OSSL_OP_RAND:
+ return deflt_rands;
case OSSL_OP_KEYMGMT:
return deflt_keymgmt;
case OSSL_OP_KEYEXCH:
{ NULL, NULL, NULL }
};
+static const OSSL_ALGORITHM fips_rands[] = {
+ /*
+ * The TEST RNG must be first, so it can be suppressed after the power up
+ * tests are completed.
+ */
+ { "TEST-RAND", "provider=fips", test_rng_functions },
+ { "HASH-DRBG", "provider=fips", drbg_hash_functions },
+/*
+ { "HMAC-DRBG", "provider=fips", drbg_hmac_functions },
+ { "CTR-DRBG", "provider=fips", drbg_ctr_functions },
+*/
+ { "CRNGT:continuous-rng-test", "provider=fips", crngt_functions },
+ { NULL, NULL, NULL }
+};
+
static const OSSL_ALGORITHM fips_keyexch[] = {
#ifndef OPENSSL_NO_DH
{ "DH:dhKeyAgreement", "provider=fips,fips=yes", dh_keyexch_functions },
return fips_macs;
case OSSL_OP_KDF:
return fips_kdfs;
+ case OSSL_OP_RAND:
+ return fips_rands;
case OSSL_OP_KEYMGMT:
return fips_keymgmt;
case OSSL_OP_KEYEXCH: