Home
last modified time | relevance | path

Searched refs:fns (Results 1 – 25 of 38) sorted by relevance

12

/openssl/providers/implementations/encode_decode/
H A Dendecoder_common.c17 ossl_prov_get_keymgmt_new(const OSSL_DISPATCH *fns) in ossl_prov_get_keymgmt_new() argument
20 for (; fns->function_id != 0; fns++) in ossl_prov_get_keymgmt_new()
22 return OSSL_FUNC_keymgmt_new(fns); in ossl_prov_get_keymgmt_new()
28 ossl_prov_get_keymgmt_free(const OSSL_DISPATCH *fns) in ossl_prov_get_keymgmt_free() argument
31 for (; fns->function_id != 0; fns++) in ossl_prov_get_keymgmt_free()
33 return OSSL_FUNC_keymgmt_free(fns); in ossl_prov_get_keymgmt_free()
42 for (; fns->function_id != 0; fns++) in ossl_prov_get_keymgmt_import()
44 return OSSL_FUNC_keymgmt_import(fns); in ossl_prov_get_keymgmt_import()
53 for (; fns->function_id != 0; fns++) in ossl_prov_get_keymgmt_export()
55 return OSSL_FUNC_keymgmt_export(fns); in ossl_prov_get_keymgmt_export()
[all …]
H A Dendecoder_local.h15 OSSL_FUNC_keymgmt_new_fn *ossl_prov_get_keymgmt_new(const OSSL_DISPATCH *fns);
16 OSSL_FUNC_keymgmt_free_fn *ossl_prov_get_keymgmt_free(const OSSL_DISPATCH *fns);
17 OSSL_FUNC_keymgmt_import_fn *ossl_prov_get_keymgmt_import(const OSSL_DISPATCH *fns);
18 OSSL_FUNC_keymgmt_export_fn *ossl_prov_get_keymgmt_export(const OSSL_DISPATCH *fns);
24 void *ossl_prov_import_key(const OSSL_DISPATCH *fns, void *provctx,
26 void ossl_prov_free_key(const OSSL_DISPATCH *fns, void *key);
/openssl/crypto/evp/
H A Dmac_meth.c61 const OSSL_DISPATCH *fns = algodef->implementation; in evp_mac_from_algorithm() local
76 for (; fns->function_id != 0; fns++) { in evp_mac_from_algorithm()
77 switch (fns->function_id) { in evp_mac_from_algorithm()
81 mac->newctx = OSSL_FUNC_mac_newctx(fns); in evp_mac_from_algorithm()
87 mac->dupctx = OSSL_FUNC_mac_dupctx(fns); in evp_mac_from_algorithm()
92 mac->freectx = OSSL_FUNC_mac_freectx(fns); in evp_mac_from_algorithm()
98 mac->init = OSSL_FUNC_mac_init(fns); in evp_mac_from_algorithm()
104 mac->update = OSSL_FUNC_mac_update(fns); in evp_mac_from_algorithm()
110 mac->final = OSSL_FUNC_mac_final(fns); in evp_mac_from_algorithm()
117 OSSL_FUNC_mac_gettable_params(fns); in evp_mac_from_algorithm()
[all …]
H A Dkeymgmt_meth.c57 const OSSL_DISPATCH *fns = algodef->implementation; in keymgmt_from_algorithm() local
75 for (; fns->function_id != 0; fns++) { in keymgmt_from_algorithm()
76 switch (fns->function_id) { in keymgmt_from_algorithm()
79 keymgmt->new = OSSL_FUNC_keymgmt_new(fns); in keymgmt_from_algorithm()
88 OSSL_FUNC_keymgmt_gen_set_template(fns); in keymgmt_from_algorithm()
94 OSSL_FUNC_keymgmt_gen_set_params(fns); in keymgmt_from_algorithm()
108 OSSL_FUNC_keymgmt_gen_get_params(fns); in keymgmt_from_algorithm()
120 keymgmt->gen = OSSL_FUNC_keymgmt_gen(fns); in keymgmt_from_algorithm()
144 OSSL_FUNC_keymgmt_gettable_params(fns); in keymgmt_from_algorithm()
167 keymgmt->has = OSSL_FUNC_keymgmt_has(fns); in keymgmt_from_algorithm()
[all …]
H A Dkdf_meth.c62 const OSSL_DISPATCH *fns = algodef->implementation; in evp_kdf_from_algorithm() local
77 for (; fns->function_id != 0; fns++) { in evp_kdf_from_algorithm()
78 switch (fns->function_id) { in evp_kdf_from_algorithm()
82 kdf->newctx = OSSL_FUNC_kdf_newctx(fns); in evp_kdf_from_algorithm()
88 kdf->dupctx = OSSL_FUNC_kdf_dupctx(fns); in evp_kdf_from_algorithm()
93 kdf->freectx = OSSL_FUNC_kdf_freectx(fns); in evp_kdf_from_algorithm()
99 kdf->reset = OSSL_FUNC_kdf_reset(fns); in evp_kdf_from_algorithm()
104 kdf->derive = OSSL_FUNC_kdf_derive(fns); in evp_kdf_from_algorithm()
111 OSSL_FUNC_kdf_gettable_params(fns); in evp_kdf_from_algorithm()
117 OSSL_FUNC_kdf_gettable_ctx_params(fns); in evp_kdf_from_algorithm()
[all …]
H A Dsignature.c45 const OSSL_DISPATCH *fns = algodef->implementation; in evp_signature_from_algorithm() local
65 for (; fns->function_id != 0; fns++) { in evp_signature_from_algorithm()
66 switch (fns->function_id) { in evp_signature_from_algorithm()
82 signature->sign = OSSL_FUNC_signature_sign(fns); in evp_signature_from_algorithm()
88 = OSSL_FUNC_signature_sign_message_init(fns); in evp_signature_from_algorithm()
144 = OSSL_FUNC_signature_verify_recover(fns); in evp_signature_from_algorithm()
150 = OSSL_FUNC_signature_digest_sign_init(fns); in evp_signature_from_algorithm()
169 = OSSL_FUNC_signature_digest_sign(fns); in evp_signature_from_algorithm()
194 = OSSL_FUNC_signature_digest_verify(fns); in evp_signature_from_algorithm()
211 = OSSL_FUNC_signature_get_ctx_params(fns); in evp_signature_from_algorithm()
[all …]
H A Devp_rand.c121 const OSSL_DISPATCH *fns = algodef->implementation; in evp_rand_from_algorithm() local
138 rand->dispatch = fns; in evp_rand_from_algorithm()
139 for (; fns->function_id != 0; fns++) { in evp_rand_from_algorithm()
140 switch (fns->function_id) { in evp_rand_from_algorithm()
144 rand->newctx = OSSL_FUNC_rand_newctx(fns); in evp_rand_from_algorithm()
150 rand->freectx = OSSL_FUNC_rand_freectx(fns); in evp_rand_from_algorithm()
174 rand->reseed = OSSL_FUNC_rand_reseed(fns); in evp_rand_from_algorithm()
179 rand->nonce = OSSL_FUNC_rand_nonce(fns); in evp_rand_from_algorithm()
190 rand->lock = OSSL_FUNC_rand_lock(fns); in evp_rand_from_algorithm()
196 rand->unlock = OSSL_FUNC_rand_unlock(fns); in evp_rand_from_algorithm()
[all …]
H A Dkem.c294 const OSSL_DISPATCH *fns = algodef->implementation; in evp_kem_from_algorithm() local
309 for (; fns->function_id != 0; fns++) { in evp_kem_from_algorithm()
310 switch (fns->function_id) { in evp_kem_from_algorithm()
314 kem->newctx = OSSL_FUNC_kem_newctx(fns); in evp_kem_from_algorithm()
332 kem->encapsulate = OSSL_FUNC_kem_encapsulate(fns); in evp_kem_from_algorithm()
356 kem->freectx = OSSL_FUNC_kem_freectx(fns); in evp_kem_from_algorithm()
362 kem->dupctx = OSSL_FUNC_kem_dupctx(fns); in evp_kem_from_algorithm()
368 = OSSL_FUNC_kem_get_ctx_params(fns); in evp_kem_from_algorithm()
375 = OSSL_FUNC_kem_gettable_ctx_params(fns); in evp_kem_from_algorithm()
382 = OSSL_FUNC_kem_set_ctx_params(fns); in evp_kem_from_algorithm()
[all …]
H A Dasymcipher.c341 const OSSL_DISPATCH *fns = algodef->implementation; in evp_asym_cipher_from_algorithm() local
356 for (; fns->function_id != 0; fns++) { in evp_asym_cipher_from_algorithm()
357 switch (fns->function_id) { in evp_asym_cipher_from_algorithm()
361 cipher->newctx = OSSL_FUNC_asym_cipher_newctx(fns); in evp_asym_cipher_from_algorithm()
373 cipher->encrypt = OSSL_FUNC_asym_cipher_encrypt(fns); in evp_asym_cipher_from_algorithm()
385 cipher->decrypt = OSSL_FUNC_asym_cipher_decrypt(fns); in evp_asym_cipher_from_algorithm()
391 cipher->freectx = OSSL_FUNC_asym_cipher_freectx(fns); in evp_asym_cipher_from_algorithm()
397 cipher->dupctx = OSSL_FUNC_asym_cipher_dupctx(fns); in evp_asym_cipher_from_algorithm()
403 = OSSL_FUNC_asym_cipher_get_ctx_params(fns); in evp_asym_cipher_from_algorithm()
410 = OSSL_FUNC_asym_cipher_gettable_ctx_params(fns); in evp_asym_cipher_from_algorithm()
[all …]
H A Dexchange.c42 const OSSL_DISPATCH *fns = algodef->implementation; in evp_keyexch_from_algorithm() local
56 for (; fns->function_id != 0; fns++) { in evp_keyexch_from_algorithm()
57 switch (fns->function_id) { in evp_keyexch_from_algorithm()
61 exchange->newctx = OSSL_FUNC_keyexch_newctx(fns); in evp_keyexch_from_algorithm()
67 exchange->init = OSSL_FUNC_keyexch_init(fns); in evp_keyexch_from_algorithm()
73 exchange->set_peer = OSSL_FUNC_keyexch_set_peer(fns); in evp_keyexch_from_algorithm()
78 exchange->derive = OSSL_FUNC_keyexch_derive(fns); in evp_keyexch_from_algorithm()
84 exchange->freectx = OSSL_FUNC_keyexch_freectx(fns); in evp_keyexch_from_algorithm()
90 exchange->dupctx = OSSL_FUNC_keyexch_dupctx(fns); in evp_keyexch_from_algorithm()
102 = OSSL_FUNC_keyexch_gettable_ctx_params(fns); in evp_keyexch_from_algorithm()
[all …]
H A Ddigest.c1018 const OSSL_DISPATCH *fns = algodef->implementation; in evp_md_from_algorithm() local
1045 for (; fns->function_id != 0; fns++) { in evp_md_from_algorithm()
1046 switch (fns->function_id) { in evp_md_from_algorithm()
1049 md->newctx = OSSL_FUNC_digest_newctx(fns); in evp_md_from_algorithm()
1055 md->dinit = OSSL_FUNC_digest_init(fns); in evp_md_from_algorithm()
1061 md->dupdate = OSSL_FUNC_digest_update(fns); in evp_md_from_algorithm()
1067 md->dfinal = OSSL_FUNC_digest_final(fns); in evp_md_from_algorithm()
1079 md->digest = OSSL_FUNC_digest_digest(fns); in evp_md_from_algorithm()
1084 md->freectx = OSSL_FUNC_digest_freectx(fns); in evp_md_from_algorithm()
1090 md->dupctx = OSSL_FUNC_digest_dupctx(fns); in evp_md_from_algorithm()
[all …]
H A Devp_enc.c1568 const OSSL_DISPATCH *fns = algodef->implementation; in evp_cipher_from_algorithm() local
1594 for (; fns->function_id != 0; fns++) { in evp_cipher_from_algorithm()
1595 switch (fns->function_id) { in evp_cipher_from_algorithm()
1599 cipher->newctx = OSSL_FUNC_cipher_newctx(fns); in evp_cipher_from_algorithm()
1617 cipher->cupdate = OSSL_FUNC_cipher_update(fns); in evp_cipher_from_algorithm()
1623 cipher->cfinal = OSSL_FUNC_cipher_final(fns); in evp_cipher_from_algorithm()
1629 cipher->ccipher = OSSL_FUNC_cipher_cipher(fns); in evp_cipher_from_algorithm()
1634 cipher->freectx = OSSL_FUNC_cipher_freectx(fns); in evp_cipher_from_algorithm()
1640 cipher->dupctx = OSSL_FUNC_cipher_dupctx(fns); in evp_cipher_from_algorithm()
1666 OSSL_FUNC_cipher_gettable_ctx_params(fns); in evp_cipher_from_algorithm()
[all …]
/openssl/providers/common/
H A Dprovider_seeding.c41 int ossl_prov_seeding_from_dispatch(const OSSL_DISPATCH *fns) in ossl_prov_seeding_from_dispatch() argument
43 for (; fns->function_id != 0; fns++) { in ossl_prov_seeding_from_dispatch()
51 switch (fns->function_id) { in ossl_prov_seeding_from_dispatch()
53 set_func(c_get_entropy, OSSL_FUNC_get_entropy(fns)); in ossl_prov_seeding_from_dispatch()
56 set_func(c_get_user_entropy, OSSL_FUNC_get_user_entropy(fns)); in ossl_prov_seeding_from_dispatch()
59 set_func(c_cleanup_entropy, OSSL_FUNC_cleanup_entropy(fns)); in ossl_prov_seeding_from_dispatch()
62 set_func(c_cleanup_user_entropy, OSSL_FUNC_cleanup_user_entropy(fns)); in ossl_prov_seeding_from_dispatch()
65 set_func(c_get_nonce, OSSL_FUNC_get_nonce(fns)); in ossl_prov_seeding_from_dispatch()
68 set_func(c_get_user_nonce, OSSL_FUNC_get_user_nonce(fns)); in ossl_prov_seeding_from_dispatch()
71 set_func(c_cleanup_nonce, OSSL_FUNC_cleanup_nonce(fns)); in ossl_prov_seeding_from_dispatch()
[all …]
H A Dbio_prov.c26 int ossl_prov_bio_from_dispatch(const OSSL_DISPATCH *fns) in ossl_prov_bio_from_dispatch() argument
28 for (; fns->function_id != 0; fns++) { in ossl_prov_bio_from_dispatch()
29 switch (fns->function_id) { in ossl_prov_bio_from_dispatch()
32 c_bio_new_file = OSSL_FUNC_BIO_new_file(fns); in ossl_prov_bio_from_dispatch()
40 c_bio_read_ex = OSSL_FUNC_BIO_read_ex(fns); in ossl_prov_bio_from_dispatch()
48 c_bio_gets = OSSL_FUNC_BIO_gets(fns); in ossl_prov_bio_from_dispatch()
52 c_bio_puts = OSSL_FUNC_BIO_puts(fns); in ossl_prov_bio_from_dispatch()
56 c_bio_ctrl = OSSL_FUNC_BIO_ctrl(fns); in ossl_prov_bio_from_dispatch()
60 c_bio_up_ref = OSSL_FUNC_BIO_up_ref(fns); in ossl_prov_bio_from_dispatch()
64 c_bio_free = OSSL_FUNC_BIO_free(fns); in ossl_prov_bio_from_dispatch()
[all …]
/openssl/crypto/bio/
H A Dbss_core.c147 int ossl_bio_init_core(OSSL_LIB_CTX *libctx, const OSSL_DISPATCH *fns) in ossl_bio_init_core() argument
154 for (; fns->function_id != 0; fns++) { in ossl_bio_init_core()
155 switch (fns->function_id) { in ossl_bio_init_core()
158 bcgbl->c_bio_read_ex = OSSL_FUNC_BIO_read_ex(fns); in ossl_bio_init_core()
162 bcgbl->c_bio_write_ex = OSSL_FUNC_BIO_write_ex(fns); in ossl_bio_init_core()
166 bcgbl->c_bio_gets = OSSL_FUNC_BIO_gets(fns); in ossl_bio_init_core()
170 bcgbl->c_bio_puts = OSSL_FUNC_BIO_puts(fns); in ossl_bio_init_core()
174 bcgbl->c_bio_ctrl = OSSL_FUNC_BIO_ctrl(fns); in ossl_bio_init_core()
178 bcgbl->c_bio_up_ref = OSSL_FUNC_BIO_up_ref(fns); in ossl_bio_init_core()
182 bcgbl->c_bio_free = OSSL_FUNC_BIO_free(fns); in ossl_bio_init_core()
/openssl/crypto/store/
H A Dstore_meth.c179 const OSSL_DISPATCH *fns = algodef->implementation; in loader_from_algorithm() local
187 for (; fns->function_id != 0; fns++) { in loader_from_algorithm()
188 switch (fns->function_id) { in loader_from_algorithm()
191 loader->p_open = OSSL_FUNC_store_open(fns); in loader_from_algorithm()
195 loader->p_attach = OSSL_FUNC_store_attach(fns); in loader_from_algorithm()
200 OSSL_FUNC_store_settable_ctx_params(fns); in loader_from_algorithm()
208 loader->p_load = OSSL_FUNC_store_load(fns); in loader_from_algorithm()
212 loader->p_eof = OSSL_FUNC_store_eof(fns); in loader_from_algorithm()
216 loader->p_close = OSSL_FUNC_store_close(fns); in loader_from_algorithm()
224 loader->p_delete = OSSL_FUNC_store_delete(fns); in loader_from_algorithm()
[all …]
/openssl/doc/internal/man3/
H A Devp_generic_fetch.pod16 const OSSL_DISPATCH *fns,
53 dispatch table I<fns>, with name identity I<name_id>.
131 for (; fns->function_id != 0; fns++) {
132 switch (fns->function_id) {
134 foo->newctx = OSSL_FUNC_foo_newctx(fns);
137 foo->init = OSSL_FUNC_foo_init(fns);
140 foo->operate = OSSL_FUNC_foo_operate(fns);
143 foo->cleanctx = OSSL_FUNC_foo_cleanctx(fns);
146 foo->freectx = OSSL_FUNC_foo_freectx(fns);
174 static void *foo_from_algorithm(const OSSL_DISPATCH *fns,
[all …]
/openssl/crypto/encode_decode/
H A Dencoder_meth.c203 const OSSL_DISPATCH *fns = algodef->implementation; in encoder_from_algorithm() local
220 for (; fns->function_id != 0; fns++) { in encoder_from_algorithm()
221 switch (fns->function_id) { in encoder_from_algorithm()
225 OSSL_FUNC_encoder_newctx(fns); in encoder_from_algorithm()
230 OSSL_FUNC_encoder_freectx(fns); in encoder_from_algorithm()
235 OSSL_FUNC_encoder_get_params(fns); in encoder_from_algorithm()
240 OSSL_FUNC_encoder_gettable_params(fns); in encoder_from_algorithm()
245 OSSL_FUNC_encoder_set_ctx_params(fns); in encoder_from_algorithm()
255 OSSL_FUNC_encoder_does_selection(fns); in encoder_from_algorithm()
264 OSSL_FUNC_encoder_import_object(fns); in encoder_from_algorithm()
[all …]
H A Ddecoder_meth.c203 const OSSL_DISPATCH *fns = algodef->implementation; in ossl_decoder_from_algorithm() local
220 for (; fns->function_id != 0; fns++) { in ossl_decoder_from_algorithm()
221 switch (fns->function_id) { in ossl_decoder_from_algorithm()
224 decoder->newctx = OSSL_FUNC_decoder_newctx(fns); in ossl_decoder_from_algorithm()
228 decoder->freectx = OSSL_FUNC_decoder_freectx(fns); in ossl_decoder_from_algorithm()
233 OSSL_FUNC_decoder_get_params(fns); in ossl_decoder_from_algorithm()
238 OSSL_FUNC_decoder_gettable_params(fns); in ossl_decoder_from_algorithm()
243 OSSL_FUNC_decoder_set_ctx_params(fns); in ossl_decoder_from_algorithm()
248 OSSL_FUNC_decoder_settable_ctx_params(fns); in ossl_decoder_from_algorithm()
253 OSSL_FUNC_decoder_does_selection(fns); in ossl_decoder_from_algorithm()
[all …]
/openssl/crypto/engine/
H A Deng_dyn.c423 dynamic_fns fns; in dynamic_load() local
493 fns.static_state = ENGINE_get_static_state(); in dynamic_load()
494 CRYPTO_get_mem_functions(&fns.mem_fns.malloc_fn, &fns.mem_fns.realloc_fn, in dynamic_load()
495 &fns.mem_fns.free_fn); in dynamic_load()
504 || !ctx->bind_engine(e, ctx->engine_id, &fns)) { in dynamic_load()
/openssl/include/openssl/
H A Dengine.h794 const dynamic_fns *fns);
797 int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); \
799 int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \
800 if (ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \
801 CRYPTO_set_mem_functions(fns->mem_fns.malloc_fn, \
802 fns->mem_fns.realloc_fn, \
803 fns->mem_fns.free_fn); \
/openssl/test/
H A Dtls-provider.c129 xor_prov_get_keymgmt_new(const OSSL_DISPATCH *fns) in xor_prov_get_keymgmt_new() argument
132 for (; fns->function_id != 0; fns++) in xor_prov_get_keymgmt_new()
134 return OSSL_FUNC_keymgmt_new(fns); in xor_prov_get_keymgmt_new()
140 xor_prov_get_keymgmt_free(const OSSL_DISPATCH *fns) in xor_prov_get_keymgmt_free() argument
143 for (; fns->function_id != 0; fns++) in xor_prov_get_keymgmt_free()
145 return OSSL_FUNC_keymgmt_free(fns); in xor_prov_get_keymgmt_free()
154 for (; fns->function_id != 0; fns++) in xor_prov_get_keymgmt_import()
156 return OSSL_FUNC_keymgmt_import(fns); in xor_prov_get_keymgmt_import()
165 for (; fns->function_id != 0; fns++) in xor_prov_get_keymgmt_export()
167 return OSSL_FUNC_keymgmt_export(fns); in xor_prov_get_keymgmt_export()
[all …]
/openssl/ssl/quic/
H A Dquic_tls.c102 const OSSL_DISPATCH *fns, void *cbarg, void *rlarg, in quic_new_record_layer() argument
124 if (fns != NULL) { in quic_new_record_layer()
125 for (; fns->function_id != 0; fns++) { in quic_new_record_layer()
126 switch (fns->function_id) { in quic_new_record_layer()
129 rl->msg_callback = OSSL_FUNC_rlayer_msg_callback(fns); in quic_new_record_layer()
/openssl/providers/implementations/include/prov/
H A Dseeding.h20 int ossl_prov_seeding_from_dispatch(const OSSL_DISPATCH *fns);
/openssl/providers/common/include/prov/
H A Dbio.h15 int ossl_prov_bio_from_dispatch(const OSSL_DISPATCH *fns);

Completed in 67 milliseconds

12