Lines Matching refs:cipher_desc
887 const struct tls_cipher_desc *cipher_desc;
901 cipher_desc = get_cipher_desc(tls_ctx->crypto_recv.info.cipher_type);
904 orig_buf = kmalloc(rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv,
920 rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv);
921 err = skb_copy_bits(skb, offset, buf, TLS_HEADER_SIZE + cipher_desc->iv);
932 data_len = rxm->full_len - cipher_desc->tag;
1049 const struct tls_cipher_desc *cipher_desc;
1082 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
1083 if (!cipher_desc || !cipher_desc->offloadable) {
1088 iv = crypto_info_iv(crypto_info, cipher_desc);
1089 rec_seq = crypto_info_rec_seq(crypto_info, cipher_desc);
1093 prot->prepend_size = TLS_HEADER_SIZE + cipher_desc->iv;
1094 prot->tag_size = cipher_desc->tag;
1096 prot->iv_size = cipher_desc->iv;
1097 prot->salt_size = cipher_desc->salt;
1098 ctx->tx.iv = kmalloc(cipher_desc->iv + cipher_desc->salt, GFP_KERNEL);
1104 memcpy(ctx->tx.iv + cipher_desc->salt, iv, cipher_desc->iv);
1106 prot->rec_seq_size = cipher_desc->rec_seq;
1107 ctx->tx.rec_seq = kmemdup(rec_seq, cipher_desc->rec_seq, GFP_KERNEL);