Lines Matching defs:prot
289 struct tls_prot_info *prot = &ctx->prot_info;
301 tls_advance_record_sn(sk, prot, &ctx->tx);
323 struct tls_prot_info *prot = &ctx->prot_info;
332 if (unlikely(pfrag->size - pfrag->offset < prot->tag_size) &&
333 !skb_page_frag_refill(prot->tag_size, pfrag, sk->sk_allocation)) {
338 tls_append_frag(record, pfrag, prot->tag_size);
342 record->len - prot->overhead_size,
430 struct tls_prot_info *prot = &tls_ctx->prot_info;
469 prot->prepend_size;
471 rc = tls_do_allocation(sk, ctx, pfrag, prot->prepend_size);
489 } else if (record->len > prot->prepend_size) {
777 struct tls_prot_info *prot;
787 prot = &tls_ctx->prot_info;
789 memcpy(rcd_sn, tls_ctx->rx.rec_seq, prot->rec_seq_size);
818 tls_bigint_increment(rcd_sn, prot->rec_seq_size);
872 struct tls_prot_info *prot = &tls_ctx->prot_info;
875 memcpy(rcd_sn, tls_ctx->rx.rec_seq, prot->rec_seq_size);
876 tls_bigint_increment(rcd_sn, prot->rec_seq_size);
1048 struct tls_prot_info *prot = &tls_ctx->prot_info;
1091 prot->version = crypto_info->version;
1092 prot->cipher_type = crypto_info->cipher_type;
1093 prot->prepend_size = TLS_HEADER_SIZE + cipher_desc->iv;
1094 prot->tag_size = cipher_desc->tag;
1095 prot->overhead_size = prot->prepend_size + prot->tag_size;
1096 prot->iv_size = cipher_desc->iv;
1097 prot->salt_size = cipher_desc->salt;
1106 prot->rec_seq_size = cipher_desc->rec_seq;