Home
last modified time | relevance | path

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

12

/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_format_iso9660_filename.c49 struct fns { struct
73 verify_file(struct archive *a, enum vtype type, struct fns *fns) in verify_file() argument
98 for (i = 0; i < fns->cnt; i++) { in verify_file()
110 assert(strcmp(fns->names[i], pathname) != 0); in verify_file()
111 assert((length = strlen(pathname)) <= fns->maxlen); in verify_file()
112 if (length > fns->longest_len) in verify_file()
113 fns->longest_len = length; in verify_file()
117 assert((size_t)(p - pathname) <= fns->maxflen); in verify_file()
119 assert(strlen(p+1) <= fns->maxelen); in verify_file()
120 if (fns->opt & ONE_DOT) { in verify_file()
[all …]
/freebsd/crypto/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()
21 if (fns->function_id == OSSL_FUNC_KEYMGMT_NEW) 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()
32 if (fns->function_id == OSSL_FUNC_KEYMGMT_FREE) in ossl_prov_get_keymgmt_free()
33 return OSSL_FUNC_keymgmt_free(fns); in ossl_prov_get_keymgmt_free()
39 ossl_prov_get_keymgmt_import(const OSSL_DISPATCH *fns) in ossl_prov_get_keymgmt_import() argument
42 for (; fns->function_id != 0; fns++) in ossl_prov_get_keymgmt_import()
[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);
/freebsd/crypto/openssl/crypto/evp/
H A Dmac_meth.c64 const OSSL_DISPATCH *fns = algodef->implementation; in evp_mac_from_algorithm() local
79 for (; fns->function_id != 0; fns++) { in evp_mac_from_algorithm()
80 switch (fns->function_id) { in evp_mac_from_algorithm()
84 mac->newctx = OSSL_FUNC_mac_newctx(fns); in evp_mac_from_algorithm()
90 mac->dupctx = OSSL_FUNC_mac_dupctx(fns); in evp_mac_from_algorithm()
95 mac->freectx = OSSL_FUNC_mac_freectx(fns); in evp_mac_from_algorithm()
101 mac->init = OSSL_FUNC_mac_init(fns); in evp_mac_from_algorithm()
107 mac->update = OSSL_FUNC_mac_update(fns); in evp_mac_from_algorithm()
113 mac->final = OSSL_FUNC_mac_final(fns); in evp_mac_from_algorithm()
120 OSSL_FUNC_mac_gettable_params(fns); in evp_mac_from_algorithm()
[all …]
H A Dkeymgmt_meth.c40 const OSSL_DISPATCH *fns = algodef->implementation; in keymgmt_from_algorithm() local
56 for (; fns->function_id != 0; fns++) { in keymgmt_from_algorithm()
57 switch (fns->function_id) { in keymgmt_from_algorithm()
60 keymgmt->new = OSSL_FUNC_keymgmt_new(fns); in keymgmt_from_algorithm()
64 keymgmt->gen_init = OSSL_FUNC_keymgmt_gen_init(fns); in keymgmt_from_algorithm()
69 OSSL_FUNC_keymgmt_gen_set_template(fns); in keymgmt_from_algorithm()
75 OSSL_FUNC_keymgmt_gen_set_params(fns); in keymgmt_from_algorithm()
82 OSSL_FUNC_keymgmt_gen_settable_params(fns); in keymgmt_from_algorithm()
87 keymgmt->gen = OSSL_FUNC_keymgmt_gen(fns); in keymgmt_from_algorithm()
91 keymgmt->gen_cleanup = OSSL_FUNC_keymgmt_gen_cleanup(fns); in keymgmt_from_algorithm()
[all …]
H A Dkdf_meth.c63 const OSSL_DISPATCH *fns = algodef->implementation; in evp_kdf_from_algorithm() local
78 for (; fns->function_id != 0; fns++) { in evp_kdf_from_algorithm()
79 switch (fns->function_id) { in evp_kdf_from_algorithm()
83 kdf->newctx = OSSL_FUNC_kdf_newctx(fns); in evp_kdf_from_algorithm()
89 kdf->dupctx = OSSL_FUNC_kdf_dupctx(fns); in evp_kdf_from_algorithm()
94 kdf->freectx = OSSL_FUNC_kdf_freectx(fns); in evp_kdf_from_algorithm()
100 kdf->reset = OSSL_FUNC_kdf_reset(fns); in evp_kdf_from_algorithm()
105 kdf->derive = OSSL_FUNC_kdf_derive(fns); in evp_kdf_from_algorithm()
112 OSSL_FUNC_kdf_gettable_params(fns); in evp_kdf_from_algorithm()
118 OSSL_FUNC_kdf_gettable_ctx_params(fns); in evp_kdf_from_algorithm()
[all …]
H A Dsignature.c47 const OSSL_DISPATCH *fns = algodef->implementation; in evp_signature_from_algorithm() local
63 for (; fns->function_id != 0; fns++) { in evp_signature_from_algorithm()
64 switch (fns->function_id) { in evp_signature_from_algorithm()
68 signature->newctx = OSSL_FUNC_signature_newctx(fns); in evp_signature_from_algorithm()
74 signature->sign_init = OSSL_FUNC_signature_sign_init(fns); in evp_signature_from_algorithm()
80 signature->sign = OSSL_FUNC_signature_sign(fns); in evp_signature_from_algorithm()
86 signature->verify_init = OSSL_FUNC_signature_verify_init(fns); in evp_signature_from_algorithm()
92 signature->verify = OSSL_FUNC_signature_verify(fns); in evp_signature_from_algorithm()
99 = OSSL_FUNC_signature_verify_recover_init(fns); in evp_signature_from_algorithm()
[all...]
H A Devp_rand.c119 const OSSL_DISPATCH *fns = algodef->implementation; in evp_rand_from_algorithm() local
136 rand->dispatch = fns; in evp_rand_from_algorithm()
137 for (; fns->function_id != 0; fns++) { in evp_rand_from_algorithm()
138 switch (fns->function_id) { in evp_rand_from_algorithm()
142 rand->newctx = OSSL_FUNC_rand_newctx(fns); in evp_rand_from_algorithm()
148 rand->freectx = OSSL_FUNC_rand_freectx(fns); in evp_rand_from_algorithm()
154 rand->instantiate = OSSL_FUNC_rand_instantiate(fns); in evp_rand_from_algorithm()
160 rand->uninstantiate = OSSL_FUNC_rand_uninstantiate(fns); in evp_rand_from_algorithm()
166 rand->generate = OSSL_FUNC_rand_generate(fns); in evp_rand_from_algorithm()
172 rand->reseed = OSSL_FUNC_rand_reseed(fns); in evp_rand_from_algorithm()
[all …]
H A Dkem.c262 const OSSL_DISPATCH *fns = algodef->implementation; in evp_kem_from_algorithm() local
277 for (; fns->function_id != 0; fns++) { in evp_kem_from_algorithm()
278 switch (fns->function_id) { in evp_kem_from_algorithm()
282 kem->newctx = OSSL_FUNC_kem_newctx(fns); in evp_kem_from_algorithm()
288 kem->encapsulate_init = OSSL_FUNC_kem_encapsulate_init(fns); in evp_kem_from_algorithm()
294 kem->encapsulate = OSSL_FUNC_kem_encapsulate(fns); in evp_kem_from_algorithm()
300 kem->decapsulate_init = OSSL_FUNC_kem_decapsulate_init(fns); in evp_kem_from_algorithm()
306 kem->decapsulate = OSSL_FUNC_kem_decapsulate(fns); in evp_kem_from_algorithm()
312 kem->freectx = OSSL_FUNC_kem_freectx(fns); in evp_kem_from_algorithm()
318 kem->dupctx = OSSL_FUNC_kem_dupctx(fns); in evp_kem_from_algorithm()
[all …]
H A Dasymcipher.c328 const OSSL_DISPATCH *fns = algodef->implementation; in evp_asym_cipher_from_algorithm() local
343 for (; fns->function_id != 0; fns++) { in evp_asym_cipher_from_algorithm()
344 switch (fns->function_id) { in evp_asym_cipher_from_algorithm()
348 cipher->newctx = OSSL_FUNC_asym_cipher_newctx(fns); in evp_asym_cipher_from_algorithm()
354 cipher->encrypt_init = OSSL_FUNC_asym_cipher_encrypt_init(fns); in evp_asym_cipher_from_algorithm()
360 cipher->encrypt = OSSL_FUNC_asym_cipher_encrypt(fns); in evp_asym_cipher_from_algorithm()
366 cipher->decrypt_init = OSSL_FUNC_asym_cipher_decrypt_init(fns); in evp_asym_cipher_from_algorithm()
372 cipher->decrypt = OSSL_FUNC_asym_cipher_decrypt(fns); in evp_asym_cipher_from_algorithm()
378 cipher->freectx = OSSL_FUNC_asym_cipher_freectx(fns); in evp_asym_cipher_from_algorithm()
384 cipher->dupctx = OSSL_FUNC_asym_cipher_dupctx(fns); in evp_asym_cipher_from_algorithm()
[all …]
H A Dexchange.c47 const OSSL_DISPATCH *fns = algodef->implementation; in evp_keyexch_from_algorithm() local
61 for (; fns->function_id != 0; fns++) { in evp_keyexch_from_algorithm()
62 switch (fns->function_id) { in evp_keyexch_from_algorithm()
66 exchange->newctx = OSSL_FUNC_keyexch_newctx(fns); in evp_keyexch_from_algorithm()
72 exchange->init = OSSL_FUNC_keyexch_init(fns); in evp_keyexch_from_algorithm()
78 exchange->set_peer = OSSL_FUNC_keyexch_set_peer(fns); in evp_keyexch_from_algorithm()
83 exchange->derive = OSSL_FUNC_keyexch_derive(fns); in evp_keyexch_from_algorithm()
89 exchange->freectx = OSSL_FUNC_keyexch_freectx(fns); in evp_keyexch_from_algorithm()
95 exchange->dupctx = OSSL_FUNC_keyexch_dupctx(fns); in evp_keyexch_from_algorithm()
100 exchange->get_ctx_params = OSSL_FUNC_keyexch_get_ctx_params(fns); in evp_keyexch_from_algorithm()
[all …]
H A Ddigest.c938 const OSSL_DISPATCH *fns = algodef->implementation; in evp_md_from_algorithm() local
965 for (; fns->function_id != 0; fns++) { in evp_md_from_algorithm()
966 switch (fns->function_id) { in evp_md_from_algorithm()
969 md->newctx = OSSL_FUNC_digest_newctx(fns); in evp_md_from_algorithm()
975 md->dinit = OSSL_FUNC_digest_init(fns); in evp_md_from_algorithm()
981 md->dupdate = OSSL_FUNC_digest_update(fns); in evp_md_from_algorithm()
987 md->dfinal = OSSL_FUNC_digest_final(fns); in evp_md_from_algorithm()
993 md->digest = OSSL_FUNC_digest_digest(fns); in evp_md_from_algorithm()
998 md->freectx = OSSL_FUNC_digest_freectx(fns); in evp_md_from_algorithm()
1004 md->dupctx = OSSL_FUNC_digest_dupctx(fns); in evp_md_from_algorithm()
[all …]
H A Devp_enc.c1525 const OSSL_DISPATCH *fns = algodef->implementation; in evp_cipher_from_algorithm() local
1551 for (; fns->function_id != 0; fns++) { in evp_cipher_from_algorithm()
1552 switch (fns->function_id) { in evp_cipher_from_algorithm()
1556 cipher->newctx = OSSL_FUNC_cipher_newctx(fns); in evp_cipher_from_algorithm()
1562 cipher->einit = OSSL_FUNC_cipher_encrypt_init(fns); in evp_cipher_from_algorithm()
1568 cipher->dinit = OSSL_FUNC_cipher_decrypt_init(fns); in evp_cipher_from_algorithm()
1574 cipher->cupdate = OSSL_FUNC_cipher_update(fns); in evp_cipher_from_algorithm()
1580 cipher->cfinal = OSSL_FUNC_cipher_final(fns); in evp_cipher_from_algorithm()
1586 cipher->ccipher = OSSL_FUNC_cipher_cipher(fns); in evp_cipher_from_algorithm()
1591 cipher->freectx = OSSL_FUNC_cipher_freectx(fns); in evp_cipher_from_algorithm()
[all …]
/freebsd/crypto/openssl/providers/common/
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()
36 c_bio_new_membuf = OSSL_FUNC_BIO_new_membuf(fns); in ossl_prov_bio_from_dispatch()
40 c_bio_read_ex = OSSL_FUNC_BIO_read_ex(fns); in ossl_prov_bio_from_dispatch()
44 c_bio_write_ex = OSSL_FUNC_BIO_write_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()
[all …]
H A Dprovider_seeding.c18 int ossl_prov_seeding_from_dispatch(const OSSL_DISPATCH *fns) in ossl_prov_seeding_from_dispatch() argument
20 for (; fns->function_id != 0; fns++) { in ossl_prov_seeding_from_dispatch()
28 switch (fns->function_id) { in ossl_prov_seeding_from_dispatch()
30 set_func(c_get_entropy, OSSL_FUNC_get_entropy(fns)); in ossl_prov_seeding_from_dispatch()
33 set_func(c_cleanup_entropy, OSSL_FUNC_cleanup_entropy(fns)); in ossl_prov_seeding_from_dispatch()
36 set_func(c_get_nonce, OSSL_FUNC_get_nonce(fns)); in ossl_prov_seeding_from_dispatch()
39 set_func(c_cleanup_nonce, OSSL_FUNC_cleanup_nonce(fns)); in ossl_prov_seeding_from_dispatch()
/freebsd/crypto/openssl/crypto/bio/
H A Dbss_core.c153 int ossl_bio_init_core(OSSL_LIB_CTX *libctx, const OSSL_DISPATCH *fns) in ossl_bio_init_core() argument
160 for (; fns->function_id != 0; fns++) { in ossl_bio_init_core()
161 switch (fns->function_id) { in ossl_bio_init_core()
164 bcgbl->c_bio_read_ex = OSSL_FUNC_BIO_read_ex(fns); in ossl_bio_init_core()
168 bcgbl->c_bio_write_ex = OSSL_FUNC_BIO_write_ex(fns); in ossl_bio_init_core()
172 bcgbl->c_bio_gets = OSSL_FUNC_BIO_gets(fns); in ossl_bio_init_core()
176 bcgbl->c_bio_puts = OSSL_FUNC_BIO_puts(fns); in ossl_bio_init_core()
180 bcgbl->c_bio_ctrl = OSSL_FUNC_BIO_ctrl(fns); in ossl_bio_init_core()
184 bcgbl->c_bio_up_ref = OSSL_FUNC_BIO_up_ref(fns); in ossl_bio_init_core()
188 bcgbl->c_bio_free = OSSL_FUNC_BIO_free(fns); in ossl_bio_init_core()
/freebsd/crypto/openssl/doc/internal/man3/
H A Devp_generic_fetch.pod16 const OSSL_DISPATCH *fns,
26 const OSSL_DISPATCH *fns,
35 const OSSL_DISPATCH *fns,
70 dispatch table I<fns>, with name identity I<name_id>.
132 const OSSL_DISPATCH *fns,
143 for (; fns->function_id != 0; fns++) {
144 switch (fns->function_id) {
146 foo->newctx = OSSL_FUNC_foo_newctx(fns);
149 foo->init = OSSL_FUNC_foo_init(fns);
152 foo->operate = OSSL_FUNC_foo_operate(fns);
[all …]
/freebsd/crypto/openssl/crypto/store/
H A Dstore_meth.c199 const OSSL_DISPATCH *fns = algodef->implementation; in loader_from_algorithm() local
207 for (; fns->function_id != 0; fns++) { in loader_from_algorithm()
208 switch (fns->function_id) { in loader_from_algorithm()
211 loader->p_open = OSSL_FUNC_store_open(fns); in loader_from_algorithm()
215 loader->p_attach = OSSL_FUNC_store_attach(fns); in loader_from_algorithm()
220 OSSL_FUNC_store_settable_ctx_params(fns); in loader_from_algorithm()
224 loader->p_set_ctx_params = OSSL_FUNC_store_set_ctx_params(fns); in loader_from_algorithm()
228 loader->p_load = OSSL_FUNC_store_load(fns); in loader_from_algorithm()
232 loader->p_eof = OSSL_FUNC_store_eof(fns); in loader_from_algorithm()
236 loader->p_close = OSSL_FUNC_store_close(fns); in loader_from_algorithm()
[all …]
/freebsd/crypto/openssl/crypto/encode_decode/
H A Dencoder_meth.c224 const OSSL_DISPATCH *fns = algodef->implementation; in encoder_from_algorithm() local
241 for (; fns->function_id != 0; fns++) { in encoder_from_algorithm()
242 switch (fns->function_id) { in encoder_from_algorithm()
246 OSSL_FUNC_encoder_newctx(fns); in encoder_from_algorithm()
251 OSSL_FUNC_encoder_freectx(fns); in encoder_from_algorithm()
256 OSSL_FUNC_encoder_get_params(fns); in encoder_from_algorithm()
261 OSSL_FUNC_encoder_gettable_params(fns); in encoder_from_algorithm()
266 OSSL_FUNC_encoder_set_ctx_params(fns); in encoder_from_algorithm()
271 OSSL_FUNC_encoder_settable_ctx_params(fns); in encoder_from_algorithm()
276 OSSL_FUNC_encoder_does_selection(fns); in encoder_from_algorithm()
[all …]
H A Ddecoder_meth.c224 const OSSL_DISPATCH *fns = algodef->implementation; in ossl_decoder_from_algorithm() local
241 for (; fns->function_id != 0; fns++) { in ossl_decoder_from_algorithm()
242 switch (fns->function_id) { in ossl_decoder_from_algorithm()
245 decoder->newctx = OSSL_FUNC_decoder_newctx(fns); in ossl_decoder_from_algorithm()
249 decoder->freectx = OSSL_FUNC_decoder_freectx(fns); in ossl_decoder_from_algorithm()
254 OSSL_FUNC_decoder_get_params(fns); in ossl_decoder_from_algorithm()
259 OSSL_FUNC_decoder_gettable_params(fns); in ossl_decoder_from_algorithm()
264 OSSL_FUNC_decoder_set_ctx_params(fns); in ossl_decoder_from_algorithm()
269 OSSL_FUNC_decoder_settable_ctx_params(fns); in ossl_decoder_from_algorithm()
274 OSSL_FUNC_decoder_does_selection(fns); in ossl_decoder_from_algorithm()
[all …]
/freebsd/lib/libc/stdlib/
H A Datexit.c75 } fns[ATEXIT_SIZE]; /* the table itself */ member
117 p->fns[p->ind++] = *fptr; in atexit_register()
213 if (p->fns[n].fn_type == ATEXIT_FN_EMPTY) in __cxa_finalize()
215 fn = p->fns[n]; in __cxa_finalize()
227 p->fns[n].fn_type = ATEXIT_FN_EMPTY; in __cxa_finalize()
/freebsd/usr.bin/sort/
H A Dfile.c222 if (fl->count >= fl->sz || (fl->fns == NULL)) { in file_list_add()
224 fl->fns = sort_realloc(fl->fns, fl->sz * in file_list_add()
227 fl->fns[fl->count] = allocate ? sort_strdup(fn) : fn; in file_list_add()
256 if (fl->fns) { in file_list_clean()
260 if (fl->fns[i]) { in file_list_clean()
262 unlink(fl->fns[i]); in file_list_clean()
263 sort_free(fl->fns[i]); in file_list_clean()
264 fl->fns[i] = 0; in file_list_clean()
267 sort_free(fl->fns); in file_list_clean()
268 fl->fns = NULL; in file_list_clean()
[all …]
/freebsd/crypto/openssl/crypto/engine/
H A Deng_dyn.c427 dynamic_fns fns; in dynamic_load() local
497 fns.static_state = ENGINE_get_static_state(); in dynamic_load()
498 CRYPTO_get_mem_functions(&fns.mem_fns.malloc_fn, &fns.mem_fns.realloc_fn, in dynamic_load()
499 &fns.mem_fns.free_fn); in dynamic_load()
508 || !ctx->bind_engine(e, ctx->engine_id, &fns)) { in dynamic_load()
/freebsd/crypto/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); \
/freebsd/contrib/bc/src/
H A Dprogram.c727 BcFunc* f = bc_vec_item(&p->fns, BC_PROG_READ); in bc_program_read()
811 f = bc_vec_item(&p->fns, BC_PROG_READ); in bc_program_read()
1788 f = bc_vec_item(&p->fns, ip.func); in bc_program_call()
1879 f = bc_vec_item(&p->fns, ip->func); in bc_program_return()
2567 f = bc_vec_item(&p->fns, fidx); in bc_program_execStr()
2644 f = bc_vec_item(&p->fns, fidx); in bc_program_execStr()
2768 f = bc_vec_pushEmpty(&p->fns); in bc_program_addFunc()
2784 new = bc_map_insert(&p->fn_map, name, p->fns.len, &idx); in bc_program_insertFunc()
2798 BcFunc* func = bc_vec_item(&p->fns, idx); in bc_program_insertFunc()
2826 bc_vec_free(&p->fns); in bc_program_free()
[all …]

12