/openssl-master/crypto/evp/ |
A D | evp_fetch.c | 46 OSSL_LIB_CTX *libctx; member 208 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in construct_evp_method() local 209 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in construct_evp_method() 370 methdata.libctx = libctx; in evp_generic_fetch() 397 methdata.libctx = libctx; in evp_generic_fetch_by_number() 423 methdata.libctx = ossl_provider_libctx(prov); in evp_generic_fetch_from_prov() 432 int evp_method_store_flush(OSSL_LIB_CTX *libctx) in evp_method_store_flush() argument 618 methdata.libctx = libctx; in evp_generic_do_all() 640 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in evp_is_a() local 641 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in evp_is_a() [all …]
|
/openssl-master/test/ |
A D | provider_test.c | 71 EVP_set_default_properties(*libctx, ""); in test_provider() 143 OSSL_LIB_CTX_free(*libctx); in test_provider() 144 *libctx = NULL; in test_provider() 155 OSSL_LIB_CTX_free(*libctx); in test_provider() 156 *libctx = NULL; in test_provider() 162 OSSL_LIB_CTX *libctx = OSSL_LIB_CTX_new(); in test_builtin_provider() local 167 TEST_ptr(libctx) in test_builtin_provider() 170 && test_provider(&libctx, name, NULL); in test_builtin_provider() 172 OSSL_LIB_CTX_free(libctx); in test_builtin_provider() 185 if (!TEST_ptr(libctx)) in test_builtin_provider_with_child() [all …]
|
A D | provider_pkey_test.c | 19 static OSSL_LIB_CTX *libctx = NULL; variable 57 if (!TEST_ptr(fake_rsa = fake_rsa_start(libctx))) in test_pkey_sig() 60 if (!TEST_ptr(deflt = OSSL_PROVIDER_load(libctx, "default"))) in test_pkey_sig() 64 if (!TEST_true(fetch_sig(libctx, "RSA", "provider=fake-rsa", fake_rsa)) in test_pkey_sig() 65 || !TEST_true(fetch_sig(libctx, "RSA", "?provider=fake-rsa", fake_rsa))) in test_pkey_sig() 69 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "RSA", in test_pkey_sig() 88 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, in test_pkey_sig() 120 libctx = OSSL_LIB_CTX_new(); in setup_tests() 121 if (libctx == NULL) in setup_tests() 131 OSSL_LIB_CTX_free(libctx); in cleanup_tests()
|
A D | user_property_test.c | 88 OSSL_LIB_CTX *libctx; in test_default_props_and_providers() local 93 if (!TEST_ptr(libctx = OSSL_LIB_CTX_new()) in test_default_props_and_providers() 94 || !TEST_true(OSSL_PROVIDER_add_builtin(libctx, "testprov", in test_default_props_and_providers() 99 && !TEST_true(EVP_set_default_properties(libctx, MYPROPERTIES))) in test_default_props_and_providers() 102 if (!TEST_ptr(testprov = OSSL_PROVIDER_load(libctx, "testprov"))) in test_default_props_and_providers() 106 && !TEST_true(EVP_set_default_properties(libctx, MYPROPERTIES))) in test_default_props_and_providers() 109 if (!TEST_ptr(testprovmd = EVP_MD_fetch(libctx, "testprovmd", NULL))) in test_default_props_and_providers() 113 if (!TEST_true(EVP_set_default_properties(libctx, MYPROPERTIES))) in test_default_props_and_providers() 116 if (!TEST_ptr(testprovmd = EVP_MD_fetch(libctx, "testprovmd", NULL))) in test_default_props_and_providers() 124 OSSL_LIB_CTX_free(libctx); in test_default_props_and_providers()
|
A D | provfetchtest.c | 206 OSSL_LIB_CTX *libctx = OSSL_LIB_CTX_new_child(handle, in); in dummy_provider_init() local 209 *provctx = (void *)libctx; in dummy_provider_init() 216 if (!RAND_bytes_ex(libctx, buf, sizeof(buf), 0)) in dummy_provider_init() 231 OSSL_LIB_CTX *libctx = OSSL_LIB_CTX_new(); in fetch_test() local 240 if (!TEST_ptr(libctx)) in fetch_test() 243 if (!TEST_true(OSSL_PROVIDER_add_builtin(libctx, "dummy-prov", in fetch_test() 245 || !TEST_ptr(nullprov = OSSL_PROVIDER_load(libctx, "default")) in fetch_test() 251 decoder = OSSL_DECODER_fetch(libctx, "DUMMY", NULL); in fetch_test() 256 encoder = OSSL_ENCODER_fetch(libctx, "DUMMY", NULL); in fetch_test() 261 loader = OSSL_STORE_LOADER_fetch(libctx, "DUMMY", NULL); in fetch_test() [all …]
|
A D | p_test.c | 41 OSSL_LIB_CTX *libctx; member 138 EVP_MD *md4 = EVP_MD_fetch(ctx->libctx, "MD4", NULL); in p_get_params() 148 deflt = OSSL_PROVIDER_load(ctx->libctx, "default"); in p_get_params() 164 && OSSL_PROVIDER_available(ctx->libctx, "default") in p_get_params() 165 && OSSL_PROVIDER_available(ctx->libctx, "base") in p_get_params() 166 && OSSL_PROVIDER_available(ctx->libctx, "legacy") in p_get_params() 167 && OSSL_PROVIDER_available(ctx->libctx, "p_test") in p_get_params() 277 ctx->libctx = OSSL_LIB_CTX_new_child(handle, oin); in OSSL_provider_init() 278 if (ctx->libctx == NULL) { in OSSL_provider_init() 290 EVP_MD *sha256 = EVP_MD_fetch(ctx->libctx, "SHA2-256", NULL); in OSSL_provider_init() [all …]
|
A D | provider_status_test.c | 31 static OSSL_LIB_CTX *libctx = NULL; variable 151 if (!TEST_ptr(prov = OSSL_PROVIDER_load(libctx, provider_name))) in test_provider_status() 162 if (!TEST_ptr(fetch = EVP_MD_fetch(libctx, "SHA256", NULL))) in test_provider_status() 169 OSSL_SELF_TEST_set_callback(libctx, self_test_on_demand, &self_test_args); in test_provider_status() 181 if (!TEST_ptr_null(fetch = EVP_MD_fetch(libctx, "SHA256", NULL))) in test_provider_status() 196 if (!TEST_ptr(prov = OSSL_PROVIDER_load(libctx, provider_name))) in test_provider_gettable_params() 224 libctx = OSSL_LIB_CTX_new(); in setup_tests() 225 if (libctx == NULL) in setup_tests() 230 OSSL_SELF_TEST_set_callback(libctx, self_test_on_load, &self_test_args); in setup_tests() 231 if (!OSSL_LIB_CTX_load_config(libctx, config_file)) { in setup_tests() [all …]
|
A D | cmp_vfy_test.c | 40 static OSSL_LIB_CTX *libctx = NULL; variable 61 || !TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL)) in set_up() 94 if ((fixture->msg = load_pkimsg(ir_protected_f, libctx)) == NULL) in execute_verify_popo_test() 236 if (!TEST_ptr(fixture->msg = load_pkimsg(ir_protected_f, libctx)) in test_validate_msg_signature_srvcert_wrong() 249 if (!TEST_ptr(fixture->msg = load_pkimsg(ir_protected_f, libctx)) in test_validate_msg_signature_srvcert() 331 if (!TEST_ptr(fixture->msg = load_pkimsg(ir_protected_f, libctx)) in test_validate_with_sender() 552 OSSL_LIB_CTX_free(libctx); in cleanup_tests() 607 if (!TEST_ptr(endentity1 = load_cert_pem(endentity1_f, libctx)) in OPT_TEST_DECLARE_USAGE() 613 if (!TEST_ptr(insta_cert = load_cert_pem(instacert_f, libctx)) in OPT_TEST_DECLARE_USAGE() 618 if (!TEST_ptr(srvcert = load_cert_pem(server_f, libctx)) in OPT_TEST_DECLARE_USAGE() [all …]
|
/openssl-master/crypto/store/ |
A D | store_meth.c | 92 OSSL_LIB_CTX *libctx; member 124 static OSSL_METHOD_STORE *get_loader_store(OSSL_LIB_CTX *libctx) in get_loader_store() argument 145 && (store = get_loader_store(methdata->libctx)) == NULL) in get_loader_from_store() 250 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in construct_loader() local 251 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in construct_loader() 375 methdata.libctx = libctx; in OSSL_STORE_LOADER_fetch() 389 methdata.libctx = libctx; in ossl_store_loader_fetch_by_number() 439 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in OSSL_STORE_LOADER_is_a() 458 void OSSL_STORE_LOADER_do_all_provided(OSSL_LIB_CTX *libctx, in OSSL_STORE_LOADER_do_all_provided() argument 466 methdata.libctx = libctx; in OSSL_STORE_LOADER_do_all_provided() [all …]
|
A D | store_result.c | 92 OSSL_LIB_CTX *libctx = ossl_provider_libctx(provider); in ossl_store_handle_load_result() local 138 if (*v == NULL && !try_cert(&helper_data, v, libctx, propq)) in ossl_store_handle_load_result() 142 if (*v == NULL && !try_crl(&helper_data, v, libctx, propq)) in ossl_store_handle_load_result() 199 keymgmt = EVP_KEYMGMT_fetch(libctx, data->data_type, propq); in try_key_ref() 300 pk = d2i_PUBKEY_ex(NULL, &derp, der_len, libctx, propq); in try_key_value_legacy() 354 pk = EVP_PKCS82PKEY_ex(p8info, libctx, propq); in try_key_value_legacy() 370 OSSL_LIB_CTX *libctx, const char *propq) in try_key() argument 439 OSSL_LIB_CTX *libctx, const char *propq) in try_cert() argument 453 X509 *cert = X509_new_ex(libctx, propq); in try_cert() 485 OSSL_LIB_CTX *libctx, const char *propq) in try_crl() argument [all …]
|
/openssl-master/crypto/ffc/ |
A D | ffc_params_validate.c | 52 int ossl_ffc_params_FIPS186_4_validate(OSSL_LIB_CTX *libctx, in ossl_ffc_params_FIPS186_4_validate() argument 64 return ossl_ffc_params_FIPS186_4_gen_verify(libctx, (FFC_PARAMS *)params, in ossl_ffc_params_FIPS186_4_validate() 70 int ossl_ffc_params_FIPS186_2_validate(OSSL_LIB_CTX *libctx, in ossl_ffc_params_FIPS186_2_validate() argument 84 return ossl_ffc_params_FIPS186_2_gen_verify(libctx, (FFC_PARAMS *)params, in ossl_ffc_params_FIPS186_2_validate() 116 ret = ossl_ffc_params_FIPS186_2_validate(libctx, &tmpparams, paramstype, in ossl_ffc_params_simple_validate() 120 ret = ossl_ffc_params_FIPS186_4_validate(libctx, &tmpparams, paramstype, in ossl_ffc_params_simple_validate() 139 int ossl_ffc_params_full_validate(OSSL_LIB_CTX *libctx, const FFC_PARAMS *params, in ossl_ffc_params_full_validate() argument 151 return ossl_ffc_params_FIPS186_4_validate(libctx, params, paramstype, in ossl_ffc_params_full_validate() 156 return ossl_ffc_params_FIPS186_2_validate(libctx, params, paramstype, in ossl_ffc_params_full_validate() 164 ret = ossl_ffc_params_simple_validate(libctx, params, paramstype, res); in ossl_ffc_params_full_validate() [all …]
|
/openssl-master/test/helpers/ |
A D | predefined_dhparams.c | 18 static EVP_PKEY *get_dh_from_pg_bn(OSSL_LIB_CTX *libctx, const char *type, in get_dh_from_pg_bn() argument 21 EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_from_name(libctx, type, NULL); in get_dh_from_pg_bn() 63 dhpkey = get_dh_from_pg_bn(libctx, type, p, g, q); in get_dh_from_pg() 72 EVP_PKEY *get_dh512(OSSL_LIB_CTX *libctx) in get_dh512() argument 86 return get_dh_from_pg(libctx, "DH", dh512_p, sizeof(dh512_p), in get_dh512() 90 EVP_PKEY *get_dhx512(OSSL_LIB_CTX *libctx) in get_dhx512() argument 113 return get_dh_from_pg(libctx, "X9.42 DH", in get_dhx512() 119 EVP_PKEY *get_dh1024dsa(OSSL_LIB_CTX *libctx) in get_dh1024dsa() argument 148 return get_dh_from_pg(libctx, "DH", dh1024_p, sizeof(dh1024_p), in get_dh1024dsa() 152 EVP_PKEY *get_dh2048(OSSL_LIB_CTX *libctx) in get_dh2048() argument [all …]
|
/openssl-master/providers/fips/ |
A D | self_test_kats.c | 21 OSSL_LIB_CTX *libctx) in self_test_digest() argument 220 bnctx = BN_CTX_new_ex(libctx); in self_test_kdf() 377 bnctx = BN_CTX_new_ex(libctx); in self_test_ka() 462 bnctx = BN_CTX_new_ex(libctx); in self_test_sign() 547 bnctx = BN_CTX_new_ex(libctx); in self_test_asym_cipher() 709 if (!self_test_digests(st, libctx)) in SELF_TEST_kats() 711 if (!self_test_ciphers(st, libctx)) in SELF_TEST_kats() 713 if (!self_test_signatures(st, libctx)) in SELF_TEST_kats() 715 if (!self_test_kdfs(st, libctx)) in SELF_TEST_kats() 717 if (!self_test_drbgs(st, libctx)) in SELF_TEST_kats() [all …]
|
/openssl-master/demos/signature/ |
A D | EVP_Signature_demo.c | 70 static int demo_sign(OSSL_LIB_CTX *libctx, const char *sig_name, in demo_sign() argument 81 priv_key = get_key(libctx, propq, public); in demo_sign() 100 libctx, NULL, priv_key, NULL)) { in demo_sign() 168 pub_key = get_key(libctx, propq, public); in demo_verify() 175 libctx, NULL, pub_key, NULL)) { in demo_verify() 207 OSSL_LIB_CTX *libctx = NULL; in main() local 213 libctx = OSSL_LIB_CTX_new(); in main() 214 if (libctx == NULL) { in main() 218 if (!demo_sign(libctx, sig_name, &sig_len, &sig_value)) { in main() 222 if (!demo_verify(libctx, sig_name, sig_len, sig_value)) { in main() [all …]
|
/openssl-master/crypto/bio/ |
A D | bss_core.c | 40 static ossl_inline BIO_CORE_GLOBALS *get_globals(OSSL_LIB_CTX *libctx) in get_globals() argument 42 return ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_BIO_CORE_INDEX, in get_globals() 49 BIO_CORE_GLOBALS *bcgbl = get_globals(bio->libctx); in bio_core_read_ex() 59 BIO_CORE_GLOBALS *bcgbl = get_globals(bio->libctx); in bio_core_write_ex() 68 BIO_CORE_GLOBALS *bcgbl = get_globals(bio->libctx); in bio_core_ctrl() 77 BIO_CORE_GLOBALS *bcgbl = get_globals(bio->libctx); in bio_core_gets() 86 BIO_CORE_GLOBALS *bcgbl = get_globals(bio->libctx); in bio_core_puts() 102 BIO_CORE_GLOBALS *bcgbl = get_globals(bio->libctx); in bio_core_free() 133 BIO_CORE_GLOBALS *bcgbl = get_globals(libctx); in BIO_new_from_core_bio() 139 if ((outbio = BIO_new_ex(libctx, BIO_s_core())) == NULL) in BIO_new_from_core_bio() [all …]
|
/openssl-master/crypto/encode_decode/ |
A D | decoder_meth.c | 89 OSSL_LIB_CTX *libctx; member 121 static OSSL_METHOD_STORE *get_decoder_store(OSSL_LIB_CTX *libctx) in get_decoder_store() argument 203 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in ossl_decoder_from_algorithm() local 299 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in construct_decoder() local 300 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in construct_decoder() 427 methdata.libctx = libctx; in OSSL_DECODER_fetch() 440 methdata.libctx = libctx; in ossl_decoder_fetch_by_number() 506 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in OSSL_DECODER_is_a() 525 void OSSL_DECODER_do_all_provided(OSSL_LIB_CTX *libctx, in OSSL_DECODER_do_all_provided() argument 533 methdata.libctx = libctx; in OSSL_DECODER_do_all_provided() [all …]
|
A D | encoder_meth.c | 89 OSSL_LIB_CTX *libctx; member 121 static OSSL_METHOD_STORE *get_encoder_store(OSSL_LIB_CTX *libctx) in get_encoder_store() argument 203 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in encoder_from_algorithm() local 309 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in construct_encoder() local 310 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in construct_encoder() 436 methdata.libctx = libctx; in OSSL_ENCODER_fetch() 449 methdata.libctx = libctx; in ossl_encoder_fetch_by_number() 515 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in OSSL_ENCODER_is_a() 534 void OSSL_ENCODER_do_all_provided(OSSL_LIB_CTX *libctx, in OSSL_ENCODER_do_all_provided() argument 542 methdata.libctx = libctx; in OSSL_ENCODER_do_all_provided() [all …]
|
/openssl-master/crypto/x509/ |
A D | x509_d2.c | 15 int X509_STORE_set_default_paths_ex(X509_STORE *ctx, OSSL_LIB_CTX *libctx, in X509_STORE_set_default_paths_ex() argument 23 X509_LOOKUP_load_file_ex(lookup, NULL, X509_FILETYPE_DEFAULT, libctx, propq); in X509_STORE_set_default_paths_ex() 33 X509_LOOKUP_add_store_ex(lookup, NULL, libctx, propq); in X509_STORE_set_default_paths_ex() 46 OSSL_LIB_CTX *libctx, const char *propq) in X509_STORE_load_file_ex() argument 52 || X509_LOOKUP_load_file_ex(lookup, file, X509_FILETYPE_PEM, libctx, in X509_STORE_load_file_ex() 77 OSSL_LIB_CTX *libctx, const char *propq) in X509_STORE_load_store_ex() argument 83 || X509_LOOKUP_add_store_ex(lookup, uri, libctx, propq) == 0) in X509_STORE_load_store_ex() 95 const char *path, OSSL_LIB_CTX *libctx, in X509_STORE_load_locations_ex() argument 100 if (file != NULL && !X509_STORE_load_file_ex(ctx, file, libctx, propq)) in X509_STORE_load_locations_ex()
|
A D | x_req.c | 69 if (!ossl_x509_req_set0_libctx(ret, old->libctx, old->propq)) in req_cb() 92 OSSL_LIB_CTX **libctx = exarg; in req_cb() local 94 *libctx = ret->libctx; in req_cb() 147 int ossl_x509_req_set0_libctx(X509_REQ *x, OSSL_LIB_CTX *libctx, in ossl_x509_req_set0_libctx() argument 151 x->libctx = libctx; in ossl_x509_req_set0_libctx() 163 X509_REQ *X509_REQ_new_ex(OSSL_LIB_CTX *libctx, const char *propq) in X509_REQ_new_ex() argument 168 if (!ossl_x509_req_set0_libctx(req, libctx, propq)) { in X509_REQ_new_ex()
|
/openssl-master/crypto/asn1/ |
A D | d2i_pr.c | 28 long length, OSSL_LIB_CTX *libctx, const char *propq) in d2i_PrivateKey_decoder() argument 51 EVP_PKEY_KEYPAIR, libctx, propq); in d2i_PrivateKey_decoder() 79 long length, OSSL_LIB_CTX *libctx, const char *propq) in ossl_d2i_PrivateKey_legacy() argument 114 tmp = evp_pkcs82pkey_legacy(p8, libctx, propq); in ossl_d2i_PrivateKey_legacy() 144 long length, OSSL_LIB_CTX *libctx, in d2i_PrivateKey_ex() argument 149 ret = d2i_PrivateKey_decoder(keytype, a, pp, length, libctx, propq); in d2i_PrivateKey_ex() 165 OSSL_LIB_CTX *libctx, in d2i_AutoPrivateKey_legacy() argument 198 ret = evp_pkcs82pkey_legacy(p8, libctx, propq); in d2i_AutoPrivateKey_legacy() 211 return ossl_d2i_PrivateKey_legacy(keytype, a, pp, length, libctx, propq); in d2i_AutoPrivateKey_legacy() 219 long length, OSSL_LIB_CTX *libctx, in d2i_AutoPrivateKey_ex() argument [all …]
|
/openssl-master/crypto/ |
A D | provider.c | 18 OSSL_PROVIDER *OSSL_PROVIDER_try_load(OSSL_LIB_CTX *libctx, const char *name, in OSSL_PROVIDER_try_load() argument 25 if ((prov = ossl_provider_find(libctx, name, 0)) == NULL) { in OSSL_PROVIDER_try_load() 26 if ((prov = ossl_provider_new(libctx, name, NULL, 0)) == NULL) in OSSL_PROVIDER_try_load() 52 OSSL_PROVIDER *OSSL_PROVIDER_load(OSSL_LIB_CTX *libctx, const char *name) in OSSL_PROVIDER_load() argument 55 if (ossl_provider_disable_fallback_loading(libctx)) in OSSL_PROVIDER_load() 56 return OSSL_PROVIDER_try_load(libctx, name, 0); in OSSL_PROVIDER_load() 115 int OSSL_PROVIDER_add_builtin(OSSL_LIB_CTX *libctx, const char *name, in OSSL_PROVIDER_add_builtin() argument 131 if (!ossl_provider_info_add_to_store(libctx, &entry)) { in OSSL_PROVIDER_add_builtin()
|
/openssl-master/providers/implementations/ciphers/ |
A D | cipher_aes_siv_hw.c | 25 OSSL_LIB_CTX *libctx = ctx->libctx; in aes_siv_initkey() local 35 ctx->cbc = EVP_CIPHER_fetch(libctx, "AES-128-CBC", propq); in aes_siv_initkey() 36 ctx->ctr = EVP_CIPHER_fetch(libctx, "AES-128-CTR", propq); in aes_siv_initkey() 39 ctx->cbc = EVP_CIPHER_fetch(libctx, "AES-192-CBC", propq); in aes_siv_initkey() 40 ctx->ctr = EVP_CIPHER_fetch(libctx, "AES-192-CTR", propq); in aes_siv_initkey() 43 ctx->cbc = EVP_CIPHER_fetch(libctx, "AES-256-CBC", propq); in aes_siv_initkey() 44 ctx->ctr = EVP_CIPHER_fetch(libctx, "AES-256-CTR", propq); in aes_siv_initkey() 55 return ossl_siv128_init(sctx, key, klen, ctx->cbc, ctx->ctr, libctx, in aes_siv_initkey()
|
/openssl-master/crypto/pem/ |
A D | pem_pkey.c | 35 OSSL_LIB_CTX *libctx, in pem_read_bio_key_decoder() argument 97 OSSL_LIB_CTX *libctx, in pem_read_bio_key_legacy() argument 136 ret = evp_pkcs82pkey_legacy(p8inf, libctx, propq); in pem_read_bio_key_legacy() 164 ret = evp_pkcs82pkey_legacy(p8inf, libctx, propq); in pem_read_bio_key_legacy() 208 OSSL_LIB_CTX *libctx, in pem_read_bio_key() argument 234 libctx, propq, selection); in pem_read_bio_key() 239 libctx, propq, in pem_read_bio_key() 258 return pem_read_bio_key(bp, x, cb, u, libctx, propq, in PEM_read_bio_PUBKEY_ex() 281 ret = PEM_read_bio_PUBKEY_ex(b, x, cb, u, libctx, propq); in PEM_read_PUBKEY_ex() 296 return pem_read_bio_key(bp, x, cb, u, libctx, propq, in PEM_read_bio_PrivateKey_ex() [all …]
|
/openssl-master/test/testutil/ |
A D | fake_random.c | 188 OSSL_PROVIDER *fake_rand_start(OSSL_LIB_CTX *libctx) in fake_rand_start() argument 192 if (!TEST_true(OSSL_PROVIDER_add_builtin(libctx, "fake-rand", in fake_rand_start() 194 || !TEST_true(RAND_set_DRBG_type(libctx, "fake", NULL, NULL, NULL)) in fake_rand_start() 195 || !TEST_ptr(p = OSSL_PROVIDER_try_load(libctx, "fake-rand", 1))) in fake_rand_start() 199 if (!TEST_true(check_rng(RAND_get0_primary(libctx), "primary")) in fake_rand_start() 200 || !TEST_true(check_rng(RAND_get0_private(libctx), "private")) in fake_rand_start() 201 || !TEST_true(check_rng(RAND_get0_public(libctx), "public"))) { in fake_rand_start() 222 void fake_rand_set_public_private_callbacks(OSSL_LIB_CTX *libctx, in fake_rand_set_public_private_callbacks() argument 228 fake_rand_set_callback(RAND_get0_private(libctx), cb); in fake_rand_set_public_private_callbacks() 229 fake_rand_set_callback(RAND_get0_public(libctx), cb); in fake_rand_set_public_private_callbacks()
|
/openssl-master/crypto/ocsp/ |
A D | ocsp_local.h | 220 # define OCSP_REQUEST_sign(o, pkey, md, libctx, propq)\ argument 224 NULL, pkey, md, libctx, propq) 226 # define OCSP_BASICRESP_sign(o, pkey, md, d, libctx, propq)\ argument 230 NULL, pkey, md, libctx, propq) 237 # define OCSP_REQUEST_verify(a, r, libctx, propq)\ argument 241 NULL, r, libctx, propq) 243 # define OCSP_BASICRESP_verify(a, r, libctx, propq)\ argument 246 &(a)->tbsResponseData, NULL, r, libctx, propq)
|