Lines Matching refs:ivlen
176 int ivlen;
250 /* check if we have proper ivlen information */
251 ivlen = sav->ivlen;
252 if (ivlen < 0) {
253 ipseclog((LOG_ERR, "inproper ivlen in IPv4 ESP input: %s %s\n",
356 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) {
363 if (m->m_len < off + esplen + ivlen) {
364 m = m_pullup(m, off + esplen + ivlen);
387 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) {
456 if (sav->utun_is_keepalive_fn(sav->utun_pcb, &m, nxt, sav->flags, (off + esplen + ivlen))) {
467 if (ipsec4_tunnel_validate(m, off + esplen + ivlen, nxt, sav, &ifamily)) {
481 m_adj(m, off + esplen + ivlen);
606 stripsiz = esplen + ivlen;
736 int ivlen;
800 /* check if we have proper ivlen information */
801 ivlen = sav->ivlen;
802 if (ivlen < 0) {
803 ipseclog((LOG_ERR, "inproper ivlen in IPv6 ESP input: %s %s\n",
904 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) {
912 IP6_EXTHDR_CHECK(m, off, esplen + ivlen, return IPPROTO_DONE); /*XXX*/
914 IP6_EXTHDR_GET(esp, struct esp *, m, off, esplen + ivlen);
936 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) {
971 if (sav->utun_is_keepalive_fn(sav->utun_pcb, &m, nxt, sav->flags, (off + esplen + ivlen))) {
982 if (ipsec6_tunnel_validate(m, off + esplen + ivlen, nxt, sav)) {
995 m_adj(m, off + esplen + ivlen);
1074 stripsiz = esplen + ivlen;