Lines Matching defs:iv
545 u_int8_t iv[MAXIVLEN] __attribute__((aligned(4))), *ivp;
554 if (ivlen != sav->ivlen || ivlen > sizeof(iv)) {
565 if (blocklen > sizeof(iv)) {
596 /* grab iv */
597 m_copydata(m, ivoff, ivlen, (caddr_t) iv);
599 /* extend iv */
603 bcopy(&iv[0], &iv[4], 4);
604 iv[4] ^= 0xff;
605 iv[5] ^= 0xff;
606 iv[6] ^= 0xff;
607 iv[7] ^= 0xff;
722 p = ivp ? ivp : iv;
727 /* next iv */
729 bcopy(sbuf, iv, blocklen);
750 bzero(iv, sizeof(iv));
772 u_int8_t iv[MAXIVLEN] __attribute__((aligned(4))), *ivp;
781 if (ivlen != sav->ivlen || ivlen > sizeof(iv)) {
792 if (blocklen > sizeof(iv)) {
823 /* put iv into the packet. if we are in derived mode, use seqno. */
825 m_copydata(m, ivoff, ivlen, (caddr_t) iv);
827 bcopy(sav->iv, iv, ivlen);
829 m_copyback(m, ivoff, ivlen, (caddr_t) iv);
832 /* extend iv */
836 bcopy(&iv[0], &iv[4], 4);
837 iv[4] ^= 0xff;
838 iv[5] ^= 0xff;
839 iv[6] ^= 0xff;
840 iv[7] ^= 0xff;
938 p = ivp ? ivp : iv;
960 /* next iv */
979 bzero(iv, sizeof(iv));