/third_party/openssl/crypto/ |
D | context.c | 47 int ossl_lib_ctx_write_lock(OSSL_LIB_CTX *ctx) in ossl_lib_ctx_write_lock() 52 int ossl_lib_ctx_read_lock(OSSL_LIB_CTX *ctx) in ossl_lib_ctx_read_lock() 57 int ossl_lib_ctx_unlock(OSSL_LIB_CTX *ctx) in ossl_lib_ctx_unlock() 62 int ossl_lib_ctx_is_child(OSSL_LIB_CTX *ctx) in ossl_lib_ctx_is_child() 71 static int context_init(OSSL_LIB_CTX *ctx) in context_init() 116 static int context_deinit(OSSL_LIB_CTX *ctx) in context_deinit() 146 static OSSL_LIB_CTX default_context_int; 163 static OSSL_LIB_CTX *get_thread_default_context(void) in get_thread_default_context() 171 static OSSL_LIB_CTX *get_default_context(void) in get_default_context() 173 OSSL_LIB_CTX *current_defctx = get_thread_default_context(); in get_default_context() [all …]
|
D | provider_child.c | 36 static void *child_prov_ossl_ctx_new(OSSL_LIB_CTX *libctx) in child_prov_ossl_ctx_new() 63 OSSL_LIB_CTX *ctx; in ossl_child_provider_init() 85 ctx = (OSSL_LIB_CTX *)c_get_libctx(handle); in ossl_child_provider_init() 100 OSSL_LIB_CTX *ctx = cbdata; in provider_create_child_cb() 164 OSSL_LIB_CTX *ctx = cbdata; in provider_remove_child_cb() 192 OSSL_LIB_CTX *ctx = cbdata; in provider_global_props_cb() 197 int ossl_provider_init_as_child(OSSL_LIB_CTX *ctx, in ossl_provider_init_as_child() 271 void ossl_provider_deinit_child(OSSL_LIB_CTX *ctx) in ossl_provider_deinit_child()
|
/third_party/openssl/include/internal/ |
D | cryptlib.h | 95 int ossl_do_ex_data_init(OSSL_LIB_CTX *ctx); 96 void ossl_crypto_cleanup_all_ex_data_int(OSSL_LIB_CTX *ctx); 180 void *(*new_func)(OSSL_LIB_CTX *ctx); 184 OSSL_LIB_CTX *ossl_lib_ctx_get_concrete(OSSL_LIB_CTX *ctx); 185 int ossl_lib_ctx_is_default(OSSL_LIB_CTX *ctx); 186 int ossl_lib_ctx_is_global_default(OSSL_LIB_CTX *ctx); 189 void *ossl_lib_ctx_get_data(OSSL_LIB_CTX *, int /* index */, 193 OSSL_EX_DATA_GLOBAL *ossl_lib_ctx_get_ex_data_global(OSSL_LIB_CTX *ctx); 194 typedef int (ossl_lib_ctx_run_once_fn)(OSSL_LIB_CTX *ctx); 195 typedef void (ossl_lib_ctx_onfree_fn)(OSSL_LIB_CTX *ctx); [all …]
|
D | property.h | 27 int ossl_property_parse_init(OSSL_LIB_CTX *ctx); 30 OSSL_PROPERTY_LIST *ossl_parse_property(OSSL_LIB_CTX *ctx, const char *defn); 32 OSSL_PROPERTY_LIST *ossl_parse_query(OSSL_LIB_CTX *ctx, const char *s, 37 int ossl_property_is_enabled(OSSL_LIB_CTX *ctx, const char *property_name, 45 OSSL_LIB_CTX *libctx, const char *name); 47 const char *ossl_property_get_string_value(OSSL_LIB_CTX *libctx, 53 OSSL_METHOD_STORE *ossl_method_store_new(OSSL_LIB_CTX *ctx); 75 OSSL_PROPERTY_LIST **ossl_ctx_global_properties(OSSL_LIB_CTX *ctx, 92 size_t ossl_property_list_to_string(OSSL_LIB_CTX *ctx, 96 int ossl_global_properties_no_mirrored(OSSL_LIB_CTX *libctx); [all …]
|
D | provider.h | 31 OSSL_PROVIDER *ossl_provider_find(OSSL_LIB_CTX *libctx, const char *name, 33 OSSL_PROVIDER *ossl_provider_new(OSSL_LIB_CTX *libctx, const char *name, 50 int ossl_provider_default_props_update(OSSL_LIB_CTX *libctx, const char *props); 53 int ossl_provider_disable_fallback_loading(OSSL_LIB_CTX *libctx); 68 int ossl_provider_doall_activated(OSSL_LIB_CTX *, 80 OSSL_LIB_CTX *ossl_provider_libctx(const OSSL_PROVIDER *prov); 111 int ossl_provider_init_as_child(OSSL_LIB_CTX *ctx, 114 void ossl_provider_deinit_child(OSSL_LIB_CTX *ctx);
|
D | core.h | 49 void *ossl_method_construct(OSSL_LIB_CTX *ctx, int operation_id, 53 void ossl_algorithm_do_all(OSSL_LIB_CTX *libctx, int operation_id, 67 __owur int ossl_lib_ctx_write_lock(OSSL_LIB_CTX *ctx); 68 __owur int ossl_lib_ctx_read_lock(OSSL_LIB_CTX *ctx); 69 int ossl_lib_ctx_unlock(OSSL_LIB_CTX *ctx); 70 int ossl_lib_ctx_is_child(OSSL_LIB_CTX *ctx);
|
D | ffc.h | 152 int ossl_ffc_params_FIPS186_4_generate(OSSL_LIB_CTX *libctx, FFC_PARAMS *params, 155 int ossl_ffc_params_FIPS186_2_generate(OSSL_LIB_CTX *libctx, FFC_PARAMS *params, 159 int ossl_ffc_params_FIPS186_4_gen_verify(OSSL_LIB_CTX *libctx, 163 int ossl_ffc_params_FIPS186_2_gen_verify(OSSL_LIB_CTX *libctx, 168 int ossl_ffc_params_simple_validate(OSSL_LIB_CTX *libctx, 171 int ossl_ffc_params_full_validate(OSSL_LIB_CTX *libctx, 174 int ossl_ffc_params_FIPS186_4_validate(OSSL_LIB_CTX *libctx, 177 int ossl_ffc_params_FIPS186_2_validate(OSSL_LIB_CTX *libctx,
|
/third_party/openssl/providers/common/include/prov/ |
D | securitycheck.h | 13 int ossl_rsa_check_key(OSSL_LIB_CTX *ctx, const RSA *rsa, int operation); 14 int ossl_ec_check_key(OSSL_LIB_CTX *ctx, const EC_KEY *ec, int protect); 15 int ossl_dsa_check_key(OSSL_LIB_CTX *ctx, const DSA *dsa, int sign); 16 int ossl_dh_check_key(OSSL_LIB_CTX *ctx, const DH *dh); 18 int ossl_digest_is_allowed(OSSL_LIB_CTX *ctx, const EVP_MD *md); 20 int ossl_digest_get_approved_nid_with_sha1(OSSL_LIB_CTX *ctx, const EVP_MD *md, 28 int ossl_digest_rsa_sign_get_md_nid(OSSL_LIB_CTX *ctx, const EVP_MD *md, 30 int ossl_securitycheck_enabled(OSSL_LIB_CTX *libctx);
|
/third_party/openssl/include/crypto/ |
D | ecx.h | 67 OSSL_LIB_CTX *libctx; 79 ECX_KEY *ossl_ecx_key_new(OSSL_LIB_CTX *libctx, ECX_KEY_TYPE type, 81 void ossl_ecx_key_set0_libctx(ECX_KEY *key, OSSL_LIB_CTX *libctx); 93 ossl_ed25519_public_from_private(OSSL_LIB_CTX *ctx, uint8_t out_public_key[32], 99 OSSL_LIB_CTX *libctx, const char *propq); 103 OSSL_LIB_CTX *libctx, const char *propq); 106 ossl_ed448_public_from_private(OSSL_LIB_CTX *ctx, uint8_t out_public_key[57], 109 ossl_ed448_sign(OSSL_LIB_CTX *ctx, uint8_t *out_sig, const uint8_t *message, 115 ossl_ed448_verify(OSSL_LIB_CTX *ctx, const uint8_t *message, size_t message_len, 137 OSSL_LIB_CTX *libctx, const char *propq); [all …]
|
D | ec.h | 59 const EVP_MD *md, OSSL_LIB_CTX *libctx, 66 OSSL_LIB_CTX *ossl_ec_key_get_libctx(const EC_KEY *eckey); 68 void ossl_ec_key_set0_libctx(EC_KEY *key, OSSL_LIB_CTX *libctx); 72 OSSL_PARAM params[], OSSL_LIB_CTX *libctx, 84 OSSL_LIB_CTX *libctx, 87 OSSL_LIB_CTX *libctx, const char *propq);
|
D | x509.h | 85 OSSL_LIB_CTX *libctx; 126 OSSL_LIB_CTX *libctx; 206 OSSL_LIB_CTX *libctx; 282 OSSL_LIB_CTX *libctx; 317 int ossl_x509_set0_libctx(X509 *x, OSSL_LIB_CTX *libctx, const char *propq); 318 int ossl_x509_crl_set0_libctx(X509_CRL *x, OSSL_LIB_CTX *libctx, 320 int ossl_x509_req_set0_libctx(X509_REQ *x, OSSL_LIB_CTX *libctx, 324 OSSL_LIB_CTX *libctx, const char *propq); 331 int ossl_x509_PUBKEY_get0_libctx(OSSL_LIB_CTX **plibctx, const char **ppropq, 337 long len, OSSL_LIB_CTX *libctx);
|
D | rsa.h | 55 RSA *ossl_rsa_new_with_ctx(OSSL_LIB_CTX *libctx); 56 OSSL_LIB_CTX *ossl_rsa_get0_libctx(RSA *r); 57 void ossl_rsa_set0_libctx(RSA *r, OSSL_LIB_CTX *libctx); 76 OSSL_LIB_CTX *libctx); 84 OSSL_LIB_CTX *libctx, const char *propq); 86 int ossl_rsa_padding_check_PKCS1_type_2_TLS(OSSL_LIB_CTX *ctx, unsigned char *to, 91 int ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(OSSL_LIB_CTX *libctx,
|
/third_party/openssl/crypto/evp/ |
D | evp_fetch.c | 31 static void *evp_method_store_new(OSSL_LIB_CTX *ctx) in evp_method_store_new() 46 OSSL_LIB_CTX *libctx; 80 static OSSL_METHOD_STORE *get_evp_method_store(OSSL_LIB_CTX *libctx) in get_evp_method_store() 230 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in construct_evp_method() 383 void *evp_generic_fetch(OSSL_LIB_CTX *libctx, int operation_id, in evp_generic_fetch() 410 void *evp_generic_fetch_by_number(OSSL_LIB_CTX *libctx, int operation_id, in evp_generic_fetch_by_number() 456 int evp_method_store_cache_flush(OSSL_LIB_CTX *libctx) in evp_method_store_cache_flush() 467 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in evp_method_store_remove_all_provided() 475 static int evp_set_parsed_default_properties(OSSL_LIB_CTX *libctx, in evp_set_parsed_default_properties() 524 int evp_set_default_properties_int(OSSL_LIB_CTX *libctx, const char *propq, in evp_set_default_properties_int() [all …]
|
/third_party/openssl/include/openssl/ |
D | rand.h | 68 int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, 75 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, 82 EVP_RAND_CTX *RAND_get0_primary(OSSL_LIB_CTX *ctx); 83 EVP_RAND_CTX *RAND_get0_public(OSSL_LIB_CTX *ctx); 84 EVP_RAND_CTX *RAND_get0_private(OSSL_LIB_CTX *ctx); 86 int RAND_set_DRBG_type(OSSL_LIB_CTX *ctx, const char *drbg, const char *propq, 88 int RAND_set_seed_source_type(OSSL_LIB_CTX *ctx, const char *seed,
|
D | provider.h | 21 int OSSL_PROVIDER_set_default_search_path(OSSL_LIB_CTX *, const char *path); 24 OSSL_PROVIDER *OSSL_PROVIDER_load(OSSL_LIB_CTX *, const char *name); 25 OSSL_PROVIDER *OSSL_PROVIDER_try_load(OSSL_LIB_CTX *, const char *name, 28 int OSSL_PROVIDER_available(OSSL_LIB_CTX *, const char *name); 29 int OSSL_PROVIDER_do_all(OSSL_LIB_CTX *ctx, 50 int OSSL_PROVIDER_add_builtin(OSSL_LIB_CTX *, const char *name,
|
D | pkcs12.h.in | 134 OSSL_LIB_CTX *ctx, 142 int passlen, OSSL_LIB_CTX *ctx, 148 OSSL_LIB_CTX *ctx, 156 OSSL_LIB_CTX *ctx, const char *propq); 161 OSSL_LIB_CTX *ctx, const char *propq); 170 OSSL_LIB_CTX *ctx, const char *propq); 207 int en_de, OSSL_LIB_CTX *libctx, 215 OSSL_LIB_CTX *libctx, 225 OSSL_LIB_CTX *ctx, 228 PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq); [all …]
|
/third_party/openssl/crypto/property/ |
D | property_local.h | 41 OSSL_PROPERTY_IDX ossl_property_name(OSSL_LIB_CTX *ctx, const char *s, 43 const char *ossl_property_name_str(OSSL_LIB_CTX *ctx, OSSL_PROPERTY_IDX idx); 44 OSSL_PROPERTY_IDX ossl_property_value(OSSL_LIB_CTX *ctx, const char *s, 46 const char *ossl_property_value_str(OSSL_LIB_CTX *ctx, OSSL_PROPERTY_IDX idx); 53 OSSL_PROPERTY_LIST *ossl_prop_defn_get(OSSL_LIB_CTX *ctx, const char *prop); 54 int ossl_prop_defn_set(OSSL_LIB_CTX *ctx, const char *prop,
|
/third_party/openssl/test/testutil/ |
D | provider.c | 16 int test_get_libctx(OSSL_LIB_CTX **libctx, OSSL_PROVIDER **default_null_prov, in test_get_libctx() 20 OSSL_LIB_CTX *new_libctx = NULL; in test_get_libctx() 53 int test_arg_libctx(OSSL_LIB_CTX **libctx, OSSL_PROVIDER **default_null_prov, in test_arg_libctx() 77 static int fips_provider_version(OSSL_LIB_CTX *libctx, FIPS_VERSION *vers) in fips_provider_version() 99 int fips_provider_version_eq(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_eq() 109 int fips_provider_version_ne(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_ne() 119 int fips_provider_version_le(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_le() 132 int fips_provider_version_gt(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_gt() 145 int fips_provider_version_match(OSSL_LIB_CTX *libctx, const char *versions) in fips_provider_version_match()
|
/third_party/openssl/test/helpers/ |
D | predefined_dhparams.h | 13 EVP_PKEY *get_dh512(OSSL_LIB_CTX *libctx); 14 EVP_PKEY *get_dhx512(OSSL_LIB_CTX *libctx); 15 EVP_PKEY *get_dh1024dsa(OSSL_LIB_CTX *libct); 16 EVP_PKEY *get_dh2048(OSSL_LIB_CTX *libctx); 17 EVP_PKEY *get_dh4096(OSSL_LIB_CTX *libctx);
|
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() 48 static EVP_PKEY *get_dh_from_pg(OSSL_LIB_CTX *libctx, const char *type, in get_dh_from_pg() 72 EVP_PKEY *get_dh512(OSSL_LIB_CTX *libctx) in get_dh512() 90 EVP_PKEY *get_dhx512(OSSL_LIB_CTX *libctx) in get_dhx512() 119 EVP_PKEY *get_dh1024dsa(OSSL_LIB_CTX *libctx) in get_dh1024dsa() 152 EVP_PKEY *get_dh2048(OSSL_LIB_CTX *libctx) in get_dh2048() 173 EVP_PKEY *get_dh4096(OSSL_LIB_CTX *libctx) in get_dh4096()
|
/third_party/openssl/crypto/ec/curve448/ |
D | ed448.h | 42 OSSL_LIB_CTX *ctx, 65 ossl_c448_ed448_sign(OSSL_LIB_CTX *ctx, 91 ossl_c448_ed448_sign_prehash(OSSL_LIB_CTX *ctx, 119 ossl_c448_ed448_verify(OSSL_LIB_CTX *ctx, 148 OSSL_LIB_CTX *ctx, 208 OSSL_LIB_CTX *ctx,
|
D | eddsa.c | 23 static c448_error_t oneshot_hash(OSSL_LIB_CTX *ctx, uint8_t *out, size_t outlen, in oneshot_hash() 57 static c448_error_t hash_init_with_dom(OSSL_LIB_CTX *ctx, EVP_MD_CTX *hashctx, in hash_init_with_dom() 99 OSSL_LIB_CTX *ctx, in ossl_c448_ed448_convert_private_key_to_x448() 112 OSSL_LIB_CTX *ctx, in ossl_c448_ed448_derive_public_key() 159 ossl_c448_ed448_sign(OSSL_LIB_CTX *ctx, in ossl_c448_ed448_sign() 268 OSSL_LIB_CTX *ctx, in ossl_c448_ed448_sign_prehash() 281 OSSL_LIB_CTX *ctx, in ossl_c448_ed448_verify() 365 OSSL_LIB_CTX *ctx, in ossl_c448_ed448_verify_prehash() 376 ossl_ed448_sign(OSSL_LIB_CTX *ctx, uint8_t *out_sig, const uint8_t *message, in ossl_ed448_sign() 387 ossl_ed448_verify(OSSL_LIB_CTX *ctx, const uint8_t *message, size_t message_len, in ossl_ed448_verify() [all …]
|
/third_party/openssl/doc/internal/man3/ |
D | ossl_lib_ctx_get_data.pod | 7 - internal OSSL_LIB_CTX routines 16 void *(*new_func)(OSSL_LIB_CTX *ctx); 20 void *ossl_lib_ctx_get_data(OSSL_LIB_CTX *ctx, int index, 23 int ossl_lib_ctx_run_once(OSSL_LIB_CTX *ctx, unsigned int idx, 25 int ossl_lib_ctx_onfree(OSSL_LIB_CTX *ctx, ossl_lib_ctx_onfree_fn onfreefn); 27 int ossl_lib_ctx_is_child(OSSL_LIB_CTX *ctx); 31 Internally, the OpenSSL library context B<OSSL_LIB_CTX> is implemented 81 static void *foo_new(OSSL_LIB_CTX *ctx) 118 void foo_cleanup(OSSL_LIB_CTX *ctx) 124 static int do_foo_init(OSSL_LIB_CTX *ctx) [all …]
|
/third_party/openssl/test/ |
D | context_internal_test.c | 30 static void *foo_new(OSSL_LIB_CTX *ctx) in foo_new() 52 static int test_context(OSSL_LIB_CTX *ctx) in test_context() 63 OSSL_LIB_CTX *ctx = NULL; in test_app_context() 79 OSSL_LIB_CTX *global = OSSL_LIB_CTX_get0_global_default(); in test_set0_default() 80 OSSL_LIB_CTX *local = OSSL_LIB_CTX_new(); in test_set0_default() 81 OSSL_LIB_CTX *prev; in test_set0_default()
|
/third_party/openssl/providers/common/ |
D | securitycheck.c | 29 int ossl_rsa_check_key(OSSL_LIB_CTX *ctx, const RSA *rsa, int operation) in ossl_rsa_check_key() 92 int ossl_ec_check_key(OSSL_LIB_CTX *ctx, const EC_KEY *ec, int protect) in ossl_ec_check_key() 150 int ossl_dsa_check_key(OSSL_LIB_CTX *ctx, const DSA *dsa, int sign) in ossl_dsa_check_key() 194 int ossl_dh_check_key(OSSL_LIB_CTX *ctx, const DH *dh) in ossl_dh_check_key() 227 int ossl_digest_get_approved_nid_with_sha1(OSSL_LIB_CTX *ctx, const EVP_MD *md, in ossl_digest_get_approved_nid_with_sha1() 241 int ossl_digest_is_allowed(OSSL_LIB_CTX *ctx, const EVP_MD *md) in ossl_digest_is_allowed()
|