PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
int res = 1;
-#ifdef FIPS_MODULE
- if (!ctr->use_df) {
- ERR_raise(ERR_LIB_PROV, RAND_R_DERIVATION_FUNCTION_MANDATORY_FOR_FIPS);
- ctr->use_df = 1;
- res = 0;
- }
-#endif
/* Maximum number of bits per request = 2^19 = 2^16 bytes */
drbg->max_request = 1 << 16;
if (ctr->use_df) {
static const OSSL_PARAM known_settable_ctx_params[] = {
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_PROPERTIES, NULL, 0),
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_CIPHER, NULL, 0),
-#ifndef FIPS_MODULE
- /*
- * Don't advertise this for FIPS, it isn't allowed to change.
- * The parameter can still be passed and will be processed but errors
- * out.
- */
OSSL_PARAM_int(OSSL_DRBG_PARAM_USE_DF, NULL),
-#endif
OSSL_PARAM_DRBG_SETTABLE_CTX_COMMON,
OSSL_PARAM_END
};