Home
last modified time | relevance | path

Searched refs:TLS_HEADER_SIZE (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/net/tls/
Dtls_device.c773 seq += TLS_HEADER_SIZE - 1; in tls_device_rx_resync_new_rec()
869 orig_buf = kmalloc(rxm->full_len + TLS_HEADER_SIZE + in tls_device_reencrypt()
883 rxm->full_len + TLS_HEADER_SIZE + in tls_device_reencrypt()
886 TLS_HEADER_SIZE + TLS_CIPHER_AES_GCM_128_IV_SIZE); in tls_device_reencrypt()
1058 prot->prepend_size = TLS_HEADER_SIZE + nonce_size; in tls_set_device_offload()
Dtls_device_fallback.c54 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()
Dtls_sw.c1467 err = skb_copy_bits(skb, rxm->offset + TLS_HEADER_SIZE, in decrypt_internal()
2052 char header[TLS_HEADER_SIZE + MAX_IV_SIZE]; in tls_read_size()
2099 tls_device_rx_resync_new_rec(strp->sk, data_len + TLS_HEADER_SIZE, in tls_read_size()
2101 return data_len + TLS_HEADER_SIZE; in tls_read_size()
2425 prot->aad_size = TLS_HEADER_SIZE; in tls_set_sw_offload()
2434 prot->prepend_size = TLS_HEADER_SIZE + nonce_size; in tls_set_sw_offload()
/Linux-v5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c1175 CPL_TX_SEC_PDU_IVINSRTOFST_V(TLS_HEADER_SIZE + 1)); in chcr_ktls_xmit_wr_complete()
1179 cipher_start = TLS_HEADER_SIZE + tx_info->iv_size + 1; in chcr_ktls_xmit_wr_complete()
1183 CPL_TX_SEC_PDU_AADSTOP_V(TLS_HEADER_SIZE) | in chcr_ktls_xmit_wr_complete()
1358 (!tls_rec_offset ? TLS_HEADER_SIZE + tx_info->iv_size : 0); in chcr_ktls_xmit_wr_short()
1418 (TLS_HEADER_SIZE + tx_info->iv_size)) / AES_BLOCK_LEN) : 0)); in chcr_ktls_xmit_wr_short()
1841 if (tls_rec_offset + data_len <= (TLS_HEADER_SIZE + tx_info->iv_size)) { in chcr_short_record_handler()
1859 if (tls_rec_offset < (TLS_HEADER_SIZE + tx_info->iv_size)) { in chcr_short_record_handler()
1866 (TLS_HEADER_SIZE + tx_info->iv_size)) in chcr_short_record_handler()
/Linux-v5.10/include/net/
Dtls.h57 #define TLS_HEADER_SIZE 5 macro
58 #define TLS_NONCE_OFFSET TLS_HEADER_SIZE