Lines Matching refs:nbytes
89 unsigned int nbytes; in ecb_desall_crypt() local
91 while ((nbytes = walk->nbytes)) { in ecb_desall_crypt()
93 unsigned int n = nbytes & ~(DES_BLOCK_SIZE - 1); in ecb_desall_crypt()
101 nbytes &= DES_BLOCK_SIZE - 1; in ecb_desall_crypt()
102 ret = blkcipher_walk_done(desc, walk, nbytes); in ecb_desall_crypt()
113 unsigned int nbytes = walk->nbytes; in cbc_desall_crypt() local
119 if (!nbytes) in cbc_desall_crypt()
126 unsigned int n = nbytes & ~(DES_BLOCK_SIZE - 1); in cbc_desall_crypt()
134 nbytes &= DES_BLOCK_SIZE - 1; in cbc_desall_crypt()
135 ret = blkcipher_walk_done(desc, walk, nbytes); in cbc_desall_crypt()
136 } while ((nbytes = walk->nbytes)); in cbc_desall_crypt()
145 unsigned int nbytes) in ecb_des_encrypt() argument
150 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des_encrypt()
156 unsigned int nbytes) in ecb_des_decrypt() argument
161 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des_decrypt()
187 unsigned int nbytes) in cbc_des_encrypt() argument
191 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des_encrypt()
197 unsigned int nbytes) in cbc_des_decrypt() argument
201 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des_decrypt()
291 unsigned int nbytes) in ecb_des3_encrypt() argument
296 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des3_encrypt()
302 unsigned int nbytes) in ecb_des3_decrypt() argument
307 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des3_decrypt()
333 unsigned int nbytes) in cbc_des3_encrypt() argument
337 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des3_encrypt()
343 unsigned int nbytes) in cbc_des3_decrypt() argument
347 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des3_decrypt()
372 static unsigned int __ctrblk_init(u8 *ctrptr, unsigned int nbytes) in __ctrblk_init() argument
377 n = (nbytes > PAGE_SIZE) ? PAGE_SIZE : nbytes & ~(DES_BLOCK_SIZE - 1); in __ctrblk_init()
390 unsigned int n, nbytes; in ctr_desall_crypt() local
394 if (!walk->nbytes) in ctr_desall_crypt()
401 while ((nbytes = walk->nbytes) >= DES_BLOCK_SIZE) { in ctr_desall_crypt()
404 while (nbytes >= DES_BLOCK_SIZE) { in ctr_desall_crypt()
406 n = __ctrblk_init(ctrptr, nbytes); in ctr_desall_crypt()
422 nbytes -= n; in ctr_desall_crypt()
424 ret = blkcipher_walk_done(desc, walk, nbytes); in ctr_desall_crypt()
427 if (nbytes) in ctr_desall_crypt()
433 if (!nbytes) in ctr_desall_crypt()
437 if (nbytes) { in ctr_desall_crypt()
444 memcpy(out, buf, nbytes); in ctr_desall_crypt()
454 unsigned int nbytes) in ctr_des_encrypt() argument
459 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des_encrypt()
465 unsigned int nbytes) in ctr_des_decrypt() argument
470 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des_decrypt()
497 unsigned int nbytes) in ctr_des3_encrypt() argument
502 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des3_encrypt()
508 unsigned int nbytes) in ctr_des3_decrypt() argument
513 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des3_decrypt()