Lines Matching defs:cipher_desc
883 const struct tls_cipher_desc *cipher_desc;
890 cipher_desc = get_cipher_desc(tls_ctx->crypto_recv.info.cipher_type);
891 DEBUG_NET_WARN_ON_ONCE(!cipher_desc || !cipher_desc->offloadable);
894 orig_buf = kmalloc(rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv,
910 rxm->full_len + TLS_HEADER_SIZE + cipher_desc->iv);
911 err = skb_copy_bits(skb, offset, buf, TLS_HEADER_SIZE + cipher_desc->iv);
922 data_len = rxm->full_len - cipher_desc->tag;
1063 const struct tls_cipher_desc *cipher_desc;
1094 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
1095 if (!cipher_desc || !cipher_desc->offloadable) {
1100 rc = init_prot_info(prot, crypto_info, cipher_desc);
1104 iv = crypto_info_iv(crypto_info, cipher_desc);
1105 rec_seq = crypto_info_rec_seq(crypto_info, cipher_desc);
1107 memcpy(ctx->tx.iv + cipher_desc->salt, iv, cipher_desc->iv);
1108 memcpy(ctx->tx.rec_seq, rec_seq, cipher_desc->rec_seq);