Lines Matching +full:enable +full:- +full:fips
2 * Copyright 2019-2022 The OpenSSL Project Authors. All Rights Reserved.
69 if (methdata->tmp_store == NULL) in get_tmp_evp_method_store()
70 methdata->tmp_store = ossl_method_store_new(methdata->libctx); in get_tmp_evp_method_store()
71 return methdata->tmp_store; in get_tmp_evp_method_store()
91 && (store = get_evp_method_store(methdata->libctx)) == NULL) in reserve_evp_method_store()
102 && (store = get_evp_method_store(methdata->libctx)) == NULL) in unreserve_evp_method_store()
113 * The resulting identity is a 31-bit integer, composed like this:
115 * +---------23 bits--------+-8 bits-+
117 * +------------------------+--------+
126 #define METHOD_ID_OPERATION_MAX ((1 << 8) - 1)
129 #define METHOD_ID_NAME_MAX ((1 << 23) - 1)
153 if ((name_id = methdata->name_id) == 0 && methdata->names != NULL) { in get_evp_method_from_store()
154 OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx); in get_evp_method_from_store()
155 const char *names = methdata->names; in get_evp_method_from_store()
157 size_t l = (q == NULL ? strlen(names) : (size_t)(q - names)); in get_evp_method_from_store()
165 || (meth_id = evp_method_id(name_id, methdata->operation_id)) == 0) in get_evp_method_from_store()
169 && (store = get_evp_method_store(methdata->libctx)) == NULL) in get_evp_method_from_store()
172 if (!ossl_method_store_fetch(store, meth_id, methdata->propquery, prov, in get_evp_method_from_store()
198 l = (q == NULL ? strlen(names) : (size_t)(q - names)); in put_evp_method_in_store()
201 if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL in put_evp_method_in_store()
203 || (meth_id = evp_method_id(name_id, methdata->operation_id)) == 0) in put_evp_method_in_store()
207 && (store = get_evp_method_store(methdata->libctx)) == NULL) in put_evp_method_in_store()
211 methdata->refcnt_up_method, in put_evp_method_in_store()
212 methdata->destruct_method); in put_evp_method_in_store()
232 const char *names = algodef->algorithm_names; in construct_evp_method()
239 method = methdata->method_from_algorithm(name_id, algodef, prov); in construct_evp_method()
247 methdata->flag_construct_error_occurred = 1; in construct_evp_method()
256 methdata->destruct_method(method); in destruct_evp_method()
270 OSSL_METHOD_STORE *store = get_evp_method_store(methdata->libctx); in inner_evp_generic_fetch()
271 OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx); in inner_evp_generic_fetch()
336 methdata->operation_id = operation_id; in inner_evp_generic_fetch()
337 methdata->name_id = name_id; in inner_evp_generic_fetch()
338 methdata->names = name; in inner_evp_generic_fetch()
339 methdata->propquery = propq; in inner_evp_generic_fetch()
340 methdata->method_from_algorithm = new_method; in inner_evp_generic_fetch()
341 methdata->refcnt_up_method = up_ref_method; in inner_evp_generic_fetch()
342 methdata->destruct_method = free_method; in inner_evp_generic_fetch()
343 methdata->flag_construct_error_occurred = 0; in inner_evp_generic_fetch()
344 if ((method = ossl_method_construct(methdata->libctx, operation_id, in inner_evp_generic_fetch()
365 unsupported = !methdata->flag_construct_error_occurred; in inner_evp_generic_fetch()
375 ossl_lib_ctx_get_descriptor(methdata->libctx), in inner_evp_generic_fetch()
582 return evp_default_property_is_enabled(libctx, "fips"); in EVP_default_properties_is_fips_enabled()
585 int evp_default_properties_enable_fips_int(OSSL_LIB_CTX *libctx, int enable, in evp_default_properties_enable_fips_int() argument
588 const char *query = (enable != 0) ? "fips=yes" : "-fips"; in evp_default_properties_enable_fips_int()
593 int EVP_default_properties_enable_fips(OSSL_LIB_CTX *libctx, int enable) in EVP_default_properties_enable_fips() argument
595 return evp_default_properties_enable_fips_int(libctx, enable, 1); in EVP_default_properties_enable_fips()
636 if ((id & METHOD_ID_OPERATION_MASK) == data->operation_id) in filter_on_operation_id()
637 data->user_fn(method, data->user_arg); in filter_on_operation_id()