Lines Matching refs:cipher_desc
881 const struct tls_cipher_desc *cipher_desc; in tls_device_reencrypt() local
888 cipher_desc = get_cipher_desc(tls_ctx->crypto_recv.info.cipher_type); in tls_device_reencrypt()
889 DEBUG_NET_WARN_ON_ONCE(!cipher_desc || !cipher_desc->offloadable); in tls_device_reencrypt()
892 orig_buf = kmalloc(rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv, in tls_device_reencrypt()
908 rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv); in tls_device_reencrypt()
909 err = skb_copy_bits(skb, offset, buf, TLS_HEADER_SIZE + cipher_desc->iv); in tls_device_reencrypt()
920 data_len = rxm->full_len - cipher_desc->tag; in tls_device_reencrypt()
1061 const struct tls_cipher_desc *cipher_desc; in tls_set_device_offload() local
1092 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_set_device_offload()
1093 if (!cipher_desc || !cipher_desc->offloadable) { in tls_set_device_offload()
1098 rc = init_prot_info(prot, crypto_info, cipher_desc); in tls_set_device_offload()
1102 iv = crypto_info_iv(crypto_info, cipher_desc); in tls_set_device_offload()
1103 rec_seq = crypto_info_rec_seq(crypto_info, cipher_desc); in tls_set_device_offload()
1105 memcpy(ctx->tx.iv + cipher_desc->salt, iv, cipher_desc->iv); in tls_set_device_offload()
1106 memcpy(ctx->tx.rec_seq, rec_seq, cipher_desc->rec_seq); in tls_set_device_offload()