| /freebsd-14.2/sys/kern/ |
| H A D | uipc_ktls.c | 741 *tlsp = tls; in ktls_create_session() 896 params.tls_rate_limit.tls = tls; in ktls_alloc_snd_tag() 901 params.tls.tls = tls; in ktls_alloc_snd_tag() 987 params.tls_rx.tls = tls; in ktls_alloc_rcv_tag() 1516 tls = ktls_hold(tls); in ktls_set_tx_mode() 1604 tls = context; in ktls_reset_receive_tag() 1605 so = tls->so; in ktls_reset_receive_tag() 1630 params.tls_rx.tls = tls; in ktls_reset_receive_tag() 1692 tls = context; in ktls_reset_send_tag() 1779 tls->so = so; in ktls_input_ifp_mismatch() [all …]
|
| H A D | kern_sendfile.c | 98 struct ktls_session *tls; member 386 } else if (sfio->tls != NULL && sfio->tls->mode == TCP_TLS_MODE_SW) { in sendfile_iodone() 700 tls = NULL; in vn_sendfile() 838 if (tls != NULL) in vn_sendfile() 940 sfio->tls = tls; in vn_sendfile() 969 || tls != NULL in vn_sendfile() 974 if (tls != NULL) in vn_sendfile() 1157 if (tls != NULL) in vn_sendfile() 1171 if (tls != NULL && tls->mode == TCP_TLS_MODE_SW) { in vn_sendfile() 1257 if (tls != NULL) in vn_sendfile() [all …]
|
| /freebsd-14.2/sys/opencrypto/ |
| H A D | ktls_ocf.c | 292 os = tls->ocf_session; in ktls_ocf_tls_cbc_encrypt() 453 os = tls->ocf_session; in ktls_ocf_tls_cbc_decrypt() 560 os = tls->ocf_session; in ktls_ocf_tls12_aead_encrypt() 578 memcpy(crp->crp_iv, tls->params.iv, tls->params.iv_len); in ktls_ocf_tls12_aead_encrypt() 662 memcpy(crp.crp_iv, tls->params.iv, tls->params.iv_len); in ktls_ocf_tls12_aead_decrypt() 805 memcpy(crp->crp_iv, tls->params.iv, tls->params.iv_len); in ktls_ocf_tls13_aead_encrypt() 884 memcpy(crp.crp_iv, tls->params.iv, tls->params.iv_len); in ktls_ocf_tls13_aead_decrypt() 939 memcpy(crp.crp_iv, tls->params.iv, tls->params.iv_len); in ktls_ocf_tls13_aead_recrypt() 1167 return (tls->ocf_session->sw->encrypt(state, tls, m, outiov, in ktls_ocf_encrypt() 1175 return (tls->ocf_session->sw->decrypt(tls, hdr, m, seqno, trailer_len)); in ktls_ocf_decrypt() [all …]
|
| H A D | ktls.h | 50 void ktls_ocf_free(struct ktls_session *tls); 51 int ktls_ocf_try(struct ktls_session *tls, int direction); 53 struct ktls_session *tls, struct mbuf *m, struct iovec *outiov, 55 int ktls_ocf_decrypt(struct ktls_session *tls, 58 int ktls_ocf_recrypt(struct ktls_session *tls, 60 bool ktls_ocf_recrypt_supported(struct ktls_session *tls);
|
| /freebsd-14.2/sys/dev/cxgbe/crypto/ |
| H A D | t4_keyctx.c | 416 tls->params.cipher_key_len; in t4_tls_key_info_size() 420 switch (tls->params.auth_algorithm) { in t4_tls_key_info_size() 450 switch (tls->params.cipher_algorithm) { in t4_tls_cipher_mode() 465 switch (tls->params.auth_algorithm) { in t4_tls_auth_mode() 498 switch (tls->params.cipher_key_len) { in tls_cipher_key_size() 516 switch (tls->params.auth_algorithm) { in tls_mac_key_size() 600 tls->params.cipher_key_len * 8); in t4_tls_key_ctx() 603 tls->params.cipher_key_len); in t4_tls_key_ctx() 615 switch (tls->params.auth_algorithm) { in t4_tls_key_ctx() 632 tls->params.auth_key_len, hash); in t4_tls_key_ctx() [all …]
|
| H A D | t6_kern_tls.c | 377 const struct ktls_session *tls; in t6_tls_tag_alloc() local 386 tls = params->tls.tls; in t6_tls_tag_alloc() 395 switch (tls->params.cipher_algorithm) { in t6_tls_tag_alloc() 398 switch (tls->params.cipher_key_len) { in t6_tls_tag_alloc() 406 switch (tls->params.auth_algorithm) { in t6_tls_tag_alloc() 418 if (tls->params.iv_len != SALT_SIZE) in t6_tls_tag_alloc() 420 switch (tls->params.cipher_key_len) { in t6_tls_tag_alloc() 461 inp = params->tls.inp; in t6_tls_tag_alloc() 522 error = ktls_setup_keys(tlsp, tls, txq); in t6_tls_tag_alloc() 526 tlsp->enc_mode = t4_tls_cipher_mode(tls); in t6_tls_tag_alloc() [all …]
|
| /freebsd-14.2/tools/regression/tls/ttls3/ |
| H A D | Makefile | 8 tls-lib: elftls.S 13 tls-test-lib: tls-lib tls-test-lib.c 14 gcc -c -o tls-test.o ${.CURDIR}/tls-test-lib.c 15 ld $(LDFLAGS) tls-test.o libtls.so.1 -rpath=${.OBJDIR} -soname libtls-test.so.1 -o libtls-test.so.1 17 ttls3: tls-test-lib tls-test.c 18 gcc $(CFLAGS) -rdynamic -o ttls3 ${.CURDIR}/tls-test.c
|
| /freebsd-14.2/crypto/heimdal/base/ |
| H A D | heimbase.c | 395 if (tls->head) in ar_tls_delete() 397 free(tls); in ar_tls_delete() 440 struct ar_tls *tls; in autorel_dealloc() local 442 tls = autorel_tls(); in autorel_dealloc() 443 if (tls == NULL) in autorel_dealloc() 455 if (tls->current != tls->head) in autorel_dealloc() 493 if (tls == NULL) in heim_auto_release_create() 499 if (tls->head == NULL) in heim_auto_release_create() 500 tls->head = ar; in heim_auto_release_create() 502 tls->current = ar; in heim_auto_release_create() [all …]
|
| /freebsd-14.2/sys/dev/cxgbe/tom/ |
| H A D | t4_tls.c | 309 toep->tls.frag_size = tls->params.max_frame_len; in tls_alloc_ktls() 310 toep->tls.fcplenmax = get_tp_plen_max(tls); in tls_alloc_ktls() 311 toep->tls.expn_per_ulp = tls->params.tls_hlen + in tls_alloc_ktls() 312 tls->params.tls_tlen; in tls_alloc_ktls() 313 toep->tls.pdus_per_ulp = 1; in tls_alloc_ktls() 314 toep->tls.adjusted_plen = toep->tls.expn_per_ulp + in tls_alloc_ktls() 316 toep->tls.tx_key_info_size = t4_tls_key_info_size(tls); in tls_alloc_ktls() 319 toep->tls.rx_version = tls->params.tls_vmajor << 8 | in tls_alloc_ktls() 320 tls->params.tls_vminor; in tls_alloc_ktls() 1228 toep->tls.rx_resid)); in tls_received_starting_data() [all …]
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | tls.c | 203 Elf_Addr **tls; in __libc_free_tls() local 205 tls = (Elf_Addr **)tcb; in __libc_free_tls() 206 dtv = tls[0]; in __libc_free_tls() 235 char *tls_block, *tls; in __libc_allocate_tls() local 273 dtv[2] = (Elf_Addr)(tls + TLS_DTV_OFFSET); in __libc_allocate_tls() 328 char *tls; in __libc_allocate_tls() local 338 if (tls == NULL) { in __libc_allocate_tls() 342 memset(tls, 0, size + tcbsize); in __libc_allocate_tls() 349 segbase = (Elf_Addr)(tls + size); in __libc_allocate_tls() 410 void *tls; in _init_tls() local [all …]
|
| /freebsd-14.2/sys/sys/ |
| H A D | ktls.h | 220 void ktls_destroy(struct ktls_session *tls); 221 void ktls_frame(struct mbuf *m, struct ktls_session *tls, int *enqueue_cnt, 223 bool ktls_permit_empty_frames(struct ktls_session *tls); 232 int ktls_output_eagain(struct inpcb *inp, struct ktls_session *tls); 239 ktls_hold(struct ktls_session *tls) in ktls_hold() argument 242 if (tls != NULL) in ktls_hold() 243 refcount_acquire(&tls->refcount); in ktls_hold() 244 return (tls); in ktls_hold() 248 ktls_free(struct ktls_session *tls) in ktls_free() argument 251 if (refcount_release(&tls->refcount)) in ktls_free() [all …]
|
| /freebsd-14.2/sys/arm/include/ |
| H A D | pcpu.h | 109 void *tls; in get_tls() local 112 __asm __volatile("mrc p15, 0, %0, c13, c0, 2" : "=r" (tls)); in get_tls() 113 return (tls); in get_tls() 117 set_tls(void *tls) in set_tls() argument 128 : : "r" (tls)); in set_tls()
|
| /freebsd-14.2/sys/dev/mlx5/mlx5_en/ |
| H A D | mlx5_en_hw_tls.c | 109 ptls = ptag->tls; in mlx5e_tls_tag_release() 143 uma_zfree(ptag->tls->zone, ptag); in mlx5e_tls_tag_zfree() 149 struct mlx5e_tls *ptls = &priv->tls; in mlx5e_tls_init() 196 struct mlx5e_tls *ptls = &priv->tls; in mlx5e_tls_cleanup() 209 MPASS(priv->tls.num_resources == 0); in mlx5e_tls_cleanup() 223 priv = container_of(ptag->tls, struct mlx5e_priv, tls); in mlx5e_tls_work() 336 ptag->tls = &priv->tls; in mlx5e_tls_snd_tag_alloc() 345 if (value >= priv->tls.max_resources) { in mlx5e_tls_snd_tag_alloc() 351 en = ¶ms->tls.tls->params; in mlx5e_tls_snd_tag_alloc() 442 queue_work(priv->tls.wq, &ptag->work); in mlx5e_tls_snd_tag_alloc() [all …]
|
| H A D | en_hw_tls.h | 34 counter_u64_add((tag)->tls->stats.field, num) 48 struct mlx5e_tls *tls; member
|
| /freebsd-14.2/lib/libc/tests/tls_dso/ |
| H A D | Makefile | 7 LIBDIR= ${TESTSBASE}/lib/libc/tls 8 SHLIBDIR= ${TESTSBASE}/lib/libc/tls
|
| /freebsd-14.2/contrib/unbound/util/ |
| H A D | configlexer.lex | 247 tls-upstream{COLON} { YDVAR(1, VAR_SSL_UPSTREAM) } 249 tls-service-key{COLON} { YDVAR(1, VAR_SSL_SERVICE_KEY) } 251 tls-service-pem{COLON} { YDVAR(1, VAR_SSL_SERVICE_PEM) } 253 tls-port{COLON} { YDVAR(1, VAR_SSL_PORT) } 256 tls-win-cert{COLON} { YDVAR(1, VAR_TLS_WIN_CERT) } 257 tls-system-cert{COLON} { YDVAR(1, VAR_TLS_WIN_CERT) } 263 tls-ciphers{COLON} { YDVAR(1, VAR_TLS_CIPHERS) } 265 tls-use-sni{COLON} { YDVAR(1, VAR_TLS_USE_SNI) } 498 dnstap-tls{COLON} { YDVAR(1, VAR_DNSTAP_TLS) } 501 dnstap-tls-client-key-file{COLON} { [all …]
|
| /freebsd-14.2/lib/libc/tests/tls/dso/ |
| H A D | Makefile | 2 TESTSRC= ${SRCTOP}/contrib/netbsd-tests/lib/libc/tls/${.CURDIR:T} 11 LIBDIR= ${TESTSBASE}/lib/libc/tls
|
| /freebsd-14.2/sys/netinet/ |
| H A D | tcp_ratelimit.c | 1335 struct ktls_session *tls; in tcp_set_pacing_rate() local 1351 tls = NULL; in tcp_set_pacing_rate() 1367 if (rte != NULL && tls != NULL && tls->snd_tag != NULL) { in tcp_set_pacing_rate() 1374 ktls_output_eagain(inp, tls); in tcp_set_pacing_rate() 1401 struct ktls_session *tls = NULL; in tcp_chg_pacing_rate() local 1417 if (tls->mode != TCP_TLS_MODE_IFNET) in tcp_chg_pacing_rate() 1418 tls = NULL; in tcp_chg_pacing_rate() 1419 else if (tls->snd_tag != NULL && in tcp_chg_pacing_rate() 1421 if (!tls->reset_pending) { in tcp_chg_pacing_rate() 1440 tls = NULL; in tcp_chg_pacing_rate() [all …]
|
| H A D | tcp_usrreq.c | 1895 memset(tls, 0, sizeof(*tls)); in copyin_tls_enable() 1897 tls->iv = tls_v0.iv; in copyin_tls_enable() 1898 tls->auth_key = tls_v0.auth_key; in copyin_tls_enable() 1901 tls->iv_len = tls_v0.iv_len; in copyin_tls_enable() 1904 tls->flags = tls_v0.flags; in copyin_tls_enable() 1910 return (sooptcopyin(sopt, tls, sizeof(*tls), sizeof(*tls))); in copyin_tls_enable() 2037 struct tls_enable tls; in tcp_default_ctloutput() local 2268 error = ktls_enable_tx(so, &tls); in tcp_default_ctloutput() 2282 error = sooptcopyin(sopt, &tls, sizeof(tls), in tcp_default_ctloutput() 2283 sizeof(tls)); in tcp_default_ctloutput() [all …]
|
| /freebsd-14.2/sys/compat/linux/ |
| H A D | linux_fork.h | 77 uint64_t tls; member 93 l_ulong tls; member
|
| H A D | linux_fork.c | 210 linux_set_cloned_tls(td2, PTRIN(args->tls)); in linux_clone_proc() 292 linux_set_cloned_tls(newtd, PTRIN(args->tls)); in linux_clone_thread() 367 .tls = args->tls, in linux_clone() 462 ca->tls = uca->tls; in linux_clone3()
|
| /freebsd-14.2/contrib/wpa/src/radius/ |
| H A D | radius_client.c | 1108 bool tls, tls_ready; in radius_client_receive() local 1115 tls = radius->acct_tls; in radius_client_receive() 1125 tls = radius->auth_tls; in radius_client_receive() 1144 if (tls && len == 0) { in radius_client_receive() 1149 if (tls && !tls_ready) { in radius_client_receive() 1536 bool tls = nserv->tls; in radius_change_server() local 1538 if (tls) { in radius_change_server() 1740 if (!tls) in radius_change_server() 1746 if (tls) in radius_change_server() 1754 radius->auth_tls = nserv->tls; in radius_change_server() [all …]
|
| /freebsd-14.2/contrib/ntp/libparse/ |
| H A D | clk_trimtsip.c | 349 …int tls = t->t_gpsutc = (u_short) getshort((unsigned char *)&mb(12)); /* current leap correc… in cvt_trimtsip() local 366 (tlsf != tls) && /* something will change */ in cvt_trimtsip() 370 if (tlsf > tls) in cvt_trimtsip()
|
| /freebsd-14.2/crypto/openssl/doc/man7/ |
| H A D | EVP_CIPHER-NULL.pod | 39 =item "tls-mac" (B<OSSL_CIPHER_PARAM_TLS_MAC>) <octet ptr> 49 =item "tls-mac-size" (B<OSSL_CIPHER_PARAM_TLS_MAC_SIZE>) <unsigned integer>
|
| /freebsd-14.2/contrib/sendmail/src/ |
| H A D | TRACEFLAGS | 113 88,>99 tls.c disable the effect of _FFR_VRFY_TRUSTED_FIRST 116 90,>99 tls.c deliver.c Simulate error for OpenSSL functions related to DANE 124 96 tls.c DHparam info, activate SSL_CTX_set_info_callback(), etc
|