Lines Matching refs:ctrptr
372 static unsigned int __ctrblk_init(u8 *ctrptr, unsigned int nbytes) in __ctrblk_init() argument
379 memcpy(ctrptr + i, ctrptr + i - DES_BLOCK_SIZE, DES_BLOCK_SIZE); in __ctrblk_init()
380 crypto_inc(ctrptr + i, DES_BLOCK_SIZE); in __ctrblk_init()
392 u8 *out, *in, *ctrptr = ctrbuf; in ctr_desall_crypt() local
398 ctrptr = ctrblk; in ctr_desall_crypt()
400 memcpy(ctrptr, walk->iv, DES_BLOCK_SIZE); in ctr_desall_crypt()
405 if (ctrptr == ctrblk) in ctr_desall_crypt()
406 n = __ctrblk_init(ctrptr, nbytes); in ctr_desall_crypt()
410 n, ctrptr); in ctr_desall_crypt()
412 if (ctrptr == ctrblk) in ctr_desall_crypt()
417 memcpy(ctrptr, ctrptr + n - DES_BLOCK_SIZE, in ctr_desall_crypt()
419 crypto_inc(ctrptr, DES_BLOCK_SIZE); in ctr_desall_crypt()
426 if (ctrptr == ctrblk) { in ctr_desall_crypt()
428 memcpy(ctrbuf, ctrptr, DES_BLOCK_SIZE); in ctr_desall_crypt()
430 memcpy(walk->iv, ctrptr, DES_BLOCK_SIZE); in ctr_desall_crypt()
434 memcpy(walk->iv, ctrptr, DES_BLOCK_SIZE); in ctr_desall_crypt()