Lines Matching refs:cipher_desc
886 const struct tls_cipher_desc *cipher_desc; in tls_device_reencrypt() local
893 cipher_desc = get_cipher_desc(tls_ctx->crypto_recv.info.cipher_type); in tls_device_reencrypt()
894 DEBUG_NET_WARN_ON_ONCE(!cipher_desc || !cipher_desc->offloadable); in tls_device_reencrypt()
897 orig_buf = kmalloc(rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv, in tls_device_reencrypt()
913 rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv); in tls_device_reencrypt()
914 err = skb_copy_bits(skb, offset, buf, TLS_HEADER_SIZE + cipher_desc->iv); in tls_device_reencrypt()
925 data_len = rxm->full_len - cipher_desc->tag; in tls_device_reencrypt()
1066 const struct tls_cipher_desc *cipher_desc; in tls_set_device_offload() local
1097 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_set_device_offload()
1098 if (!cipher_desc || !cipher_desc->offloadable) { in tls_set_device_offload()
1103 rc = init_prot_info(prot, crypto_info, cipher_desc); in tls_set_device_offload()
1107 iv = crypto_info_iv(crypto_info, cipher_desc); in tls_set_device_offload()
1108 rec_seq = crypto_info_rec_seq(crypto_info, cipher_desc); in tls_set_device_offload()
1110 memcpy(ctx->tx.iv + cipher_desc->salt, iv, cipher_desc->iv); in tls_set_device_offload()
1111 memcpy(ctx->tx.rec_seq, rec_seq, cipher_desc->rec_seq); in tls_set_device_offload()