Searched refs:cipher_sz (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/net/tls/ |
D | tls_device_fallback.c | 58 const struct tls_cipher_size_desc *cipher_sz; in tls_enc_record() local 72 cipher_sz = &tls_cipher_size_desc[prot->cipher_type]; in tls_enc_record() 74 buf_size = TLS_HEADER_SIZE + cipher_sz->iv; in tls_enc_record() 88 len -= cipher_sz->iv; in tls_enc_record() 90 tls_make_aad(aad, len - cipher_sz->tag, (char *)&rcd_sn, buf[0], prot); in tls_enc_record() 92 memcpy(iv + cipher_sz->salt, buf + TLS_HEADER_SIZE, cipher_sz->iv); in tls_enc_record() 103 *in_len += cipher_sz->tag; in tls_enc_record() 124 len -= cipher_sz->tag; in tls_enc_record() 312 const struct tls_cipher_size_desc *cipher_sz = in fill_sg_out() local 319 sg_set_buf(&sg_out[2], dummy_buf, cipher_sz->tag); in fill_sg_out() [all …]
|
D | tls_device.c | 908 const struct tls_cipher_size_desc *cipher_sz; in tls_device_reencrypt() local 922 cipher_sz = &tls_cipher_size_desc[tls_ctx->crypto_recv.info.cipher_type]; in tls_device_reencrypt() 925 orig_buf = kmalloc(rxm->full_len + TLS_HEADER_SIZE + cipher_sz->iv, in tls_device_reencrypt() 941 rxm->full_len + TLS_HEADER_SIZE + cipher_sz->iv); in tls_device_reencrypt() 942 err = skb_copy_bits(skb, offset, buf, TLS_HEADER_SIZE + cipher_sz->iv); in tls_device_reencrypt() 953 data_len = rxm->full_len - cipher_sz->tag; in tls_device_reencrypt() 1076 const struct tls_cipher_size_desc *cipher_sz; in tls_set_device_offload() local 1124 cipher_sz = &tls_cipher_size_desc[crypto_info->cipher_type]; in tls_set_device_offload() 1127 if (cipher_sz->rec_seq > TLS_MAX_REC_SEQ_SIZE) { in tls_set_device_offload() 1134 prot->prepend_size = TLS_HEADER_SIZE + cipher_sz->iv; in tls_set_device_offload() [all …]
|