Home
last modified time | relevance | path

Searched refs:provctx (Results 1 – 25 of 166) sorted by relevance

1234567

/openssl/include/openssl/
H A Dcore_dispatch.h266 (void *provctx))
334 (void *provctx))
336 (void *dctx, void *provctx))
389 (void *provctx))
632 (void *provctx))
639 (void *provctx))
929 (void *provctx))
933 (void *provctx))
960 (void *provctx))
964 (void *provctx))
[all …]
/openssl/providers/
H A Dbaseprov.c45 static const OSSL_PARAM *base_gettable_params(void *provctx) in base_gettable_params() argument
50 static int base_get_params(void *provctx, OSSL_PARAM params[]) in base_get_params() argument
119 static void base_teardown(void *provctx) in base_teardown() argument
121 BIO_meth_free(ossl_prov_ctx_get0_core_bio_method(provctx)); in base_teardown()
122 ossl_prov_ctx_free(provctx); in base_teardown()
139 void **provctx) in ossl_base_provider_init() argument
174 if ((*provctx = ossl_prov_ctx_new()) == NULL in ossl_base_provider_init()
176 ossl_prov_ctx_free(*provctx); in ossl_base_provider_init()
177 *provctx = NULL; in ossl_base_provider_init()
180 ossl_prov_ctx_set0_libctx(*provctx, in ossl_base_provider_init()
[all …]
H A Dlegacyprov.c62 static const OSSL_PARAM *legacy_gettable_params(void *provctx) in legacy_gettable_params() argument
67 static int legacy_get_params(void *provctx, OSSL_PARAM params[]) in legacy_get_params() argument
184 static void legacy_teardown(void *provctx) in legacy_teardown() argument
186 OSSL_LIB_CTX_free(PROV_LIBCTX_OF(provctx)); in legacy_teardown()
187 ossl_prov_ctx_free(provctx); in legacy_teardown()
202 void **provctx) in OSSL_provider_init() argument
241 if ((*provctx = ossl_prov_ctx_new()) == NULL in OSSL_provider_init()
244 legacy_teardown(*provctx); in OSSL_provider_init()
245 *provctx = NULL; in OSSL_provider_init()
248 ossl_prov_ctx_set0_libctx(*provctx, libctx); in OSSL_provider_init()
[all …]
/openssl/providers/implementations/exchange/
H A Dkdf_exch.c40 void *provctx; member
45 static void *kdf_newctx(const char *kdfname, void *provctx) in kdf_newctx() argument
57 kdfctx->provctx = provctx; in kdf_newctx()
59 kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname, NULL); in kdf_newctx()
75 static void *kdf_##funcname##_newctx(void *provctx) \
77 return kdf_newctx(kdfname, provctx); \
184 void *provctx, in kdf_settable_ctx_params() argument
187 EVP_KDF *kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname, in kdf_settable_ctx_params()
204 return kdf_settable_ctx_params(vpkdfctx, provctx, kdfname); \
212 void *provctx, in kdf_gettable_ctx_params() argument
[all …]
/openssl/providers/implementations/kdfs/
H A Dpvkkdf.c31 void *provctx; member
41 static void *kdf_pvk_new(void *provctx) in kdf_pvk_new() argument
51 ctx->provctx = provctx; in kdf_pvk_new()
79 dest = kdf_pvk_new(src->provctx); in kdf_pvk_dup()
97 void *provctx = ctx->provctx; in kdf_pvk_reset() local
100 ctx->provctx = provctx; in kdf_pvk_reset()
107 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_pvk_init() local
111 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx)) in kdf_pvk_init()
183 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_pvk_set_ctx_params() local
188 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx)) in kdf_pvk_set_ctx_params()
H A Dpbkdf2.c51 void *provctx; member
69 static void *kdf_pbkdf2_new_no_init(void *provctx) in kdf_pbkdf2_new_no_init() argument
79 ctx->provctx = provctx; in kdf_pbkdf2_new_no_init()
84 static void *kdf_pbkdf2_new(void *provctx) in kdf_pbkdf2_new() argument
86 KDF_PBKDF2 *ctx = kdf_pbkdf2_new_no_init(provctx); in kdf_pbkdf2_new()
118 void *provctx = ctx->provctx; in kdf_pbkdf2_reset() local
121 ctx->provctx = provctx; in kdf_pbkdf2_reset()
131 dest = kdf_pbkdf2_new_no_init(src->provctx); in kdf_pbkdf2_dup()
153 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_pbkdf2_init() local
210 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in fips_lower_bound_check_passed()
[all …]
H A Dpkcs12kdf.c37 void *provctx; member
137 static void *kdf_pkcs12_new(void *provctx) in kdf_pkcs12_new() argument
147 ctx->provctx = provctx; in kdf_pkcs12_new()
172 void *provctx = ctx->provctx; in kdf_pkcs12_reset() local
175 ctx->provctx = provctx; in kdf_pkcs12_reset()
183 dest = kdf_pkcs12_new(src->provctx); in kdf_pkcs12_dup()
246 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_pkcs12_set_ctx_params() local
251 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx)) in kdf_pkcs12_set_ctx_params()
273 ossl_unused void *ctx, ossl_unused void *provctx) in kdf_pkcs12_settable_ctx_params() argument
297 ossl_unused void *ctx, ossl_unused void *provctx) in kdf_pkcs12_gettable_ctx_params() argument
H A Dsshkdf.c44 void *provctx; member
56 static void *kdf_sshkdf_new(void *provctx) in kdf_sshkdf_new() argument
64 ctx->provctx = provctx; in kdf_sshkdf_new()
83 void *provctx = ctx->provctx; in kdf_sshkdf_reset() local
90 ctx->provctx = provctx; in kdf_sshkdf_reset()
98 dest = kdf_sshkdf_new(src->provctx); in kdf_sshkdf_dup()
130 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in fips_digest_check_passed()
157 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in fips_key_check_passed()
213 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_sshkdf_set_ctx_params() local
228 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx)) in kdf_sshkdf_set_ctx_params()
H A Dpbkdf1.c37 void *provctx; member
97 static void *kdf_pbkdf1_new(void *provctx) in kdf_pbkdf1_new() argument
107 ctx->provctx = provctx; in kdf_pbkdf1_new()
132 void *provctx = ctx->provctx; in kdf_pbkdf1_reset() local
135 ctx->provctx = provctx; in kdf_pbkdf1_reset()
143 dest = kdf_pbkdf1_new(src->provctx); in kdf_pbkdf1_dup()
205 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_pbkdf1_set_ctx_params()
H A Dkrb5kdf.c52 void *provctx; member
60 static void *krb5kdf_new(void *provctx) in krb5kdf_new() argument
69 ctx->provctx = provctx; in krb5kdf_new()
86 void *provctx = ctx->provctx; in krb5kdf_reset() local
92 ctx->provctx = provctx; in krb5kdf_reset()
109 dest = krb5kdf_new(src->provctx); in krb5kdf_dup()
158 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in krb5kdf_set_ctx_params() local
163 if (!ossl_prov_cipher_load_from_params(&ctx->cipher, params, provctx)) in krb5kdf_set_ctx_params()
179 ossl_unused void *provctx) in krb5kdf_settable_ctx_params() argument
210 ossl_unused void *provctx) in krb5kdf_gettable_ctx_params() argument
H A Dtls1_prf.c96 void *provctx; member
113 static void *kdf_tls1_prf_new(void *provctx) in kdf_tls1_prf_new() argument
121 ctx->provctx = provctx; in kdf_tls1_prf_new()
140 void *provctx = ctx->provctx; in kdf_tls1_prf_reset() local
147 ctx->provctx = provctx; in kdf_tls1_prf_reset()
155 dest = kdf_tls1_prf_new(src->provctx); in kdf_tls1_prf_dup()
181 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in fips_ems_check_passed()
207 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in fips_digest_check_passed()
232 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in fips_key_check_passed()
287 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_tls1_prf_set_ctx_params()
[all …]
H A Dhmacdrbg_kdf.c34 void *provctx; member
40 static void *hmac_drbg_kdf_new(void *provctx) in hmac_drbg_kdf_new() argument
52 ctx->provctx = provctx; in hmac_drbg_kdf_new()
60 void *provctx = ctx->provctx; in hmac_drbg_kdf_reset() local
67 ctx->provctx = provctx; in hmac_drbg_kdf_reset()
99 dst = hmac_drbg_kdf_new(src->provctx); in hmac_drbg_kdf_dup()
181 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(hmac->provctx); in hmac_drbg_kdf_set_ctx_params()
/openssl/providers/implementations/storemgmt/
H A Dfile_store_any2obj.c48 static void *any2obj_newctx(void *provctx) in any2obj_newctx() argument
50 return provctx; in any2obj_newctx()
57 static int any2obj_decode_final(void *provctx, int objtype, BUF_MEM *mem, in any2obj_decode_final() argument
83 static int der2obj_decode(void *provctx, OSSL_CORE_BIO *cin, int selection, in der2obj_decode() argument
87 BIO *in = ossl_bio_new_from_core_bio(provctx, cin); in der2obj_decode()
104 return any2obj_decode_final(provctx, OSSL_OBJECT_UNKNOWN, mem, in der2obj_decode()
113 BIO *in = ossl_bio_new_from_core_bio(provctx, cin); in msblob2obj_decode()
168 return any2obj_decode_final(provctx, OSSL_OBJECT_PKEY, mem, in msblob2obj_decode()
178 static int pvk2obj_decode(void *provctx, OSSL_CORE_BIO *cin, int selection, in pvk2obj_decode() argument
182 BIO *in = ossl_bio_new_from_core_bio(provctx, cin); in pvk2obj_decode()
[all …]
H A Dfile_store.c66 void *provctx; member
124 void *provctx) in new_file_ctx() argument
131 ctx->provctx = provctx; in new_file_ctx()
152 void *provctx) in file_open_stream() argument
156 if ((ctx = new_file_ctx(IS_FILE, uri, provctx)) == NULL) { in file_open_stream()
173 if ((ctx = new_file_ctx(IS_DIR, uri, provctx)) == NULL) { in file_open_dir()
194 static void *file_open(void *provctx, const char *uri) in file_open() argument
280 ctx = file_open_dir(path, uri, provctx); in file_open()
288 void *file_attach(void *provctx, OSSL_CORE_BIO *cin) in file_attach() argument
291 BIO *new_bio = ossl_bio_new_from_core_bio(provctx, cin); in file_attach()
[all …]
/openssl/providers/implementations/encode_decode/
H A Ddecode_pvk2key.c60 PROV_CTX *provctx; member
68 pvk2key_newctx(void *provctx, const struct keytype_desc_st *desc) in pvk2key_newctx() argument
73 ctx->provctx = provctx; in pvk2key_newctx()
86 static const OSSL_PARAM *pvk2key_settable_ctx_params(ossl_unused void *provctx) in pvk2key_settable_ctx_params() argument
108 static int pvk2key_does_selection(void *provctx, int selection) in pvk2key_does_selection() argument
124 BIO *in = ossl_bio_new_from_core_bio(ctx->provctx, cin); in pvk2key_decode()
144 PROV_LIBCTX_OF(ctx->provctx), in pvk2key_decode()
244 ossl_rsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx)); in rsa_adjust()
261 static void *pvk2##keytype##_newctx(void *provctx) \
263 return pvk2key_newctx(provctx, &pvk2##keytype##_desc); \
H A Ddecode_spki2typespki.c34 PROV_CTX *provctx; member
38 static void *spki2typespki_newctx(void *provctx) in spki2typespki_newctx() argument
43 ctx->provctx = provctx; in spki2typespki_newctx()
54 static const OSSL_PARAM *spki2typespki_settable_ctx_params(ossl_unused void *provctx) in spki2typespki_settable_ctx_params() argument
91 if (!ossl_read_der(ctx->provctx, cin, &der, &len)) in spki2typespki_decode()
95 PROV_LIBCTX_OF(ctx->provctx), in spki2typespki_decode()
H A Ddecode_msblob2key.c57 PROV_CTX *provctx; member
64 msblob2key_newctx(void *provctx, const struct keytype_desc_st *desc) in msblob2key_newctx() argument
69 ctx->provctx = provctx; in msblob2key_newctx()
82 static int msblob2key_does_selection(void *provctx, int selection) in msblob2key_does_selection() argument
99 BIO *in = ossl_bio_new_from_core_bio(ctx->provctx, cin); in msblob2key_decode()
250 ossl_rsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx)); in rsa_adjust()
267 static void *msblob2##keytype##_newctx(void *provctx) \
269 return msblob2key_newctx(provctx, &mstype##2##keytype##_desc); \
H A Dencode_key2ms.c31 PROV_CTX *provctx; member
41 BIO *out = ossl_bio_new_from_core_bio(ctx->provctx, cout); in write_msblob()
57 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in write_pvk()
59 out = ossl_bio_new_from_core_bio(ctx->provctx, cout); in write_pvk()
71 static struct key2ms_ctx_st *key2ms_newctx(void *provctx) in key2ms_newctx() argument
76 ctx->provctx = provctx; in key2ms_newctx()
91 static const OSSL_PARAM *key2pvk_settable_ctx_params(ossl_unused void *provctx) in key2pvk_settable_ctx_params() argument
H A Ddecode_epki2pki.c36 PROV_CTX *provctx; member
40 static void *epki2pki_newctx(void *provctx) in epki2pki_newctx() argument
45 ctx->provctx = provctx; in epki2pki_newctx()
56 static const OSSL_PARAM *epki2pki_settable_ctx_params(ossl_unused void *provctx) in epki2pki_settable_ctx_params() argument
95 BIO *in = ossl_bio_new_from_core_bio(ctx->provctx, cin); in epki2pki_decode()
132 PROV_LIBCTX_OF(ctx->provctx), in epki2pki_decode()
H A Ddecode_pem2der.c31 static int read_pem(PROV_CTX *provctx, OSSL_CORE_BIO *cin, in read_pem() argument
35 BIO *in = ossl_bio_new_from_core_bio(provctx, cin); in read_pem()
54 PROV_CTX *provctx; member
57 static void *pem2der_newctx(void *provctx) in pem2der_newctx() argument
62 ctx->provctx = provctx; in pem2der_newctx()
144 ok = read_pem(ctx->provctx, cin, &pem_name, &pem_header, in pem2der_decode()
/openssl/providers/implementations/macs/
H A Dgmac_prov.c42 void *provctx; member
58 static void *gmac_new(void *provctx) in gmac_new() argument
70 macctx->provctx = provctx; in gmac_new()
83 dst = gmac_new(src->provctx); in gmac_dup()
172 static const OSSL_PARAM *gmac_gettable_params(void *provctx) in gmac_gettable_params() argument
195 ossl_unused void *provctx) in gmac_settable_ctx_params() argument
207 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(macctx->provctx); in gmac_set_ctx_params() local
216 if (!ossl_prov_cipher_load_from_params(&macctx->cipher, params, provctx)) in gmac_set_ctx_params()
H A Dkmac_prov.c119 void *provctx; member
172 static struct kmac_data_st *kmac_new(void *provctx) in kmac_new() argument
184 kctx->provctx = provctx; in kmac_new()
189 static void *kmac_fetch_new(void *provctx, const OSSL_PARAM *params) in kmac_fetch_new() argument
191 struct kmac_data_st *kctx = kmac_new(provctx); in kmac_fetch_new()
197 PROV_LIBCTX_OF(provctx))) { in kmac_fetch_new()
211 static void *kmac128_new(void *provctx) in kmac128_new() argument
218 return kmac_fetch_new(provctx, kmac128_params); in kmac128_new()
221 static void *kmac256_new(void *provctx) in kmac256_new() argument
228 return kmac_fetch_new(provctx, kmac256_params); in kmac256_new()
[all …]
H A Dcmac_prov.c50 void *provctx; member
56 static void *cmac_new(void *provctx) in cmac_new() argument
68 macctx->provctx = provctx; in cmac_new()
94 dst = cmac_new(src->provctx); in cmac_dup()
133 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(macctx->provctx); in tdes_check_param()
209 ossl_unused void *provctx) in cmac_gettable_ctx_params() argument
239 ossl_unused void *provctx) in cmac_settable_ctx_params() argument
250 OSSL_LIB_CTX *ctx = PROV_LIBCTX_OF(macctx->provctx); in cmac_set_ctx_params()
/openssl/crypto/evp/
H A Dkeymgmt_meth.c365 void *provctx = ossl_provider_ctx(EVP_KEYMGMT_get0_provider(keymgmt)); in evp_keymgmt_newdata() local
374 return keymgmt->new(provctx); in evp_keymgmt_newdata()
386 void *provctx = ossl_provider_ctx(EVP_KEYMGMT_get0_provider(keymgmt)); in evp_keymgmt_gen_init() local
390 return keymgmt->gen_init(provctx, selection, params); in evp_keymgmt_gen_init()
417 void *provctx = ossl_provider_ctx(EVP_KEYMGMT_get0_provider(keymgmt)); in EVP_KEYMGMT_gen_settable_params() local
421 return keymgmt->gen_settable_params(NULL, provctx); in EVP_KEYMGMT_gen_settable_params()
438 return keymgmt->gen_gettable_params(NULL, provctx); in EVP_KEYMGMT_gen_gettable_params()
482 return keymgmt->gettable_params(provctx); in EVP_KEYMGMT_gettable_params()
499 return keymgmt->settable_params(provctx); in EVP_KEYMGMT_settable_params()
541 return keymgmt->import_types_ex(provctx, selection); in evp_keymgmt_import_types()
[all …]
/openssl/test/
H A Dfilterprov.c56 static const OSSL_PARAM *filter_gettable_params(void *provctx) in filter_gettable_params() argument
63 static int filter_get_params(void *provctx, OSSL_PARAM params[]) in filter_get_params() argument
70 static int filter_get_capabilities(void *provctx, const char *capability, in filter_get_capabilities() argument
78 static const OSSL_ALGORITHM *filter_query(void *provctx, in filter_query() argument
97 static void filter_unquery(void *provctx, int operation_id, in filter_unquery() argument
114 static void filter_teardown(void *provctx) in filter_teardown() argument
137 void **provctx) in filter_provider_init() argument
148 *provctx = OSSL_PROVIDER_get0_provider_ctx(ourglobals.deflt); in filter_provider_init()

Completed in 48 milliseconds

1234567