Home
last modified time | relevance | path

Searched refs:OSSL_LIB_CTX (Results 1 – 25 of 703) sorted by relevance

12345678910>>...29

/src/crypto/openssl/include/crypto/
H A Dcontext.h12 void *ossl_provider_store_new(OSSL_LIB_CTX *);
13 void *ossl_property_string_data_new(OSSL_LIB_CTX *);
14 void *ossl_stored_namemap_new(OSSL_LIB_CTX *);
15 void *ossl_property_defns_new(OSSL_LIB_CTX *);
16 void *ossl_ctx_global_properties_new(OSSL_LIB_CTX *);
17 void *ossl_rand_ctx_new(OSSL_LIB_CTX *);
18 void *ossl_prov_conf_ctx_new(OSSL_LIB_CTX *);
19 void *ossl_bio_core_globals_new(OSSL_LIB_CTX *);
20 void *ossl_child_prov_ctx_new(OSSL_LIB_CTX *);
21 void *ossl_prov_drbg_nonce_ctx_new(OSSL_LIB_CTX *);
[all …]
H A Drand.h110 size_t ossl_rand_get_entropy(OSSL_LIB_CTX *ctx,
113 size_t ossl_rand_get_user_entropy(OSSL_LIB_CTX *ctx,
116 void ossl_rand_cleanup_entropy(OSSL_LIB_CTX *ctx,
118 void ossl_rand_cleanup_user_entropy(OSSL_LIB_CTX *ctx,
120 size_t ossl_rand_get_nonce(OSSL_LIB_CTX *ctx,
123 size_t ossl_rand_get_user_nonce(OSSL_LIB_CTX *ctx, unsigned char **pout,
126 void ossl_rand_cleanup_nonce(OSSL_LIB_CTX *ctx,
128 void ossl_rand_cleanup_user_nonce(OSSL_LIB_CTX *ctx,
138 EVP_RAND_CTX *ossl_rand_get0_private_noncreating(OSSL_LIB_CTX *ctx);
140 EVP_RAND_CTX *ossl_rand_get0_seed_noncreating(OSSL_LIB_CTX *ctx);
[all …]
H A Decx.h66 OSSL_LIB_CTX *libctx;
77 ECX_KEY *ossl_ecx_key_new(OSSL_LIB_CTX *libctx, ECX_KEY_TYPE type,
79 void ossl_ecx_key_set0_libctx(ECX_KEY *key, OSSL_LIB_CTX *libctx);
93 int ossl_ed25519_public_from_private(OSSL_LIB_CTX *ctx, uint8_t out_public_key[32],
100 OSSL_LIB_CTX *libctx, const char *propq);
105 OSSL_LIB_CTX *libctx, const char *propq);
107 int ossl_ed448_public_from_private(OSSL_LIB_CTX *ctx, uint8_t out_public_key[57],
109 int ossl_ed448_sign(OSSL_LIB_CTX *ctx, uint8_t *out_sig,
115 int ossl_ed448_verify(OSSL_LIB_CTX *ctx,
138 OSSL_LIB_CTX *libctx, const char *propq);
[all …]
H A Dec.h59 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);
104 OSSL_LIB_CTX *libctx, const char *propq);
H A Drsa.h61 RSA *ossl_rsa_new_with_ctx(OSSL_LIB_CTX *libctx);
62 OSSL_LIB_CTX *ossl_rsa_get0_libctx(RSA *r);
63 void ossl_rsa_set0_libctx(RSA *r, OSSL_LIB_CTX *libctx);
82 OSSL_LIB_CTX *libctx);
90 OSSL_LIB_CTX *libctx, const char *propq);
92 int ossl_rsa_padding_check_PKCS1_type_2(OSSL_LIB_CTX *ctx,
96 int ossl_rsa_padding_check_PKCS1_type_2_TLS(OSSL_LIB_CTX *ctx, unsigned char *to,
101 int ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(OSSL_LIB_CTX *libctx,
/src/crypto/openssl/crypto/
H A Dcontext.c59 int ossl_lib_ctx_write_lock(OSSL_LIB_CTX *ctx) in ossl_lib_ctx_write_lock()
66 int ossl_lib_ctx_read_lock(OSSL_LIB_CTX *ctx) in ossl_lib_ctx_read_lock()
73 int ossl_lib_ctx_unlock(OSSL_LIB_CTX *ctx) in ossl_lib_ctx_unlock()
80 int ossl_lib_ctx_is_child(OSSL_LIB_CTX *ctx) in ossl_lib_ctx_is_child()
89 static void context_deinit_objs(OSSL_LIB_CTX *ctx);
91 static int context_init(OSSL_LIB_CTX *ctx) in context_init()
234 static void context_deinit_objs(OSSL_LIB_CTX *ctx) in context_deinit_objs()
367 static int context_deinit(OSSL_LIB_CTX *ctx) in context_deinit()
386 static OSSL_LIB_CTX default_context_int;
418 static OSSL_LIB_CTX *get_thread_default_context(void) in get_thread_default_context()
[all …]
H A Dprovider_child.c37 void *ossl_child_prov_ctx_new(OSSL_LIB_CTX *libctx) in ossl_child_prov_ctx_new()
58 OSSL_LIB_CTX *ctx; in ossl_child_provider_init()
80 ctx = (OSSL_LIB_CTX *)c_get_libctx(handle); in ossl_child_provider_init()
94 OSSL_LIB_CTX *ctx = cbdata; in provider_create_child_cb()
160 OSSL_LIB_CTX *ctx = cbdata; in provider_remove_child_cb()
187 OSSL_LIB_CTX *ctx = cbdata; in provider_global_props_cb()
192 int ossl_provider_init_as_child(OSSL_LIB_CTX *ctx, in ossl_provider_init_as_child()
265 void ossl_provider_deinit_child(OSSL_LIB_CTX *ctx) in ossl_provider_deinit_child()
/src/crypto/openssl/include/internal/
H A Dcryptlib.h42 int ossl_do_ex_data_init(OSSL_LIB_CTX *ctx);
43 void ossl_crypto_cleanup_all_ex_data_int(OSSL_LIB_CTX *ctx);
123 OSSL_LIB_CTX *ossl_lib_ctx_get_concrete(OSSL_LIB_CTX *ctx);
124 int ossl_lib_ctx_is_default(OSSL_LIB_CTX *ctx);
125 int ossl_lib_ctx_is_global_default(OSSL_LIB_CTX *ctx);
128 void *ossl_lib_ctx_get_data(OSSL_LIB_CTX *, int /* index */);
131 OSSL_EX_DATA_GLOBAL *ossl_lib_ctx_get_ex_data_global(OSSL_LIB_CTX *ctx);
133 const char *ossl_lib_ctx_get_descriptor(OSSL_LIB_CTX *libctx);
134 CRYPTO_THREAD_LOCAL *ossl_lib_ctx_get_rcukey(OSSL_LIB_CTX *libctx);
136 OSSL_LIB_CTX *ossl_crypto_ex_data_get_ossl_lib_ctx(const CRYPTO_EX_DATA *ad);
[all …]
H A Dproperty.h28 int ossl_property_parse_init(OSSL_LIB_CTX *ctx);
31 OSSL_PROPERTY_LIST *ossl_parse_property(OSSL_LIB_CTX *ctx, const char *defn);
33 OSSL_PROPERTY_LIST *ossl_parse_query(OSSL_LIB_CTX *ctx, const char *s,
38 int ossl_property_is_enabled(OSSL_LIB_CTX *ctx, const char *property_name,
46 OSSL_LIB_CTX *libctx, const char *name);
48 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 …]
H A Dprovider.h31 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,
47 int ossl_provider_default_props_update(OSSL_LIB_CTX *libctx, const char *props);
50 int ossl_provider_disable_fallback_loading(OSSL_LIB_CTX *libctx);
65 int ossl_provider_activate_fallbacks(OSSL_LIB_CTX *ctx);
68 int ossl_provider_doall_activated(OSSL_LIB_CTX *,
79 OSSL_LIB_CTX *ossl_provider_libctx(const OSSL_PROVIDER *prov);
112 int ossl_provider_init_as_child(OSSL_LIB_CTX *ctx,
115 void ossl_provider_deinit_child(OSSL_LIB_CTX *ctx);
H A Dcore.h49 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);
H A Dffc.h156 int ossl_ffc_params_FIPS186_4_generate(OSSL_LIB_CTX *libctx, FFC_PARAMS *params,
159 int ossl_ffc_params_FIPS186_2_generate(OSSL_LIB_CTX *libctx, FFC_PARAMS *params,
163 int ossl_ffc_params_FIPS186_4_gen_verify(OSSL_LIB_CTX *libctx,
167 int ossl_ffc_params_FIPS186_2_gen_verify(OSSL_LIB_CTX *libctx,
172 int ossl_ffc_params_simple_validate(OSSL_LIB_CTX *libctx,
175 int ossl_ffc_params_full_validate(OSSL_LIB_CTX *libctx,
178 int ossl_ffc_params_FIPS186_4_validate(OSSL_LIB_CTX *libctx,
181 int ossl_ffc_params_FIPS186_2_validate(OSSL_LIB_CTX *libctx,
/src/crypto/openssl/include/openssl/
H A Dprovider.h21 int OSSL_PROVIDER_set_default_search_path(OSSL_LIB_CTX *, const char *path);
22 const char *OSSL_PROVIDER_get0_default_search_path(OSSL_LIB_CTX *libctx);
25 OSSL_PROVIDER *OSSL_PROVIDER_load(OSSL_LIB_CTX *, const char *name);
26 OSSL_PROVIDER *OSSL_PROVIDER_load_ex(OSSL_LIB_CTX *, const char *name,
28 OSSL_PROVIDER *OSSL_PROVIDER_try_load(OSSL_LIB_CTX *, const char *name,
30 OSSL_PROVIDER *OSSL_PROVIDER_try_load_ex(OSSL_LIB_CTX *, const char *name,
34 int OSSL_PROVIDER_available(OSSL_LIB_CTX *, const char *name);
35 int OSSL_PROVIDER_do_all(OSSL_LIB_CTX *ctx,
84 int OSSL_PROVIDER_add_builtin(OSSL_LIB_CTX *, const char *name,
H A Drand.h70 int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
77 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
84 EVP_RAND_CTX *RAND_get0_primary(OSSL_LIB_CTX *ctx);
85 EVP_RAND_CTX *RAND_get0_public(OSSL_LIB_CTX *ctx);
86 EVP_RAND_CTX *RAND_get0_private(OSSL_LIB_CTX *ctx);
87 int RAND_set0_public(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
88 int RAND_set0_private(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
90 int RAND_set_DRBG_type(OSSL_LIB_CTX *ctx, const char *drbg, const char *propq,
92 int RAND_set_seed_source_type(OSSL_LIB_CTX *ctx, const char *seed,
123 int RAND_set1_random_provider(OSSL_LIB_CTX *ctx, OSSL_PROVIDER *p);
H A Dpkcs12.h141 X509 *PKCS12_SAFEBAG_get1_cert_ex(const PKCS12_SAFEBAG *bag, OSSL_LIB_CTX *libctx, const char *prop…
143 X509_CRL *PKCS12_SAFEBAG_get1_crl_ex(const PKCS12_SAFEBAG *bag, OSSL_LIB_CTX *libctx, const char *p…
167 OSSL_LIB_CTX *ctx,
175 int passlen, OSSL_LIB_CTX *ctx,
181 OSSL_LIB_CTX *ctx,
189 OSSL_LIB_CTX *ctx, const char *propq);
194 OSSL_LIB_CTX *ctx, const char *propq);
203 OSSL_LIB_CTX *ctx, const char *propq);
241 int en_de, OSSL_LIB_CTX *libctx,
249 OSSL_LIB_CTX *libctx,
[all …]
/src/crypto/openssl/crypto/property/
H A Dproperty_local.h43 OSSL_PROPERTY_IDX ossl_property_name(OSSL_LIB_CTX *ctx, const char *s,
45 const char *ossl_property_name_str(OSSL_LIB_CTX *ctx, OSSL_PROPERTY_IDX idx);
46 OSSL_PROPERTY_IDX ossl_property_value(OSSL_LIB_CTX *ctx, const char *s,
48 const char *ossl_property_value_str(OSSL_LIB_CTX *ctx, OSSL_PROPERTY_IDX idx);
55 OSSL_PROPERTY_LIST *ossl_prop_defn_get(OSSL_LIB_CTX *ctx, const char *prop);
56 int ossl_prop_defn_set(OSSL_LIB_CTX *ctx, const char *prop,
/src/crypto/openssl/test/helpers/
H A Dpredefined_dhparams.h13 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);
H A Dpredefined_dhparams.c18 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()
148 EVP_PKEY *get_dhx512(OSSL_LIB_CTX *libctx) in get_dhx512()
314 EVP_PKEY *get_dh1024dsa(OSSL_LIB_CTX *libctx) in get_dh1024dsa()
581 EVP_PKEY *get_dh2048(OSSL_LIB_CTX *libctx) in get_dh2048()
602 EVP_PKEY *get_dh4096(OSSL_LIB_CTX *libctx) in get_dh4096()
/src/crypto/openssl/doc/internal/man3/
H A Dossl_lib_ctx_get_data.pod7 - internal OSSL_LIB_CTX routines
14 void *ossl_lib_ctx_get_data(OSSL_LIB_CTX *ctx, int index);
16 int ossl_lib_ctx_run_once(OSSL_LIB_CTX *ctx, unsigned int idx,
18 int ossl_lib_ctx_onfree(OSSL_LIB_CTX *ctx, ossl_lib_ctx_onfree_fn onfreefn);
20 int ossl_lib_ctx_is_child(OSSL_LIB_CTX *ctx);
38 these structures is managed by B<OSSL_LIB_CTX>. The different objects which can
61 void foo_cleanup(OSSL_LIB_CTX *ctx)
67 static int do_foo_init(OSSL_LIB_CTX *ctx)
73 int foo_some_function(OSSL_LIB_CTX *ctx)
86 L<OSSL_LIB_CTX(3)>
/src/crypto/openssl/crypto/rand/
H A Dprov_seed.c18 size_t ossl_rand_get_entropy(ossl_unused OSSL_LIB_CTX *ctx, in ossl_rand_get_entropy()
44 size_t ossl_rand_get_user_entropy(OSSL_LIB_CTX *ctx, in ossl_rand_get_user_entropy()
57 void ossl_rand_cleanup_entropy(ossl_unused OSSL_LIB_CTX *ctx, in ossl_rand_cleanup_entropy()
63 void ossl_rand_cleanup_user_entropy(OSSL_LIB_CTX *ctx, in ossl_rand_cleanup_user_entropy()
74 size_t ossl_rand_get_nonce(ossl_unused OSSL_LIB_CTX *ctx, in ossl_rand_get_nonce()
100 size_t ossl_rand_get_user_nonce(OSSL_LIB_CTX *ctx, in ossl_rand_get_user_nonce()
122 void ossl_rand_cleanup_nonce(ossl_unused OSSL_LIB_CTX *ctx, in ossl_rand_cleanup_nonce()
128 void ossl_rand_cleanup_user_nonce(ossl_unused OSSL_LIB_CTX *ctx, in ossl_rand_cleanup_user_nonce()
H A Drand_lib.c97 static EVP_RAND_CTX *rand_get0_primary(OSSL_LIB_CTX *ctx, RAND_GLOBAL *dgbl);
98 static EVP_RAND_CTX *rand_get0_public(OSSL_LIB_CTX *ctx, RAND_GLOBAL *dgbl);
99 static EVP_RAND_CTX *rand_get0_private(OSSL_LIB_CTX *ctx, RAND_GLOBAL *dgbl);
101 static RAND_GLOBAL *rand_get_global(OSSL_LIB_CTX *libctx) in rand_get_global()
439 int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, in RAND_priv_bytes_ex()
478 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, in RAND_bytes_ex()
522 void *ossl_rand_ctx_new(OSSL_LIB_CTX *libctx) in ossl_rand_ctx_new()
593 OSSL_LIB_CTX *ctx = arg; in rand_delete_thread_state()
610 static EVP_RAND_CTX *rand_new_seed(OSSL_LIB_CTX *libctx) in rand_new_seed()
652 EVP_RAND_CTX *ossl_rand_get0_seed_noncreating(OSSL_LIB_CTX *ctx) in ossl_rand_get0_seed_noncreating()
[all …]
/src/crypto/openssl/test/testutil/
H A Dprovider.c16 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_lt(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_lt()
145 int fips_provider_version_gt(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_gt()
158 int fips_provider_version_ge(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_ge()
[all …]
/src/crypto/openssl/crypto/evp/
H A Devp_fetch.c28 OSSL_LIB_CTX *libctx;
67 static OSSL_METHOD_STORE *get_evp_method_store(OSSL_LIB_CTX *libctx) in get_evp_method_store()
221 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in construct_evp_method()
391 void *evp_generic_fetch(OSSL_LIB_CTX *libctx, int operation_id, in evp_generic_fetch()
437 int evp_method_store_cache_flush(OSSL_LIB_CTX *libctx) in evp_method_store_cache_flush()
448 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in evp_method_store_remove_all_provided()
456 static int evp_set_parsed_default_properties(OSSL_LIB_CTX *libctx, in evp_set_parsed_default_properties()
511 int evp_set_default_properties_int(OSSL_LIB_CTX *libctx, const char *propq, in evp_set_default_properties_int()
527 int EVP_set_default_properties(OSSL_LIB_CTX *libctx, const char *propq) in EVP_set_default_properties()
532 static int evp_default_properties_merge(OSSL_LIB_CTX *libctx, const char *propq, in evp_default_properties_merge()
[all …]
/src/crypto/openssl/crypto/ec/curve448/
H A Ded448.h41 OSSL_LIB_CTX *ctx,
64 ossl_c448_ed448_sign(OSSL_LIB_CTX *ctx,
90 ossl_c448_ed448_sign_prehash(OSSL_LIB_CTX *ctx,
118 ossl_c448_ed448_verify(OSSL_LIB_CTX *ctx,
147 OSSL_LIB_CTX *ctx,
206 OSSL_LIB_CTX *ctx,
/src/crypto/openssl/providers/fips/include/fips/
H A Dfipsindicator.h60 typedef int(OSSL_FIPS_IND_CHECK_CB)(OSSL_LIB_CTX *libctx);
62 int ossl_FIPS_IND_callback(OSSL_LIB_CTX *libctx, const char *type,
69 int ossl_FIPS_IND_on_unapproved(OSSL_FIPS_IND *ind, int id, OSSL_LIB_CTX *libctx,
125 int ossl_fips_ind_rsa_key_check(OSSL_FIPS_IND *ind, int id, OSSL_LIB_CTX *libctx,
128 int ossl_fips_ind_ec_key_check(OSSL_FIPS_IND *ind, int id, OSSL_LIB_CTX *libctx,
132 int ossl_fips_ind_digest_exch_check(OSSL_FIPS_IND *ind, int id, OSSL_LIB_CTX *libctx,
135 OSSL_LIB_CTX *libctx,

12345678910>>...29