Lines Matching refs:ivlen
175 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);
612 stripsiz = esplen + ivlen;
759 int ivlen;
824 /* check if we have proper ivlen information */
825 ivlen = sav->ivlen;
826 if (ivlen < 0) {
827 ipseclog((LOG_ERR, "inproper ivlen in IPv6 ESP input: %s %s\n",
928 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) {
936 IP6_EXTHDR_CHECK(m, off, esplen + ivlen, return IPPROTO_DONE); /*XXX*/
938 IP6_EXTHDR_GET(esp, struct esp *, m, off, esplen + ivlen);
960 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) {
995 if (sav->utun_is_keepalive_fn(sav->utun_pcb, &m, nxt, sav->flags, (off + esplen + ivlen))) {
1006 if (ipsec6_tunnel_validate(m, off + esplen + ivlen, nxt, sav)) {
1019 m_adj(m, off + esplen + ivlen);
1109 stripsiz = esplen + ivlen;