/openssl/crypto/ |
H A D | provider_core.c | 426 if (prov != NULL && !ossl_provider_up_ref(prov)) in ossl_provider_find() 430 return prov; in ossl_provider_find() 444 if ((prov = OPENSSL_zalloc(sizeof(*prov))) == NULL) in provider_new() 472 return prov; in provider_new() 1051 prov->error_strings[0].string = prov->name; in provider_init() 1332 return prov != NULL ? prov->provctx : NULL; in ossl_provider_ctx() 1612 return prov != NULL ? prov->libctx : NULL; in ossl_provider_libctx() 1623 prov->teardown(prov->provctx); in ossl_provider_teardown() 1629 ? NULL : prov->gettable_params(prov->provctx); in ossl_provider_gettable_params() 1635 ? 0 : prov->get_params(prov->provctx, params); in ossl_provider_get_params() [all …]
|
H A D | provider.c | 21 OSSL_PROVIDER *prov = NULL, *actual; in OSSL_PROVIDER_try_load_ex() local 32 ossl_provider_free(prov); in OSSL_PROVIDER_try_load_ex() 36 actual = prov; in OSSL_PROVIDER_try_load_ex() 38 ossl_provider_deactivate(prov, 1); in OSSL_PROVIDER_try_load_ex() 39 ossl_provider_free(prov); in OSSL_PROVIDER_try_load_ex() 42 if (actual != prov) { in OSSL_PROVIDER_try_load_ex() 73 if (!ossl_provider_deactivate(prov, 1)) in OSSL_PROVIDER_unload() 75 ossl_provider_free(prov); in OSSL_PROVIDER_unload() 105 return ossl_provider_prov_ctx(prov); in OSSL_PROVIDER_get0_provider_ctx() 115 return ossl_provider_self_test(prov); in OSSL_PROVIDER_self_test() [all …]
|
H A D | provider_conf.c | 138 if (prov != NULL) in provider_conf_params_internal() 155 static int provider_conf_params(OSSL_PROVIDER *prov, in provider_conf_params() argument 207 OSSL_PROVIDER *prov = NULL, *actual = NULL; in provider_conf_activate() local 227 prov = ossl_provider_find(libctx, name, 1); in provider_conf_activate() 228 if (prov == NULL) in provider_conf_activate() 230 if (prov == NULL) { in provider_conf_activate() 238 ossl_provider_set_module_path(prov, path); in provider_conf_activate() 243 if (!ossl_provider_activate(prov, 1, 0)) { in provider_conf_activate() 246 ossl_provider_deactivate(prov, 1); in provider_conf_activate() 248 } else if (actual != prov in provider_conf_activate() [all …]
|
H A D | provider_child.c | 107 provname = gbl->c_prov_name(prov); in provider_create_child_cb() 113 gbl->curr_prov = prov; in provider_create_child_cb() 143 if (!ossl_provider_set_child(cprov, prov) in provider_create_child_cb() 168 provname = gbl->c_prov_name(prov); in provider_remove_child_cb() 286 int ossl_provider_up_ref_parent(OSSL_PROVIDER *prov, int activate) in ossl_provider_up_ref_parent() argument 291 gbl = ossl_lib_ctx_get_data(ossl_provider_libctx(prov), in ossl_provider_up_ref_parent() 296 parent_handle = ossl_provider_get_parent(prov); in ossl_provider_up_ref_parent() 302 int ossl_provider_free_parent(OSSL_PROVIDER *prov, int deactivate) in ossl_provider_free_parent() argument 307 gbl = ossl_lib_ctx_get_data(ossl_provider_libctx(prov), in ossl_provider_free_parent() 312 parent_handle = ossl_provider_get_parent(prov); in ossl_provider_free_parent() [all …]
|
/openssl/test/recipes/ |
H A D | 80-test_cms.t | 71 my @prov = ("-provider-path", $provpath, 174 [ "{cmd2}", @prov, "-verify", "-in", "{output}.cms", 182 [ "{cmd2}", @prov, "-verify", "-in", "{output}.cms", 194 [ "{cmd2}", @prov, "-verify", "-in", "{output}.cms", 200 [ "{cmd1}", @prov, "-sign", "-in", $smcont, 206 [ "{cmd2}", @prov, "-verify", "-in", "{output}.cms", 251 [ "{cmd1}", @prov, "-encrypt", "-in", $smcont, 295 [ "{cmd2}", @prov, "-verify", "-in", "{output}.cms", 414 [ "{cmd2}", @prov, "-help" ] 658 [ "{cmd1}", @prov, "-encrypt", "-in", $smcont, [all …]
|
H A D | 15-test_rsaoaep.t | 28 my @prov = ( ); 46 @prov, 59 @prov, 71 @prov, 82 @prov, 95 @prov, 106 @prov, 117 @prov, 130 @prov, 141 @prov, [all …]
|
H A D | 15-test_genrsa.t | 122 my @prov = ( "-provider-path", $provpath, 127 @prov, 133 @prov, 139 ok(!run(app(['openssl', 'genrsa', @prov, '512'])), 143 @prov, 152 @prov,
|
/openssl/include/internal/ |
H A D | provider.h | 36 int ossl_provider_up_ref(OSSL_PROVIDER *prov); 37 void ossl_provider_free(OSSL_PROVIDER *prov); 44 int ossl_provider_is_child(const OSSL_PROVIDER *prov); 64 void *ossl_provider_ctx(const OSSL_PROVIDER *prov); 73 const char *ossl_provider_name(const OSSL_PROVIDER *prov); 74 const DSO *ossl_provider_dso(const OSSL_PROVIDER *prov); 77 void *ossl_provider_prov_ctx(const OSSL_PROVIDER *prov); 79 OSSL_LIB_CTX *ossl_provider_libctx(const OSSL_PROVIDER *prov); 82 void ossl_provider_teardown(const OSSL_PROVIDER *prov); 85 int ossl_provider_get_capabilities(const OSSL_PROVIDER *prov, [all …]
|
/openssl/test/testutil/ |
H A D | provider.c | 101 FIPS_VERSION prov; in fips_provider_version_eq() local 106 return major == prov.major && minor == prov.minor && patch == prov.patch; in fips_provider_version_eq() 111 FIPS_VERSION prov; in fips_provider_version_ne() local 116 return major != prov.major || minor != prov.minor || patch != prov.patch; in fips_provider_version_ne() 121 FIPS_VERSION prov; in fips_provider_version_le() local 129 || (prov.minor == minor && prov.patch <= patch))); in fips_provider_version_le() 134 FIPS_VERSION prov; in fips_provider_version_lt() local 142 || (prov.minor == minor && prov.patch < patch))); in fips_provider_version_lt() 147 FIPS_VERSION prov; in fips_provider_version_gt() local 155 || (prov.minor == minor && prov.patch > patch))); in fips_provider_version_gt() [all …]
|
/openssl/test/ |
H A D | provider_internal_test.c | 29 TEST_true(ossl_provider_activate(prov, 1, 0)) in test_provider() 37 ossl_provider_free(prov); in test_provider() 55 OSSL_PROVIDER *prov = NULL; in test_builtin_provider() local 66 TEST_ptr(prov = in test_builtin_provider() 79 OSSL_PROVIDER *prov = NULL; in test_loaded_provider() local 90 OSSL_PROVIDER *prov = NULL; in test_configured_provider() local 97 && test_provider(prov, expected_greeting); in test_configured_provider() 105 OSSL_PROVIDER *prov = NULL; in test_cache_flushes() local 116 OSSL_PROVIDER_unload(prov); in test_cache_flushes() 117 prov = NULL; in test_cache_flushes() [all …]
|
H A D | provider_test.c | 40 OSSL_PROVIDER *prov = NULL; in test_provider() local 65 if (!TEST_ptr(prov = OSSL_PROVIDER_load(*libctx, name))) in test_provider() 74 if (!TEST_true(OSSL_PROVIDER_get_params(prov, digest_check)) in test_provider() 86 if (!TEST_true(OSSL_PROVIDER_get_params(prov, digest_check)) in test_provider() 136 if (!TEST_true(OSSL_PROVIDER_unload(prov))) in test_provider() 138 prov = NULL; in test_provider() 155 OSSL_PROVIDER_unload(prov); in test_provider() 164 OSSL_PROVIDER *prov = NULL; in test_provider_ex() local 194 if (!TEST_true(OSSL_PROVIDER_unload(prov))) in test_provider_ex() 196 prov = NULL; in test_provider_ex() [all …]
|
H A D | evp_fetch_prov_test.c | 97 if (!TEST_ptr(prov[i])) in load_providers() 111 if (prov[0] != NULL) in unload_providers() 112 OSSL_PROVIDER_unload(prov[0]); in unload_providers() 113 if (prov[1] != NULL) in unload_providers() 114 OSSL_PROVIDER_unload(prov[1]); in unload_providers() 180 OSSL_PROVIDER *prov[2] = {NULL, NULL}; in test_implicit_EVP_MD_fetch() local 186 unload_providers(&ctx, prov); in test_implicit_EVP_MD_fetch() 194 OSSL_PROVIDER *prov[2] = {NULL, NULL}; in test_explicit_EVP_MD_fetch() local 218 unload_providers(&ctx, prov); in test_explicit_EVP_MD_fetch() 304 unload_providers(&ctx, prov); in test_implicit_EVP_CIPHER_fetch() [all …]
|
H A D | provider_fallback_test.c | 18 const OSSL_PROVIDER *prov = NULL; in test_provider() local 23 && TEST_ptr(prov = EVP_KEYMGMT_get0_provider(rsameth)) in test_provider() 24 && TEST_str_eq(OSSL_PROVIDER_get0_name(prov), "default"); in test_provider() 38 OSSL_PROVIDER *prov = NULL; in test_explicit_provider() local 42 && TEST_ptr(prov = OSSL_PROVIDER_load(ctx, "default")); in test_explicit_provider() 47 ok = TEST_true(OSSL_PROVIDER_unload(prov)); in test_explicit_provider() 49 OSSL_PROVIDER_unload(prov); in test_explicit_provider()
|
H A D | provider_status_test.c | 107 static int get_provider_params(const OSSL_PROVIDER *prov) in get_provider_params() argument 148 OSSL_PROVIDER *prov = NULL; in test_provider_status() local 156 if (!get_provider_params(prov)) in test_provider_status() 162 if (!TEST_true(OSSL_PROVIDER_get_params(prov, params)) in test_provider_status() 183 if (!TEST_true(OSSL_PROVIDER_self_test(prov))) in test_provider_status() 189 if (!TEST_false(OSSL_PROVIDER_self_test(prov))) in test_provider_status() 191 if (!TEST_true(OSSL_PROVIDER_get_params(prov, params)) in test_provider_status() 200 OSSL_PROVIDER_unload(prov); in test_provider_status() 206 OSSL_PROVIDER *prov; in test_provider_gettable_params() local 211 ret = get_provider_params(prov); in test_provider_gettable_params() [all …]
|
/openssl/include/openssl/ |
H A D | provider.h | 33 int OSSL_PROVIDER_unload(OSSL_PROVIDER *prov); 39 const OSSL_PARAM *OSSL_PROVIDER_gettable_params(const OSSL_PROVIDER *prov); 40 int OSSL_PROVIDER_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[]); 41 int OSSL_PROVIDER_self_test(const OSSL_PROVIDER *prov); 42 int OSSL_PROVIDER_get_capabilities(const OSSL_PROVIDER *prov, 47 const OSSL_ALGORITHM *OSSL_PROVIDER_query_operation(const OSSL_PROVIDER *prov, 50 void OSSL_PROVIDER_unquery_operation(const OSSL_PROVIDER *prov, 52 void *OSSL_PROVIDER_get0_provider_ctx(const OSSL_PROVIDER *prov); 53 const OSSL_DISPATCH *OSSL_PROVIDER_get0_dispatch(const OSSL_PROVIDER *prov); 60 const char *OSSL_PROVIDER_get0_name(const OSSL_PROVIDER *prov);
|
/openssl/crypto/store/ |
H A D | store_meth.c | 23 if (loader->prov != NULL) in OSSL_STORE_LOADER_up_ref() 30 if (loader != NULL && loader->prov != NULL) { in OSSL_STORE_LOADER_free() 36 ossl_provider_free(loader->prov); in OSSL_STORE_LOADER_free() 46 static OSSL_STORE_LOADER *new_loader(OSSL_PROVIDER *prov) in new_loader() argument 55 loader->prov = prov; in new_loader() 56 ossl_provider_up_ref(prov); in new_loader() 181 if ((loader = new_loader(prov)) == NULL) in loader_from_algorithm() 322 OSSL_PROVIDER *prov = NULL; in inner_loader_fetch() local 415 return loader->prov; in OSSL_STORE_LOADER_get0_provider() 445 if (loader->prov != NULL) { in OSSL_STORE_LOADER_is_a() [all …]
|
/openssl/crypto/encode_decode/ |
H A D | decoder_meth.c | 62 ossl_provider_free(decoder->base.prov); in OSSL_DECODER_free() 200 OSSL_PROVIDER *prov) in ossl_decoder_from_algorithm() argument 204 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in ossl_decoder_from_algorithm() 278 if (prov != NULL && !ossl_provider_up_ref(prov)) { in ossl_decoder_from_algorithm() 283 decoder->base.prov = prov; in ossl_decoder_from_algorithm() 303 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in construct_decoder() 374 OSSL_PROVIDER *prov = NULL; in inner_ossl_decoder_fetch() local 442 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in ossl_decoder_store_remove_all_provided() 461 return decoder->base.prov; in OSSL_DECODER_get0_provider() 507 if (decoder->base.prov != NULL) { in OSSL_DECODER_is_a() [all …]
|
H A D | encoder_meth.c | 62 ossl_provider_free(encoder->base.prov); in OSSL_ENCODER_free() 200 OSSL_PROVIDER *prov) in encoder_from_algorithm() argument 204 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in encoder_from_algorithm() 288 if (prov != NULL && !ossl_provider_up_ref(prov)) { in encoder_from_algorithm() 293 encoder->base.prov = prov; in encoder_from_algorithm() 313 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in construct_encoder() 384 OSSL_PROVIDER *prov = NULL; in inner_ossl_encoder_fetch() local 451 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in ossl_encoder_store_remove_all_provided() 470 return encoder->base.prov; in OSSL_ENCODER_get0_provider() 516 if (encoder->base.prov != NULL) { in OSSL_ENCODER_is_a() [all …]
|
H A D | encoder_pkey.c | 90 const OSSL_PROVIDER *prov; in collect_encoder() local 97 prov = OSSL_ENCODER_get0_provider(encoder); in collect_encoder() 104 if ((data->keymgmt_prov == prov) == data->flag_find_same_provider) { in collect_encoder() 105 void *provctx = OSSL_PROVIDER_get0_provider_ctx(prov); in collect_encoder() 118 || (data->keymgmt_prov != prov in collect_encoder() 231 const OSSL_PROVIDER *prov = NULL; in ossl_encoder_ctx_setup_for_pkey() local 242 prov = EVP_KEYMGMT_get0_provider(pkey->keymgmt); in ossl_encoder_ctx_setup_for_pkey() 243 libctx = ossl_provider_libctx(prov); in ossl_encoder_ctx_setup_for_pkey() 274 encoder_data.keymgmt_prov = prov; in ossl_encoder_ctx_setup_for_pkey() 366 const OSSL_PROVIDER *prov = EVP_KEYMGMT_get0_provider(pkey->keymgmt); in OSSL_ENCODER_CTX_new_for_pkey() local [all …]
|
/openssl/crypto/evp/ |
H A D | evp_fetch.c | 160 const OSSL_PROVIDER *prov, in put_evp_method_in_store() argument 211 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in construct_evp_method() 242 OSSL_PROVIDER *prov, int operation_id, in inner_evp_generic_fetch() argument 246 OSSL_PROVIDER *prov), in inner_evp_generic_fetch() argument 402 methdata.libctx = ossl_provider_libctx(prov); in evp_generic_fetch_from_prov() 422 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in evp_method_store_remove_all_provided() 631 int evp_is_a(OSSL_PROVIDER *prov, int number, in evp_is_a() argument 637 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in evp_is_a() 640 if (prov == NULL) in evp_is_a() 645 int evp_names_do_all(OSSL_PROVIDER *prov, int number, in evp_names_do_all() argument [all …]
|
H A D | evp_local.h | 102 OSSL_PROVIDER *prov; member 145 OSSL_PROVIDER *prov; member 164 OSSL_PROVIDER *prov; member 207 OSSL_PROVIDER *prov; member 227 OSSL_PROVIDER *prov; member 282 OSSL_PROVIDER *prov), 300 OSSL_PROVIDER *prov), 313 EVP_KEYEXCH *evp_keyexch_fetch_from_prov(OSSL_PROVIDER *prov, 316 EVP_KEM *evp_kem_fetch_from_prov(OSSL_PROVIDER *prov, 378 int evp_is_a(OSSL_PROVIDER *prov, int number, [all …]
|
/openssl/apps/lib/ |
H A D | app_provider.c | 28 static void provider_free(OSSL_PROVIDER *prov) in provider_free() argument 30 OSSL_PROVIDER_unload(prov); in provider_free() 35 OSSL_PROVIDER *prov; in app_provider_load() local 37 prov = OSSL_PROVIDER_load(libctx, provider_name); in app_provider_load() 38 if (prov == NULL) { in app_provider_load() 48 || !sk_OSSL_PROVIDER_push(app_providers, prov)) { in app_provider_load()
|
/openssl/doc/internal/man3/ |
H A D | evp_generic_fetch.pod | 17 OSSL_PROVIDER *prov, 41 but limits the search of methods to the provider given with I<prov>. 100 OSSL_PROVIDER *prov; 116 OSSL_PROVIDER *prov, 150 foo->prov = prov; 151 if (prov) 152 ossl_provider_up_ref(prov); 162 OSSL_PROVIDER *prov = foo->prov; 170 ossl_provider_free(prov); 175 OSSL_PROVIDER *prov) [all …]
|
H A D | ossl_provider_new.pod | 34 int ossl_provider_up_ref(OSSL_PROVIDER *prov); 35 void ossl_provider_free(OSSL_PROVIDER *prov); 43 int ossl_provider_set_child(OSSL_PROVIDER *prov, 61 void *ossl_provider_ctx(const OSSL_PROVIDER *prov); 72 const char *ossl_provider_name(OSSL_PROVIDER *prov); 73 const DSO *ossl_provider_dso(OSSL_PROVIDER *prov); 74 const char *ossl_provider_module_name(OSSL_PROVIDER *prov); 79 void ossl_provider_teardown(const OSSL_PROVIDER *prov); 159 was loaded, and I<prov> itself will be freed. 162 provider module given the provider object I<prov>. [all …]
|
/openssl/providers/implementations/signature/ |
H A D | build.info | 27 DEPEND[rsa_sig.o]=../../common/include/prov/der_rsa.h 28 DEPEND[dsa_sig.o]=../../common/include/prov/der_dsa.h 29 DEPEND[ecdsa_sig.o]=../../common/include/prov/der_ec.h 30 DEPEND[eddsa_sig.o]=../../common/include/prov/der_ecx.h 31 DEPEND[sm2_sig.o]=../../common/include/prov/der_sm2.h
|