Home
last modified time | relevance | path

Searched refs:libctx (Results 1 – 25 of 521) sorted by relevance

12345678910>>...21

/freebsd/crypto/openssl/test/
H A Dprovider_test.c36 static int test_provider(OSSL_LIB_CTX **libctx, const char *name, in test_provider() argument
57 EVP_set_default_properties(*libctx, "fips=yes"); in test_provider()
62 if (!TEST_ptr(base = OSSL_PROVIDER_load(*libctx, "base"))) in test_provider()
64 if (!TEST_ptr(prov = OSSL_PROVIDER_load(*libctx, name))) in test_provider()
71 EVP_set_default_properties(*libctx, ""); in test_provider()
84 EVP_set_default_properties(*libctx, "fips=yes"); in test_provider()
88 EVP_set_default_properties(*libctx, ""); in test_provider()
116 legacy = OSSL_PROVIDER_load(*libctx, "legacy"); in test_provider()
117 deflt = OSSL_PROVIDER_load(*libctx, "default"); in test_provider()
119 || !TEST_true(OSSL_PROVIDER_available(*libctx, "default"))) in test_provider()
[all …]
H A Dprovider_pkey_test.c20 static OSSL_LIB_CTX *libctx = NULL; variable
58 if (!TEST_ptr(fake_rsa = fake_rsa_start(libctx))) in test_pkey_sig()
61 if (!TEST_ptr(deflt = OSSL_PROVIDER_load(libctx, "default"))) in test_pkey_sig()
65 if (!TEST_true(fetch_sig(libctx, "RSA", "provider=fake-rsa", fake_rsa)) in test_pkey_sig()
66 || !TEST_true(fetch_sig(libctx, "RSA", "?provider=fake-rsa", fake_rsa))) in test_pkey_sig()
70 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "RSA", in test_pkey_sig()
89 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, in test_pkey_sig()
128 if (!TEST_ptr(deflt = OSSL_PROVIDER_load(libctx, "default"))) in test_alternative_keygen_init()
132 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "RSA", NULL))) in test_alternative_keygen_init()
151 if (!TEST_ptr(fake_rsa = fake_rsa_start(libctx))) in test_alternative_keygen_init()
[all …]
H A Dprovfetchtest.c206 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) <= 0) in dummy_provider_init()
232 OSSL_LIB_CTX *libctx = OSSL_LIB_CTX_new(); in fetch_test() local
242 if (!TEST_ptr(libctx)) in fetch_test()
245 if (!TEST_true(OSSL_PROVIDER_add_builtin(libctx, "dummy-prov", in fetch_test()
247 || !TEST_ptr(nullprov = OSSL_PROVIDER_load(libctx, "default")) in fetch_test()
248 || !TEST_ptr(dummyprov = OSSL_PROVIDER_load(libctx, "dummy-prov"))) in fetch_test()
253 decoder = OSSL_DECODER_fetch(libctx, "DUMMY", in fetch_test()
259 encoder = OSSL_ENCODER_fetch(libctx, "DUMMY", in fetch_test()
[all …]
H A Duser_property_test.c88 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()
H A Dp_test.c41 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()
150 || !OSSL_PROVIDER_available(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()
194 stopsuccess = EVP_set_default_properties(ctx->libctx, NULL); in p_get_params()
277 ctx->libctx = OSSL_LIB_CTX_new_child(handle, oin); in OSSL_provider_init()
[all …]
H A Dprovider_status_test.c31 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()
175 OSSL_SELF_TEST_set_callback(libctx, self_test_on_demand_fail, &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()
[all …]
/freebsd/crypto/openssl/crypto/evp/
H A Devp_fetch.c46 OSSL_LIB_CTX *libctx; member
70 methdata->tmp_store = ossl_method_store_new(methdata->libctx); in get_tmp_evp_method_store()
80 static OSSL_METHOD_STORE *get_evp_method_store(OSSL_LIB_CTX *libctx) in get_evp_method_store() argument
82 return ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_EVP_METHOD_STORE_INDEX, in get_evp_method_store()
91 && (store = get_evp_method_store(methdata->libctx)) == NULL) in reserve_evp_method_store()
102 && (store = get_evp_method_store(methdata->libctx)) == NULL) in unreserve_evp_method_store()
154 OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx); in get_evp_method_from_store()
169 && (store = get_evp_method_store(methdata->libctx)) == NULL) in get_evp_method_from_store()
201 if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL in put_evp_method_in_store()
207 && (store = get_evp_method_store(methdata->libctx)) == NULL) in put_evp_method_in_store()
[all …]
/freebsd/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() argument
22 if (libctx != NULL) { in test_get_libctx()
23 if ((new_libctx = *libctx = OSSL_LIB_CTX_new()) == NULL) { in test_get_libctx()
53 int test_arg_libctx(OSSL_LIB_CTX **libctx, OSSL_PROVIDER **default_null_prov, in test_arg_libctx() argument
64 return test_get_libctx(libctx, default_null_prov, in test_arg_libctx()
77 static int fips_provider_version(OSSL_LIB_CTX *libctx, FIPS_VERSION *vers) in fips_provider_version() argument
83 if (!OSSL_PROVIDER_available(libctx, "fips")) in fips_provider_version()
86 if ((fips_prov = OSSL_PROVIDER_load(libctx, "fips")) == NULL) 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() argument
104 if ((res = fips_provider_version(libctx, &prov)) <= 0) in fips_provider_version_eq()
[all …]
/freebsd/crypto/openssl/crypto/store/
H A Dstore_meth.c92 OSSL_LIB_CTX *libctx; member
113 methdata->tmp_store = ossl_method_store_new(methdata->libctx); in get_tmp_loader_store()
124 static OSSL_METHOD_STORE *get_loader_store(OSSL_LIB_CTX *libctx) in get_loader_store() argument
126 return ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_STORE_LOADER_STORE_INDEX, in get_loader_store()
135 && (store = get_loader_store(methdata->libctx)) == NULL) in reserve_loader_store()
146 && (store = get_loader_store(methdata->libctx)) == NULL) in unreserve_loader_store()
161 OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx); in get_loader_from_store()
167 && (store = get_loader_store(methdata->libctx)) == NULL) in get_loader_from_store()
184 if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL in put_loader_in_store()
188 if (store == NULL && (store = get_loader_store(methdata->libctx)) == NULL) in put_loader_in_store()
[all …]
/freebsd/crypto/openssl/crypto/encode_decode/
H A Ddecoder_meth.c89 OSSL_LIB_CTX *libctx; member
110 methdata->tmp_store = ossl_method_store_new(methdata->libctx); in get_tmp_decoder_store()
121 static OSSL_METHOD_STORE *get_decoder_store(OSSL_LIB_CTX *libctx) in get_decoder_store() argument
123 return ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_DECODER_STORE_INDEX, in get_decoder_store()
132 && (store = get_decoder_store(methdata->libctx)) == NULL) in reserve_decoder_store()
143 && (store = get_decoder_store(methdata->libctx)) == NULL) in unreserve_decoder_store()
163 OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx); in get_decoder_from_store()
177 && (store = get_decoder_store(methdata->libctx)) == NULL) in get_decoder_from_store()
207 if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL in put_decoder_in_store()
211 if (store == NULL && (store = get_decoder_store(methdata->libctx)) == NULL) in put_decoder_in_store()
[all …]
H A Dencoder_meth.c89 OSSL_LIB_CTX *libctx; member
110 methdata->tmp_store = ossl_method_store_new(methdata->libctx); in get_tmp_encoder_store()
121 static OSSL_METHOD_STORE *get_encoder_store(OSSL_LIB_CTX *libctx) in get_encoder_store() argument
123 return ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_ENCODER_STORE_INDEX, in get_encoder_store()
132 && (store = get_encoder_store(methdata->libctx)) == NULL) in reserve_encoder_store()
143 && (store = get_encoder_store(methdata->libctx)) == NULL) in unreserve_encoder_store()
163 OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx); in get_encoder_from_store()
177 && (store = get_encoder_store(methdata->libctx)) == NULL) in get_encoder_from_store()
207 if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL in put_encoder_in_store()
211 if (store == NULL && (store = get_encoder_store(methdata->libctx)) == NULL) in put_encoder_in_store()
[all …]
/freebsd/crypto/openssl/test/helpers/
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() argument
21 EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_from_name(libctx, type, NULL); 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() argument
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()
[all …]
/freebsd/crypto/openssl/providers/fips/
H A Dself_test_kats.c21 OSSL_LIB_CTX *libctx) in self_test_digest() argument
27 EVP_MD *md = EVP_MD_fetch(libctx, t->algorithm, NULL); in self_test_digest()
86 OSSL_LIB_CTX *libctx) in self_test_cipher() argument
99 cipher = EVP_CIPHER_fetch(libctx, t->base.algorithm, NULL); in self_test_cipher()
196 OSSL_LIB_CTX *libctx) in self_test_kdf() argument
212 kdf = EVP_KDF_fetch(libctx, t->algorithm, ""); in self_test_kdf()
220 bnctx = BN_CTX_new_ex(libctx); in self_test_kdf()
251 OSSL_LIB_CTX *libctx) in self_test_drbg() argument
265 rand = EVP_RAND_fetch(libctx, "TEST-RAND", NULL); in self_test_drbg()
279 rand = EVP_RAND_fetch(libctx, t->algorithm, NULL); in self_test_drbg()
[all …]
/freebsd/crypto/openssl/crypto/ffc/
H A Dffc_params_validate.c52 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()
95 int ossl_ffc_params_simple_validate(OSSL_LIB_CTX *libctx, const FFC_PARAMS *params, in ossl_ffc_params_simple_validate() argument
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()
[all …]
/freebsd/crypto/openssl/demos/signature/
H A DEVP_Signature_demo.c44 static EVP_PKEY *get_key(OSSL_LIB_CTX *libctx, const char *propq, int public) in get_key() argument
62 selection, libctx, propq); in get_key()
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()
150 static int demo_verify(OSSL_LIB_CTX *libctx, const char *sig_name, in demo_verify() argument
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()
[all …]
H A Drsa_pss_direct.c38 static int sign(OSSL_LIB_CTX *libctx, unsigned char **sig, size_t *sig_len) in sign() argument
51 sizeof(rsa_priv_key), libctx, propq); in sign()
58 md = EVP_MD_fetch(libctx, "SHA256", propq); in sign()
65 ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq); in sign()
124 static int verify(OSSL_LIB_CTX *libctx, const unsigned char *sig, size_t sig_len) in verify() argument
141 md = EVP_MD_fetch(libctx, "SHA256", propq); in verify()
148 ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq); in verify()
189 OSSL_LIB_CTX *libctx = NULL; in main() local
193 if (sign(libctx, &sig, &sig_len) == 0) in main()
196 if (verify(libctx, sig, sig_len) == 0) in main()
[all …]
H A Drsa_pss_hash.c33 static int sign(OSSL_LIB_CTX *libctx, unsigned char **sig, size_t *sig_len) in sign() argument
46 sizeof(rsa_priv_key), libctx, propq); in sign()
64 if (EVP_DigestSignInit_ex(mctx, NULL, "SHA256", libctx, propq, in sign()
114 static int verify(OSSL_LIB_CTX *libctx, const unsigned char *sig, size_t sig_len) in verify() argument
142 if (EVP_DigestVerifyInit_ex(mctx, NULL, "SHA256", libctx, propq, in verify()
174 OSSL_LIB_CTX *libctx = NULL; in main() local
178 if (sign(libctx, &sig, &sig_len) == 0) in main()
181 if (verify(libctx, sig, sig_len) == 0) in main()
187 OSSL_LIB_CTX_free(libctx); in main()
/freebsd/crypto/openssl/crypto/bio/
H A Dbss_core.c40 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 *BIO_new_from_core_bio(OSSL_LIB_CTX *libctx, OSSL_CORE_BIO *corebio) in BIO_new_from_core_bio() argument
136 BIO_CORE_GLOBALS *bcgbl = get_globals(libctx); in BIO_new_from_core_bio()
[all …]
/freebsd/crypto/openssl/demos/keyexch/
H A Dx25519.c64 OSSL_LIB_CTX *libctx, in keyexch_x25519_before() argument
74 EVP_PKEY_new_raw_private_key_ex(libctx, "X25519", propq, in keyexch_x25519_before()
78 local_peer->privk = EVP_PKEY_Q_keygen(libctx, propq, "X25519"); in keyexch_x25519_before()
118 OSSL_LIB_CTX *libctx, in keyexch_x25519_after() argument
131 EVP_PKEY_new_raw_public_key_ex(libctx, "X25519", propq, in keyexch_x25519_after()
139 ctx = EVP_PKEY_CTX_new_from_pkey(libctx, local_peer->privk, propq); in keyexch_x25519_after()
206 OSSL_LIB_CTX *libctx = NULL; in keyexch_x25519() local
214 if (keyexch_x25519_before(libctx, use_kat ? peer1_privk_data : NULL, in keyexch_x25519()
218 if (keyexch_x25519_before(libctx, use_kat ? peer2_privk_data : NULL, in keyexch_x25519()
227 if (keyexch_x25519_after(libctx, use_kat, &peer1, peer2.pubk_data) == 0) in keyexch_x25519()
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dx509_d2.c15 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()
H A Dx_req.c69 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()
/freebsd/crypto/openssl/crypto/asn1/
H A Dd2i_pr.c28 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()
152 ret = ossl_d2i_PrivateKey_legacy(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()
[all …]
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_siv_hw.c25 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()
/freebsd/crypto/openssl/demos/pkey/
H A DEVP_PKEY_DSA_paramvalidate.c59 OSSL_LIB_CTX *libctx, const char *propq) in create_merged_key() argument
78 ctx = EVP_PKEY_CTX_new_from_name(libctx, "DSA", propq); in create_merged_key()
89 out = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq); in create_merged_key()
106 OSSL_LIB_CTX *libctx = NULL; in main() local
130 dsaparamskey = PEM_read_bio_Parameters_ex(in, NULL, libctx, propq); in main()
136 ctx = EVP_PKEY_CTX_new_from_pkey(libctx, dsaparamskey, propq); in main()
166 ctx1 = create_merged_key(dsaparamskey, params, libctx, propq); in main()
183 ctx2 = create_merged_key(dsaparamskey, params, libctx, propq); in main()
191 if (!dsa_print_key(EVP_PKEY_CTX_get0_pkey(ctx2), 0, libctx, propq)) in main()
/freebsd/crypto/openssl/crypto/pem/
H A Dpem_pkey.c35 OSSL_LIB_CTX *libctx, in pem_read_bio_key_decoder() argument
48 selection, libctx, propq); in pem_read_bio_key_decoder()
101 OSSL_LIB_CTX *libctx, in pem_read_bio_key_legacy() argument
140 ret = evp_pkcs82pkey_legacy(p8inf, libctx, propq); in pem_read_bio_key_legacy()
168 ret = evp_pkcs82pkey_legacy(p8inf, libctx, propq); in pem_read_bio_key_legacy()
179 ret = ossl_d2i_PrivateKey_legacy(ameth->pkey_id, x, &p, len, libctx, in pem_read_bio_key_legacy()
216 OSSL_LIB_CTX *libctx, in pem_read_bio_key() argument
242 libctx, propq, selection); in pem_read_bio_key()
247 libctx, propq, in pem_read_bio_key()
264 OSSL_LIB_CTX *libctx, const char *propq) in PEM_read_bio_PUBKEY_ex() argument
[all …]

12345678910>>...21