Searched refs:tls_len (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/opencrypto/ |
H A D | ktls_ocf.c | 449 uint16_t tls_len, tls_comp_len; in ktls_ocf_tls_cbc_decrypt() local 459 tls_len = ntohs(hdr->tls_length); in ktls_ocf_tls_cbc_decrypt() 460 if (tls_len % AES_BLOCK_LEN != 0 || in ktls_ocf_tls_cbc_decrypt() 461 tls_len < AES_BLOCK_LEN + roundup2(os->mac_len + 1, AES_BLOCK_LEN)) in ktls_ocf_tls_cbc_decrypt() 468 crp.crp_payload_length = tls_len - AES_BLOCK_LEN; in ktls_ocf_tls_cbc_decrypt() 481 m_copydata(m, sizeof(*hdr) + tls_len - 1, 1, &pad); in ktls_ocf_tls_cbc_decrypt() 483 if (AES_BLOCK_LEN + *trailer_len > tls_len) in ktls_ocf_tls_cbc_decrypt() 485 error = m_apply(m, sizeof(*hdr) + tls_len - (pad + 1), pad + 1, in ktls_ocf_tls_cbc_decrypt() 491 tls_comp_len = tls_len - (AES_BLOCK_LEN + *trailer_len); in ktls_ocf_tls_cbc_decrypt() 518 uio.uio_resid = sizeof(ad) + tls_len in ktls_ocf_tls_cbc_decrypt() 638 uint16_t tls_comp_len, tls_len; ktls_ocf_tls12_aead_decrypt() local 736 uint16_t tls_len; ktls_ocf_tls12_aead_recrypt() local 869 uint16_t tls_len; ktls_ocf_tls13_aead_decrypt() local 923 uint16_t tls_len; ktls_ocf_tls13_aead_recrypt() local [all...] |
/freebsd/sys/kern/ |
H A D | uipc_ktls.c | 2094 uint16_t tls_len; in ktls_frame() local 2117 tls_len = m->m_len; in ktls_frame() 2144 delta = (tls_len + tls->params.tls_tlen) & (bs - 1); in ktls_frame() 2199 if (__predict_false(tls_len == 0)) { in ktls_frame() 2373 tls13_find_record_type(struct ktls_session *tls, struct mbuf *m, int tls_len, in tls13_find_record_type() argument 2380 digest_start = tls_len - *trailer_len; in tls13_find_record_type() 2401 *trailer_len = tls_len - last_offset + 1; in tls13_find_record_type() 2447 ktls_resync_ifnet(struct socket *so, uint32_t tls_len, uint64_t tls_rcd_num) in ktls_resync_ifnet() argument 2474 tp->rcv_nxt - so->so_rcv.sb_tlscc - tls_len; in ktls_resync_ifnet() 2475 params.tls_rx.tls_rec_length = tls_len; in ktls_resync_ifnet() [all …]
|