Lines Matching refs:ivlen
125 int ivlen;
188 /* check if we have proper ivlen information */
189 ivlen = sav->ivlen;
190 if (ivlen < 0) {
191 ipseclog((LOG_ERR, "inproper ivlen in IPv4 ESP input: %s %s\n",
293 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) {
300 if (m->m_len < off + esplen + ivlen) {
301 m = m_pullup(m, off + esplen + ivlen);
324 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) {
365 if (ipsec4_tunnel_validate(m, off + esplen + ivlen, nxt, sav, &ifamily)) {
376 m_adj(m, off + esplen + ivlen);
455 stripsiz = esplen + ivlen;
572 int ivlen;
633 /* check if we have proper ivlen information */
634 ivlen = sav->ivlen;
635 if (ivlen < 0) {
636 ipseclog((LOG_ERR, "inproper ivlen in IPv6 ESP input: %s %s\n",
735 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) {
743 IP6_EXTHDR_CHECK(m, off, esplen + ivlen, return IPPROTO_DONE); /*XXX*/
745 IP6_EXTHDR_GET(esp, struct esp *, m, off, esplen + ivlen);
767 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) {
802 if (ipsec6_tunnel_validate(m, off + esplen + ivlen, nxt, sav)) {
812 m_adj(m, off + esplen + ivlen);
864 stripsiz = esplen + ivlen;