Searched refs:TLS_HEADER_SIZE (Results 1 - 10 of 10) sorted by relevance
/kernel/linux/linux-6.6/net/tls/ |
H A D | tls_device_fallback.c | 57 unsigned char buf[TLS_HEADER_SIZE + MAX_IV_SIZE]; in tls_enc_record() 74 buf_size = TLS_HEADER_SIZE + cipher_desc->iv; in tls_enc_record() 92 memcpy(iv + cipher_desc->salt, buf + TLS_HEADER_SIZE, cipher_desc->iv); in tls_enc_record()
|
H A D | tls_device.c | 465 /* TLS_HEADER_SIZE is not counted as part of the TLS record, and in tls_push_data() 795 seq += TLS_HEADER_SIZE - 1; in tls_device_rx_resync_new_rec() 904 orig_buf = kmalloc(rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv, in tls_device_reencrypt() 920 rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv); in tls_device_reencrypt() 921 err = skb_copy_bits(skb, offset, buf, TLS_HEADER_SIZE + cipher_desc->iv); in tls_device_reencrypt() 1093 prot->prepend_size = TLS_HEADER_SIZE + cipher_desc->iv; in tls_set_device_offload()
|
H A D | tls_sw.c | 1546 err = skb_copy_bits(skb, rxm->offset + TLS_HEADER_SIZE, in tls_decrypt_sg() 2360 char header[TLS_HEADER_SIZE + MAX_IV_SIZE]; in tls_rx_msg_size() 2406 tls_device_rx_resync_new_rec(strp->sk, data_len + TLS_HEADER_SIZE, in tls_rx_msg_size() 2408 return data_len + TLS_HEADER_SIZE; in tls_rx_msg_size() 2712 prot->aad_size = TLS_HEADER_SIZE; in tls_set_sw_offload() 2727 prot->prepend_size = TLS_HEADER_SIZE + nonce_size; in tls_set_sw_offload()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | tls.h | 57 #define TLS_HEADER_SIZE 5 macro 58 #define TLS_NONCE_OFFSET TLS_HEADER_SIZE
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 1189 CPL_TX_SEC_PDU_IVINSRTOFST_V(TLS_HEADER_SIZE + 1)); in chcr_ktls_xmit_wr_complete() 1193 cipher_start = TLS_HEADER_SIZE + tx_info->iv_size + 1; in chcr_ktls_xmit_wr_complete() 1197 CPL_TX_SEC_PDU_AADSTOP_V(TLS_HEADER_SIZE) | in chcr_ktls_xmit_wr_complete() 1372 (!tls_rec_offset ? TLS_HEADER_SIZE + tx_info->iv_size : 0); in chcr_ktls_xmit_wr_short() 1432 (TLS_HEADER_SIZE + tx_info->iv_size)) / AES_BLOCK_LEN) : 0)); in chcr_ktls_xmit_wr_short() 1813 if (tls_rec_offset + data_len <= (TLS_HEADER_SIZE + tx_info->iv_size)) { in chcr_short_record_handler() 1831 if (tls_rec_offset < (TLS_HEADER_SIZE + tx_info->iv_size)) { in chcr_short_record_handler() 1838 (TLS_HEADER_SIZE + tx_info->iv_size)) in chcr_short_record_handler()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 1183 CPL_TX_SEC_PDU_IVINSRTOFST_V(TLS_HEADER_SIZE + 1)); in chcr_ktls_xmit_wr_complete() 1187 cipher_start = TLS_HEADER_SIZE + tx_info->iv_size + 1; in chcr_ktls_xmit_wr_complete() 1191 CPL_TX_SEC_PDU_AADSTOP_V(TLS_HEADER_SIZE) | in chcr_ktls_xmit_wr_complete() 1366 (!tls_rec_offset ? TLS_HEADER_SIZE + tx_info->iv_size : 0); in chcr_ktls_xmit_wr_short() 1426 (TLS_HEADER_SIZE + tx_info->iv_size)) / AES_BLOCK_LEN) : 0)); in chcr_ktls_xmit_wr_short() 1806 if (tls_rec_offset + data_len <= (TLS_HEADER_SIZE + tx_info->iv_size)) { in chcr_short_record_handler() 1824 if (tls_rec_offset < (TLS_HEADER_SIZE + tx_info->iv_size)) { in chcr_short_record_handler() 1831 (TLS_HEADER_SIZE + tx_info->iv_size)) in chcr_short_record_handler()
|
/kernel/linux/linux-5.10/net/tls/ |
H A D | tls_device.c | 453 /* TLS_HEADER_SIZE is not counted as part of the TLS record, and in tls_push_data() 778 seq += TLS_HEADER_SIZE - 1; in tls_device_rx_resync_new_rec() 874 orig_buf = kmalloc(rxm->full_len + TLS_HEADER_SIZE + in tls_device_reencrypt() 888 rxm->full_len + TLS_HEADER_SIZE + in tls_device_reencrypt() 891 TLS_HEADER_SIZE + TLS_CIPHER_AES_GCM_128_IV_SIZE); in tls_device_reencrypt() 1074 prot->prepend_size = TLS_HEADER_SIZE + nonce_size; in tls_set_device_offload()
|
H A D | tls_device_fallback.c | 54 unsigned char buf[TLS_HEADER_SIZE + TLS_CIPHER_AES_GCM_128_IV_SIZE]; in tls_enc_record() 79 memcpy(iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, buf + TLS_HEADER_SIZE, in tls_enc_record()
|
H A D | tls_sw.c | 1479 err = skb_copy_bits(skb, rxm->offset + TLS_HEADER_SIZE, in decrypt_internal() 2061 char header[TLS_HEADER_SIZE + MAX_IV_SIZE]; in tls_read_size() 2108 tls_device_rx_resync_new_rec(strp->sk, data_len + TLS_HEADER_SIZE, in tls_read_size() 2110 return data_len + TLS_HEADER_SIZE; in tls_read_size() 2442 prot->aad_size = TLS_HEADER_SIZE; in tls_set_sw_offload() 2451 prot->prepend_size = TLS_HEADER_SIZE + nonce_size; in tls_set_sw_offload()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | tls.h | 57 #define TLS_HEADER_SIZE 5 macro 58 #define TLS_NONCE_OFFSET TLS_HEADER_SIZE
|
Completed in 22 milliseconds