Lines Matching refs:prepend_size
167 if (offset < prot->prepend_size) in tls_padding_length()
315 skip = prot->prepend_size + msg_pl->sg.size; in tls_clone_plaintext_msg()
452 sge->offset -= prot->prepend_size; in tls_encrypt_done()
453 sge->length += prot->prepend_size; in tls_encrypt_done()
526 sge->offset += prot->prepend_size; in tls_do_encryption()
527 sge->length -= prot->prepend_size; in tls_do_encryption()
547 sge->offset -= prot->prepend_size; in tls_do_encryption()
548 sge->length += prot->prepend_size; in tls_do_encryption()
1476 n_sgin = skb_nsg(skb, rxm->offset + prot->prepend_size, in tls_decrypt_sg()
1477 rxm->full_len - prot->prepend_size); in tls_decrypt_sg()
1558 rxm->offset + prot->prepend_size, in tls_decrypt_sg()
1559 rxm->full_len - prot->prepend_size); in tls_decrypt_sg()
1567 err = skb_to_sgvec(clear_skb, &sgout[1], prot->prepend_size, in tls_decrypt_sg()
1700 off = rxm->offset + prot->prepend_size; in tls_decrypt_device()
1725 rxm->offset += prot->prepend_size; in tls_rx_one_record()
2244 if (strp->stm.offset + prot->prepend_size > skb->len) in tls_rx_msg_size()
2248 if (WARN_ON(prot->prepend_size > sizeof(header))) { in tls_rx_msg_size()
2254 ret = skb_copy_bits(skb, strp->stm.offset, header, prot->prepend_size); in tls_rx_msg_size()
2723 prot->prepend_size = TLS_HEADER_SIZE + nonce_size; in tls_set_sw_offload()
2725 prot->overhead_size = prot->prepend_size + in tls_set_sw_offload()