Home
last modified time | relevance | path

Searched refs:tls (Results 1 – 25 of 138) sorted by relevance

123456

/freebsd/sys/kern/
H A Duipc_ktls.c111 SYSCTL_NODE(_kern_ipc, OID_AUTO, tls, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
306 ktls_copyin_tls_enable(struct sockopt *sopt, struct tls_enable *tls) in ktls_copyin_tls_enable() argument
316 memset(tls, 0, sizeof(*tls)); in ktls_copyin_tls_enable()
317 tls->cipher_key = tls_v0.cipher_key; in ktls_copyin_tls_enable()
318 tls->iv = tls_v0.iv; in ktls_copyin_tls_enable()
319 tls->auth_key = tls_v0.auth_key; in ktls_copyin_tls_enable()
320 tls->cipher_algorithm = tls_v0.cipher_algorithm; in ktls_copyin_tls_enable()
321 tls->cipher_key_len = tls_v0.cipher_key_len; in ktls_copyin_tls_enable()
322 tls->iv_len = tls_v0.iv_len; in ktls_copyin_tls_enable()
323 tls->auth_algorithm = tls_v0.auth_algorithm; in ktls_copyin_tls_enable()
[all …]
H A Dkern_sendfile.c98 struct ktls_session *tls; member
361 KASSERT(sfio->tls == sfio->m->m_epg_tls, in sendfile_iodone()
364 KASSERT(sfio->tls == NULL, in sendfile_iodone()
386 } else if (sfio->tls != NULL && sfio->tls->mode == TCP_TLS_MODE_SW) { in sendfile_iodone()
681 struct ktls_session *tls; in vn_sendfile() local
700 tls = NULL; in vn_sendfile()
742 tls = ktls_hold(so->so_snd.sb_tls_info); in vn_sendfile()
838 if (tls != NULL) in vn_sendfile()
840 tls->params.max_frame_len, M_EXTPG); in vn_sendfile()
940 sfio->tls = tls; in vn_sendfile()
[all …]
/freebsd/sys/opencrypto/
H A Dktls_ocf.c51 struct ktls_session *tls, struct mbuf *m,
55 int (*recrypt)(struct ktls_session *tls,
60 int (*decrypt)(struct ktls_session *tls,
275 struct ktls_session *tls, struct mbuf *m, struct iovec *outiov, in ktls_ocf_tls_cbc_encrypt() argument
291 os = tls->ocf_session; in ktls_ocf_tls_cbc_encrypt()
295 MPASS(tls->sync_dispatch); in ktls_ocf_tls_cbc_encrypt()
437 ktls_ocf_tls_cbc_decrypt(struct ktls_session *tls, in ktls_ocf_tls_cbc_decrypt() argument
452 os = tls->ocf_session; in ktls_ocf_tls_cbc_decrypt()
467 crp.crp_payload_start = tls->params.tls_hlen; in ktls_ocf_tls_cbc_decrypt()
548 struct ktls_session *tls, struc in ktls_ocf_tls12_aead_encrypt() argument
630 ktls_ocf_tls12_aead_decrypt(struct ktls_session * tls,const struct tls_record_layer * hdr,struct mbuf * m,uint64_t seqno,int * trailer_len) ktls_ocf_tls12_aead_decrypt() argument
727 ktls_ocf_tls12_aead_recrypt(struct ktls_session * tls,const struct tls_record_layer * hdr,struct mbuf * m,uint64_t seqno) ktls_ocf_tls12_aead_recrypt() argument
786 ktls_ocf_tls13_aead_encrypt(struct ktls_ocf_encrypt_state * state,struct ktls_session * tls,struct mbuf * m,struct iovec * outiov,int outiovcnt) ktls_ocf_tls13_aead_encrypt() argument
860 ktls_ocf_tls13_aead_decrypt(struct ktls_session * tls,const struct tls_record_layer * hdr,struct mbuf * m,uint64_t seqno,int * trailer_len) ktls_ocf_tls13_aead_decrypt() argument
914 ktls_ocf_tls13_aead_recrypt(struct ktls_session * tls,const struct tls_record_layer * hdr,struct mbuf * m,uint64_t seqno) ktls_ocf_tls13_aead_recrypt() argument
972 ktls_ocf_free(struct ktls_session * tls) ktls_ocf_free() argument
985 ktls_ocf_try(struct socket * so,struct ktls_session * tls,int direction) ktls_ocf_try() argument
1163 ktls_ocf_encrypt(struct ktls_ocf_encrypt_state * state,struct ktls_session * tls,struct mbuf * m,struct iovec * outiov,int outiovcnt) ktls_ocf_encrypt() argument
1171 ktls_ocf_decrypt(struct ktls_session * tls,const struct tls_record_layer * hdr,struct mbuf * m,uint64_t seqno,int * trailer_len) ktls_ocf_decrypt() argument
1178 ktls_ocf_recrypt(struct ktls_session * tls,const struct tls_record_layer * hdr,struct mbuf * m,uint64_t seqno) ktls_ocf_recrypt() argument
1185 ktls_ocf_recrypt_supported(struct ktls_session * tls) ktls_ocf_recrypt_supported() argument
[all...]
H A Dktls.h50 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/sys/dev/cxgbe/crypto/
H A Dt4_keyctx.c410 t4_tls_key_info_size(const struct ktls_session *tls) in t4_tls_key_info_size() argument
415 tls->params.cipher_key_len; in t4_tls_key_info_size()
416 if (tls->params.cipher_algorithm == CRYPTO_AES_NIST_GCM_16) { in t4_tls_key_info_size()
419 switch (tls->params.auth_algorithm) { in t4_tls_key_info_size()
438 t4_tls_proto_ver(const struct ktls_session *tls) in t4_tls_proto_ver() argument
440 if (tls->params.tls_vminor == TLS_MINOR_VER_ONE) in t4_tls_proto_ver()
447 t4_tls_cipher_mode(const struct ktls_session *tls) in t4_tls_cipher_mode() argument
449 switch (tls->params.cipher_algorithm) { in t4_tls_cipher_mode()
460 t4_tls_auth_mode(const struct ktls_session *tls) in t4_tls_auth_mode() argument
462 switch (tls->params.cipher_algorithm) { in t4_tls_auth_mode()
[all …]
H A Dt6_kern_tls.c104 const struct ktls_session *tls, struct sge_txq *txq);
376 const struct ktls_session *tls; in t6_tls_tag_alloc() local
385 tls = params->tls.tls; in t6_tls_tag_alloc()
388 if (tls->params.tls_vmajor != TLS_MAJOR_VER_ONE || in t6_tls_tag_alloc()
389 tls->params.tls_vminor < TLS_MINOR_VER_ONE || in t6_tls_tag_alloc()
390 tls->params.tls_vminor > TLS_MINOR_VER_TWO) in t6_tls_tag_alloc()
394 switch (tls->params.cipher_algorithm) { in t6_tls_tag_alloc()
397 switch (tls->params.cipher_key_len) { in t6_tls_tag_alloc()
405 switch (tls->params.auth_algorithm) { in t6_tls_tag_alloc()
417 if (tls->params.iv_len != SALT_SIZE) in t6_tls_tag_alloc()
[all …]
/freebsd/tools/regression/tls/ttls3/
H A DMakefile7 tls-lib: elftls.S
12 tls-test-lib: tls-lib tls-test-lib.c
13 gcc -c -o tls-test.o ${.CURDIR}/tls-test-lib.c
14 ld $(LDFLAGS) tls-test.o libtls.so.1 -rpath=${.OBJDIR} -soname libtls-test.so.1 -o libtls-test.so.1
16 ttls3: tls-test-lib tls-test.c
17 gcc $(CFLAGS) -rdynamic -o ttls3 ${.CURDIR}/tls-test.c
/freebsd/crypto/heimdal/base/
H A Dheimbase.c394 struct ar_tls *tls = ptr; in ar_tls_delete() local
395 if (tls->head) in ar_tls_delete()
396 heim_release(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()
451 HEIMDAL_MUTEX_lock(&tls->tls_mutex); in autorel_dealloc()
452 if (tls->current != ptr) in autorel_dealloc()
455 if (tls->current != tls->head) in autorel_dealloc()
[all …]
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_tls.c76 return (sc->tt.tls && sc->cryptocaps & FW_CAPS_CONFIG_TLSKEYS); in can_tls_offload()
82 struct tls_ofld_info *tls_ofld = &toep->tls; in tls_tx_key()
127 struct tls_ofld_info *tls_ofld = &toep->tls; in clear_tls_keyid()
141 get_tp_plen_max(struct ktls_session *tls) in get_tp_plen_max() argument
145 return (tls->params.max_frame_len <= 8192 ? plen : FC_TP_PLEN_MAX); in get_tp_plen_max()
150 tls_program_key_id(struct toepcb *toep, struct ktls_session *tls, in tls_program_key_id() argument
153 struct tls_ofld_info *tls_ofld = &toep->tls; in tls_program_key_id()
184 t4_write_tlskey_wr(tls, direction, toep->tid, F_FW_WR_COMPL, keyid, in tls_program_key_id()
191 t4_tls_key_ctx(tls, direction, kctx); in tls_program_key_id()
207 tls_alloc_ktls(struct toepcb *toep, struct ktls_session *tls, in argument
[all...]
/freebsd/sys/sys/
H A Dktls.h220 void ktls_cleanup_tls_enable(struct tls_enable *tls);
221 int ktls_copyin_tls_enable(struct sockopt *sopt, struct tls_enable *tls);
227 void ktls_destroy(struct ktls_session *tls);
228 void ktls_frame(struct mbuf *m, struct ktls_session *tls, int *enqueue_cnt,
236 int ktls_modify_txrtlmt(struct ktls_session *tls, uint64_t max_pacing_rate);
238 int ktls_output_eagain(struct inpcb *inp, struct ktls_session *tls);
240 bool ktls_permit_empty_frames(struct ktls_session *tls);
245 ktls_hold(struct ktls_session *tls) in ktls_hold() argument
248 if (tls != NULL) in ktls_hold()
249 refcount_acquire(&tls->refcount); in ktls_hold()
[all …]
/freebsd/lib/libc/gen/
H A Dtls.c68 void _rtld_free_tls(void *tls, size_t tcbsize, size_t tcbalign);
70 void __libc_free_tls(void *tls, size_t tcbsize, size_t tcbalign);
205 Elf_Addr **tls; in __libc_free_tls() local
207 tls = (Elf_Addr **)tcb; in __libc_free_tls()
208 dtv = tls[0]; in __libc_free_tls()
237 char *tls_block, *tls; in __libc_allocate_tls() local
266 tls = (char *)tcb + TLS_TCB_SIZE + post_size; in __libc_allocate_tls()
275 dtv[2] = (Elf_Addr)(tls + TLS_DTV_OFFSET); in __libc_allocate_tls()
286 dtv[2] = (Elf_Addr)(tls + TLS_DTV_OFFSET); in __libc_allocate_tls()
289 memcpy(tls, libc_tls_init, libc_tls_init_size); in __libc_allocate_tls()
[all …]
/freebsd/sys/arm/include/
H A Dpcpu.h109 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/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_hw_tls.c97 tags[i] = uma_zalloc(priv->tls.zone, M_WAITOK); in mlx5e_prealloc_tags()
100 uma_zfree(priv->tls.zone, tags[i]); in mlx5e_prealloc_tags()
124 ptag->tls = &priv->tls; in mlx5e_tls_tag_import()
150 ptls = ptag->tls; in mlx5e_tls_tag_release()
151 priv = container_of(ptls, struct mlx5e_priv, tls); in mlx5e_tls_tag_release()
179 uma_zfree(ptag->tls->zone, ptag); in mlx5e_tls_tag_zfree()
186 struct mlx5e_tls *ptls = &priv->tls; in mlx5e_max_tag_proc()
196 if (max_tags > priv->tls.max_resources || max_tags == 0) in mlx5e_max_tag_proc()
206 struct mlx5e_tls *ptls = &priv->tls; in mlx5e_tls_init()
240 if (ptls->zone_max > priv->tls.max_resources) in mlx5e_tls_init()
[all …]
H A Den_hw_tls.h34 counter_u64_add((tag)->tls->stats.field, num)
48 struct mlx5e_tls *tls; member
/freebsd/contrib/unbound/util/
H A Dconfiglexer.lex247 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) }
255 tls-cert-bundle{COLON} { YDVAR(1, VAR_TLS_CERT_BUNDLE) }
256 tls-win-cert{COLON} { YDVAR(1, VAR_TLS_WIN_CERT) }
257 tls-system-cert{COLON} { YDVAR(1, VAR_TLS_WIN_CERT) }
259 additional-tls-port{COLON} { YDVAR(1, VAR_TLS_ADDITIONAL_PORT) }
260 tls-additional-ports{COLON} { YDVAR(1, VAR_TLS_ADDITIONAL_PORT) }
261 tls-additional-port{COLON} { YDVAR(1, VAR_TLS_ADDITIONAL_PORT) }
[all …]
/freebsd/sys/netinet/
H A Dtcp_ratelimit.c1341 struct ktls_session *tls; in tcp_set_pacing_rate() local
1357 tls = NULL; in tcp_set_pacing_rate()
1359 tls = tptosocket(tp)->so_snd.sb_tls_info; in tcp_set_pacing_rate()
1362 tls->mode != TCP_TLS_MODE_IFNET) { in tcp_set_pacing_rate()
1373 if (rte != NULL && tls != NULL && tls->snd_tag != NULL) { in tcp_set_pacing_rate()
1379 MPASS(tls->snd_tag->sw->type == IF_SND_TAG_TYPE_TLS); in tcp_set_pacing_rate()
1380 ktls_output_eagain(inp, tls); in tcp_set_pacing_rate()
1407 struct ktls_session *tls = NULL; in tcp_chg_pacing_rate() local
1422 tls = tptosocket(tp)->so_snd.sb_tls_info; in tcp_chg_pacing_rate()
1423 if (tls->mode != TCP_TLS_MODE_IFNET) in tcp_chg_pacing_rate()
[all …]
/freebsd/lib/libc/tests/tls_dso/
H A DMakefile6 LIBDIR= ${TESTSBASE}/lib/libc/tls
7 SHLIBDIR= ${TESTSBASE}/lib/libc/tls
/freebsd/lib/libc/tests/tls/dso/
H A DMakefile1 TESTSRC= ${SRCTOP}/contrib/netbsd-tests/lib/libc/tls/${.CURDIR:T}
10 LIBDIR= ${TESTSBASE}/lib/libc/tls
/freebsd/sys/compat/linux/
H A Dlinux_fork.h77 uint64_t tls; member
93 l_ulong tls; member
H A Dlinux_fork.c210 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()
365 .tls = args->tls, in linux_clone()
460 ca->tls = uca->tls; in linux_clone3()
/freebsd/contrib/wpa/src/radius/
H A Dradius_client.c795 if (radius->conf->auth_server->tls) in radius_close_auth_socket()
810 if (radius->conf->acct_server->tls) in radius_close_acct_socket()
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()
1632 if (tls && fcntl(sel_sock, F_SETFL, O_NONBLOCK) != 0) { in radius_change_server()
[all …]
/freebsd/tests/sys/kern/
H A Dsocket_accf.c155 ATF_TC_WITHOUT_HEAD(tls);
156 ATF_TC_BODY(tls, tc) in ATF_TC_BODY() argument
247 ATF_TP_ADD_TC(tp, tls); in ATF_TP_ADD_TCS()
/freebsd/contrib/ntp/libparse/
H A Dclk_trimtsip.c349 int tls = t->t_gpsutc = (u_short) getshort((unsigned char *)&mb(12)); /* current leap correction (GPS-UTC) */ in cvt_trimtsip() local
366 (tlsf != tls) && /* something will change */ in cvt_trimtsip()
370 if (tlsf > tls) in cvt_trimtsip()
/freebsd/crypto/openssl/doc/man7/
H A DEVP_CIPHER-NULL.pod39 =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>
H A Dprovider-base.pod542 =item "tls-group-name" (B<OSSL_CAPABILITY_TLS_GROUP_NAME>) <UTF8 string>
545 L<https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-8>.
547 =item "tls-group-name-internal" (B<OSSL_CAPABILITY_TLS_GROUP_NAME_INTERNAL>) <UTF8 string>
550 "tls-group-name", but does not have to be.
552 =item "tls-group-id" (B<OSSL_CAPABILITY_TLS_GROUP_ID>) <unsigned integer>
556 =item "tls-group-alg" (B<OSSL_CAPABILITY_TLS_GROUP_ALG>) <UTF8 string>
564 name given via "tls-group-name-internal" above will be passed via
567 =item "tls-group-sec-bits" (B<OSSL_CAPABILITY_TLS_GROUP_SECURITY_BITS>) <unsigned integer>
573 =item "tls-group-is-kem" (B<OSSL_CAPABILITY_TLS_GROUP_IS_KEM>) <unsigned integer>
596 =item "tls-min-tls" (B<OSSL_CAPABILITY_TLS_GROUP_MIN_TLS>) <integer>
[all …]

123456