Lines Matching refs:ctrptr
627 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes)
632 memcpy(ctrptr, iv, AES_BLOCK_SIZE);
635 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE);
636 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE);
637 ctrptr += AES_BLOCK_SIZE;
646 u8 buf[AES_BLOCK_SIZE], *ctrptr;
668 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv;
670 walk.src.virt.addr, n, ctrptr);
672 if (ctrptr == ctrblk)
673 memcpy(walk.iv, ctrptr + k - AES_BLOCK_SIZE,