| /freebsd-14.2/contrib/libarchive/libarchive/test/ |
| H A D | test_write_format_iso9660_filename.c | 311 struct fns fns; in DEFINE_TEST() local 334 fns.maxlen = fns.maxflen = fns.maxelen = 255; in DEFINE_TEST() 340 fns.maxlen = fns.maxflen = fns.maxelen = 64; in DEFINE_TEST() 360 fns.maxlen = fns.maxflen = fns.maxelen = 255; in DEFINE_TEST() 366 fns.maxlen = fns.maxflen = fns.maxelen = 64; in DEFINE_TEST() 386 fns.maxlen = fns.maxflen = fns.maxelen = 255; in DEFINE_TEST() 392 fns.maxlen = fns.maxflen = fns.maxelen = 64; in DEFINE_TEST() 412 fns.maxlen = fns.maxflen = fns.maxelen = 255; in DEFINE_TEST() 418 fns.maxlen = fns.maxflen = fns.maxelen = 64; in DEFINE_TEST() 424 fns.maxlen = fns.maxflen = fns.maxelen = 193; in DEFINE_TEST() [all …]
|
| /freebsd-14.2/crypto/openssl/providers/implementations/encode_decode/ |
| H A D | endecoder_common.c | 17 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 D | endecoder_local.h | 15 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-14.2/crypto/openssl/crypto/evp/ |
| H A D | mac_meth.c | 64 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 D | kdf_meth.c | 63 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 D | keymgmt_meth.c | 40 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() 69 OSSL_FUNC_keymgmt_gen_set_template(fns); in keymgmt_from_algorithm() 75 OSSL_FUNC_keymgmt_gen_set_params(fns); in keymgmt_from_algorithm() 87 keymgmt->gen = OSSL_FUNC_keymgmt_gen(fns); in keymgmt_from_algorithm() 111 OSSL_FUNC_keymgmt_gettable_params(fns); in keymgmt_from_algorithm() 124 OSSL_FUNC_keymgmt_settable_params(fns); in keymgmt_from_algorithm() 134 keymgmt->has = OSSL_FUNC_keymgmt_has(fns); in keymgmt_from_algorithm() [all …]
|
| H A D | signature.c | 47 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() 80 signature->sign = OSSL_FUNC_signature_sign(fns); in evp_signature_from_algorithm() 106 = OSSL_FUNC_signature_verify_recover(fns); in evp_signature_from_algorithm() 113 = OSSL_FUNC_signature_digest_sign_init(fns); in evp_signature_from_algorithm() 126 = OSSL_FUNC_signature_digest_sign_final(fns); in evp_signature_from_algorithm() 133 = OSSL_FUNC_signature_digest_sign(fns); in evp_signature_from_algorithm() 159 = OSSL_FUNC_signature_digest_verify(fns); in evp_signature_from_algorithm() 176 = OSSL_FUNC_signature_get_ctx_params(fns); in evp_signature_from_algorithm() [all …]
|
| H A D | evp_rand.c | 119 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() 172 rand->reseed = OSSL_FUNC_rand_reseed(fns); in evp_rand_from_algorithm() 177 rand->nonce = OSSL_FUNC_rand_nonce(fns); in evp_rand_from_algorithm() 188 rand->lock = OSSL_FUNC_rand_lock(fns); in evp_rand_from_algorithm() 194 rand->unlock = OSSL_FUNC_rand_unlock(fns); in evp_rand_from_algorithm() [all …]
|
| H A D | kem.c | 262 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() 294 kem->encapsulate = OSSL_FUNC_kem_encapsulate(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() 324 = OSSL_FUNC_kem_get_ctx_params(fns); in evp_kem_from_algorithm() 331 = OSSL_FUNC_kem_gettable_ctx_params(fns); in evp_kem_from_algorithm() 338 = OSSL_FUNC_kem_set_ctx_params(fns); in evp_kem_from_algorithm() [all …]
|
| H A D | asymcipher.c | 328 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() 360 cipher->encrypt = OSSL_FUNC_asym_cipher_encrypt(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() 390 = OSSL_FUNC_asym_cipher_get_ctx_params(fns); in evp_asym_cipher_from_algorithm() 397 = OSSL_FUNC_asym_cipher_gettable_ctx_params(fns); in evp_asym_cipher_from_algorithm() [all …]
|
| H A D | exchange.c | 47 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() 107 = OSSL_FUNC_keyexch_gettable_ctx_params(fns); in evp_keyexch_from_algorithm() [all …]
|
| H A D | digest.c | 938 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 D | evp_enc.c | 1525 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() 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() 1597 cipher->dupctx = OSSL_FUNC_cipher_dupctx(fns); in evp_cipher_from_algorithm() 1623 OSSL_FUNC_cipher_gettable_ctx_params(fns); in evp_cipher_from_algorithm() [all …]
|
| /freebsd-14.2/crypto/openssl/providers/common/ |
| H A D | bio_prov.c | 26 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 …]
|
| H A D | provider_seeding.c | 18 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-14.2/crypto/openssl/crypto/bio/ |
| H A D | bss_core.c | 153 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-14.2/crypto/openssl/doc/internal/man3/ |
| H A D | evp_generic_fetch.pod | 16 const OSSL_DISPATCH *fns, 70 dispatch table I<fns>, with name identity I<name_id>. 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); 155 foo->cleanctx = OSSL_FUNC_foo_cleanctx(fns); 158 foo->freectx = OSSL_FUNC_foo_freectx(fns); 179 static void *foo_from_algorithm(const OSSL_DISPATCH *fns, [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/store/ |
| H A D | store_meth.c | 199 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-14.2/crypto/openssl/crypto/encode_decode/ |
| H A D | encoder_meth.c | 224 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() 276 OSSL_FUNC_encoder_does_selection(fns); in encoder_from_algorithm() 285 OSSL_FUNC_encoder_import_object(fns); in encoder_from_algorithm() [all …]
|
| H A D | decoder_meth.c | 224 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-14.2/lib/libc/stdlib/ |
| H A D | atexit.c | 78 } fns[ATEXIT_SIZE]; /* the table itself */ member 120 p->fns[p->ind++] = *fptr; in atexit_register() 216 if (p->fns[n].fn_type == ATEXIT_FN_EMPTY) in __cxa_finalize() 218 fn = p->fns[n]; in __cxa_finalize() 230 p->fns[n].fn_type = ATEXIT_FN_EMPTY; in __cxa_finalize()
|
| /freebsd-14.2/usr.bin/sort/ |
| H A D | file.c | 222 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() 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() 1064 unlink(fl->fns[indx + i]); in shrink_file_list() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/engine/ |
| H A D | eng_dyn.c | 427 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-14.2/crypto/openssl/include/openssl/ |
| H A D | engine.h | 794 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-14.2/contrib/bc/src/ |
| H A D | program.c | 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() 2826 bc_vec_free(&p->fns); in bc_program_free() 3000 f = bc_vec_item(&p->fns, BC_PROG_MAIN); in bc_program_reset() 3165 func = bc_vec_item(&p->fns, ip->func); in bc_program_exec() 3832 for (i = 0; i < p->fns.len; ++i) in bc_program_code() [all …]
|