Lines Matching refs:lastp
40 cbc_xorblock(uint8_t *lastp, uint8_t *thisp, int blocksize) in cbc_xorblock() argument
47 IS_P2ALIGNED(lastp, sizeof (uint32_t)) && in cbc_xorblock()
52 last32p = (uint32_t *)lastp; in cbc_xorblock()
60 thisp[i] ^= lastp[i]; in cbc_xorblock()
69 uint8_t *lastp; in cbc_encrypt() local
78 lastp = IV; in cbc_encrypt()
81 cbc_xorblock(lastp, thisp, ch->blocklen); in cbc_encrypt()
84 lastp = thisp; in cbc_encrypt()
88 bcopy(lastp, IV, ch->blocklen); in cbc_encrypt()
97 uint8_t *lastp; in cbc_decrypt() local
106 lastp = IV; in cbc_decrypt()
116 cbc_xorblock(lastp, thisp, ch->blocklen); in cbc_decrypt()
119 bcopy(cbcblock, lastp, ch->blocklen); in cbc_decrypt()