Lines Matching refs:extendsiz
258 size_t extendsiz; in esp_output() local
614 extendsiz = padbound - (plen % padbound); in esp_output()
615 if (extendsiz == 1) { in esp_output()
616 extendsiz = padbound + 1; in esp_output()
631 if (randpadmax < 0 || plen + extendsiz >= randpadmax) { in esp_output()
638 pad = (randpadmax - plen + extendsiz) / padbound; in esp_output()
655 if (extendsiz + pad <= MLEN && extendsiz + pad < 256) { in esp_output()
656 extendsiz += pad; in esp_output()
670 if (!(n->m_flags & M_EXT) && extendsiz < M_TRAILINGSPACE(n)) { in esp_output()
672 n->m_len += (int)extendsiz; in esp_output()
673 m->m_pkthdr.len += extendsiz; in esp_output()
686 VERIFY(extendsiz <= INT_MAX); in esp_output()
687 nn->m_len = (int)extendsiz; in esp_output()
691 m->m_pkthdr.len += extendsiz; in esp_output()
695 key_randomfill(extend, extendsiz); in esp_output()
698 bzero(extend, extendsiz); in esp_output()
701 for (i = 0; i < extendsiz; i++) { in esp_output()
731 VERIFY((extendsiz - 2) <= UINT8_MAX); in esp_output()
732 esptail->esp_padlen = (u_int8_t)(extendsiz - 2); in esp_output()
738 if (extendsiz < (IP_MAXPACKET - ntohs(ip->ip_len))) { in esp_output()
739 ip->ip_len = htons(ntohs(ip->ip_len) + (u_short)extendsiz); in esp_output()
773 if ((*algo->encrypt)(m, espoff, plen + extendsiz, sav, algo, ivlen)) { in esp_output()
898 VERIFY((plen + siz + extendsiz + esphlen) <= UINT16_MAX); in esp_output()
899 udp->uh_ulen = htons((u_int16_t)(plen + siz + extendsiz + esphlen)); in esp_output()