Lines Matching defs:iv
688 u_int8_t iv[MAXIVLEN], *ivp;
697 if (ivlen != sav->ivlen || ivlen > sizeof(iv)) {
708 if (blocklen > sizeof(iv)) {
739 /* grab iv */
740 m_copydata(m, ivoff, ivlen, iv);
742 /* extend iv */
746 bcopy(&iv[0], &iv[4], 4);
747 iv[4] ^= 0xff;
748 iv[5] ^= 0xff;
749 iv[6] ^= 0xff;
750 iv[7] ^= 0xff;
840 p = ivp ? ivp : iv;
845 /* next iv */
847 bcopy(sbuf, iv, blocklen);
868 bzero(iv, sizeof(iv));
888 u_int8_t iv[MAXIVLEN], *ivp;
897 if (ivlen != sav->ivlen || ivlen > sizeof(iv)) {
908 if (blocklen > sizeof(iv)) {
939 /* put iv into the packet. if we are in derived mode, use seqno. */
941 m_copydata(m, ivoff, ivlen, iv);
943 bcopy(sav->iv, iv, ivlen);
945 m_copyback(m, ivoff, ivlen, iv);
948 /* extend iv */
952 bcopy(&iv[0], &iv[4], 4);
953 iv[4] ^= 0xff;
954 iv[5] ^= 0xff;
955 iv[6] ^= 0xff;
956 iv[7] ^= 0xff;
1043 p = ivp ? ivp : iv;
1051 /* next iv */
1070 bzero(iv, sizeof(iv));