Lines Matching refs:ctrptr
373 static unsigned int __ctrblk_init(u8 *ctrptr, unsigned int nbytes) in __ctrblk_init() argument
380 memcpy(ctrptr + i, ctrptr + i - DES_BLOCK_SIZE, DES_BLOCK_SIZE); in __ctrblk_init()
381 crypto_inc(ctrptr + i, DES_BLOCK_SIZE); in __ctrblk_init()
393 u8 *out, *in, *ctrptr = ctrbuf; in ctr_desall_crypt() local
399 ctrptr = ctrblk; in ctr_desall_crypt()
401 memcpy(ctrptr, walk->iv, DES_BLOCK_SIZE); in ctr_desall_crypt()
406 if (ctrptr == ctrblk) in ctr_desall_crypt()
407 n = __ctrblk_init(ctrptr, nbytes); in ctr_desall_crypt()
411 n, ctrptr); in ctr_desall_crypt()
413 if (ctrptr == ctrblk) in ctr_desall_crypt()
418 memcpy(ctrptr, ctrptr + n - DES_BLOCK_SIZE, in ctr_desall_crypt()
420 crypto_inc(ctrptr, DES_BLOCK_SIZE); in ctr_desall_crypt()
427 if (ctrptr == ctrblk) { in ctr_desall_crypt()
429 memcpy(ctrbuf, ctrptr, DES_BLOCK_SIZE); in ctr_desall_crypt()
431 memcpy(walk->iv, ctrptr, DES_BLOCK_SIZE); in ctr_desall_crypt()
435 memcpy(walk->iv, ctrptr, DES_BLOCK_SIZE); in ctr_desall_crypt()