Home
last modified time | relevance | path

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

12345678910>>...19

/netbsd-src/crypto/external/bsd/openssl/dist/include/internal/
H A Dcryptlib.h95 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 …]
H A Dproperty.h27 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 …]
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,
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);
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.h157 int ossl_ffc_params_FIPS186_4_generate(OSSL_LIB_CTX *libctx, FFC_PARAMS *params,
160 int ossl_ffc_params_FIPS186_2_generate(OSSL_LIB_CTX *libctx, FFC_PARAMS *params,
164 int ossl_ffc_params_FIPS186_4_gen_verify(OSSL_LIB_CTX *libctx,
168 int ossl_ffc_params_FIPS186_2_gen_verify(OSSL_LIB_CTX *libctx,
173 int ossl_ffc_params_simple_validate(OSSL_LIB_CTX *libctx,
176 int ossl_ffc_params_full_validate(OSSL_LIB_CTX *libctx,
179 int ossl_ffc_params_FIPS186_4_validate(OSSL_LIB_CTX *libctx,
182 int ossl_ffc_params_FIPS186_2_validate(OSSL_LIB_CTX *libctx,
/netbsd-src/crypto/external/bsd/openssl/dist/providers/common/include/prov/
H A Dsecuritycheck.h13 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);
/netbsd-src/crypto/external/bsd/openssl/dist/include/crypto/
H A Decx.h67 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 …]
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);
H A Drsa.h55 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,
H A Dx509.h85 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);
H A Ddh.h19 DH *ossl_dh_new_by_nid_ex(OSSL_LIB_CTX *libctx, int nid);
20 DH *ossl_dh_new_ex(OSSL_LIB_CTX *libctx);
21 void ossl_dh_set0_libctx(DH *d, OSSL_LIB_CTX *libctx);
40 OSSL_LIB_CTX *libctx, const char *propq);
58 OSSL_LIB_CTX *libctx, const char *propq);
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/evp/
H A Devp_fetch.c31 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()
396 void *evp_generic_fetch(OSSL_LIB_CTX *libctx, int operation_id, in evp_generic_fetch()
423 void *evp_generic_fetch_by_number(OSSL_LIB_CTX *libctx, int operation_id, in evp_generic_fetch_by_number()
469 int evp_method_store_cache_flush(OSSL_LIB_CTX *libctx) in evp_method_store_cache_flush()
480 OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov); in evp_method_store_remove_all_provided()
488 static int evp_set_parsed_default_properties(OSSL_LIB_CTX *libctx, in evp_set_parsed_default_properties()
537 int evp_set_default_properties_int(OSSL_LIB_CTX *libctx, const char *propq, in evp_set_default_properties_int()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/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 …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/property/
H A Dproperty_local.h41 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,
/netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/
H A Drand.h68 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,
H A Dprovider.h21 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,
H A Dpkcs12.h.in134 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 …]
/netbsd-src/crypto/external/bsd/openssl/dist/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()
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()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/ec/curve448/
H A Ded448.h42 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,
H A Deddsa.c23 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 …]
/netbsd-src/crypto/external/bsd/openssl/dist/doc/internal/man3/
H A Dossl_lib_ctx_get_data.pod7 - 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 …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dcontext_internal_test.c30 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()
/netbsd-src/crypto/external/bsd/openssl/dist/providers/common/
H A Dsecuritycheck.c29 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()
202 int ossl_dh_check_key(OSSL_LIB_CTX *ctx, const DH *dh) in ossl_dh_check_key()
235 int ossl_digest_get_approved_nid_with_sha1(OSSL_LIB_CTX *ctx, const EVP_MD *md, in ossl_digest_get_approved_nid_with_sha1()
249 int ossl_digest_is_allowed(OSSL_LIB_CTX *ctx, const EVP_MD *md) in ossl_digest_is_allowed()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/
H A Dprovider_child.c36 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()
166 OSSL_LIB_CTX *ctx = cbdata; in provider_remove_child_cb()
194 OSSL_LIB_CTX *ctx = cbdata; in provider_global_props_cb()
199 int ossl_provider_init_as_child(OSSL_LIB_CTX *ctx, in ossl_provider_init_as_child()
273 void ossl_provider_deinit_child(OSSL_LIB_CTX *ctx) in ossl_provider_deinit_child()

12345678910>>...19