Lines Matching refs:tls_len
449 uint16_t tls_len, tls_comp_len;
459 tls_len = ntohs(hdr->tls_length);
460 if (tls_len % AES_BLOCK_LEN != 0 ||
461 tls_len < AES_BLOCK_LEN + roundup2(os->mac_len + 1, AES_BLOCK_LEN))
468 crp.crp_payload_length = tls_len - AES_BLOCK_LEN;
481 m_copydata(m, sizeof(*hdr) + tls_len - 1, 1, &pad);
483 if (AES_BLOCK_LEN + *trailer_len > tls_len)
485 error = m_apply(m, sizeof(*hdr) + tls_len - (pad + 1), pad + 1,
491 tls_comp_len = tls_len - (AES_BLOCK_LEN + *trailer_len);
518 uio.uio_resid = sizeof(ad) + tls_len - AES_BLOCK_LEN;
638 uint16_t tls_comp_len, tls_len;
643 tls_len = ntohs(hdr->tls_length);
644 if (tls_len + sizeof(*hdr) < tls->params.tls_hlen +
667 tls_comp_len = tls_len -
670 tls_comp_len = tls_len - POLY1305_HASH_LEN;
736 uint16_t tls_len;
741 tls_len = ntohs(hdr->tls_length);
742 if (tls_len < sizeof(uint64_t) + AES_GMAC_HASH_LEN)
755 payload_len = tls_len - (AES_GMAC_HASH_LEN + sizeof(uint64_t));
869 uint16_t tls_len;
876 tls_len = ntohs(hdr->tls_length);
877 if (tls_len < tag_len + 1)
895 crp.crp_payload_length = tls_len - tag_len;
923 uint16_t tls_len;
928 tls_len = ntohs(hdr->tls_length);
929 if (tls_len < AES_GMAC_HASH_LEN + 1)
942 payload_len = tls_len - AES_GMAC_HASH_LEN;