Lines Matching refs:nbytes

90 	unsigned int nbytes;  in ecb_desall_crypt()  local
92 while ((nbytes = walk->nbytes)) { in ecb_desall_crypt()
94 unsigned int n = nbytes & ~(DES_BLOCK_SIZE - 1); in ecb_desall_crypt()
102 nbytes &= DES_BLOCK_SIZE - 1; in ecb_desall_crypt()
103 ret = blkcipher_walk_done(desc, walk, nbytes); in ecb_desall_crypt()
114 unsigned int nbytes = walk->nbytes; in cbc_desall_crypt() local
120 if (!nbytes) in cbc_desall_crypt()
127 unsigned int n = nbytes & ~(DES_BLOCK_SIZE - 1); in cbc_desall_crypt()
135 nbytes &= DES_BLOCK_SIZE - 1; in cbc_desall_crypt()
136 ret = blkcipher_walk_done(desc, walk, nbytes); in cbc_desall_crypt()
137 } while ((nbytes = walk->nbytes)); in cbc_desall_crypt()
146 unsigned int nbytes) in ecb_des_encrypt() argument
151 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des_encrypt()
157 unsigned int nbytes) in ecb_des_decrypt() argument
162 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des_decrypt()
188 unsigned int nbytes) in cbc_des_encrypt() argument
192 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des_encrypt()
198 unsigned int nbytes) in cbc_des_decrypt() argument
202 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des_decrypt()
292 unsigned int nbytes) in ecb_des3_encrypt() argument
297 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des3_encrypt()
303 unsigned int nbytes) in ecb_des3_decrypt() argument
308 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des3_decrypt()
334 unsigned int nbytes) in cbc_des3_encrypt() argument
338 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des3_encrypt()
344 unsigned int nbytes) in cbc_des3_decrypt() argument
348 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des3_decrypt()
373 static unsigned int __ctrblk_init(u8 *ctrptr, unsigned int nbytes) in __ctrblk_init() argument
378 n = (nbytes > PAGE_SIZE) ? PAGE_SIZE : nbytes & ~(DES_BLOCK_SIZE - 1); in __ctrblk_init()
391 unsigned int n, nbytes; in ctr_desall_crypt() local
395 if (!walk->nbytes) in ctr_desall_crypt()
402 while ((nbytes = walk->nbytes) >= DES_BLOCK_SIZE) { in ctr_desall_crypt()
405 while (nbytes >= DES_BLOCK_SIZE) { in ctr_desall_crypt()
407 n = __ctrblk_init(ctrptr, nbytes); in ctr_desall_crypt()
423 nbytes -= n; in ctr_desall_crypt()
425 ret = blkcipher_walk_done(desc, walk, nbytes); in ctr_desall_crypt()
428 if (nbytes) in ctr_desall_crypt()
434 if (!nbytes) in ctr_desall_crypt()
438 if (nbytes) { in ctr_desall_crypt()
445 memcpy(out, buf, nbytes); in ctr_desall_crypt()
455 unsigned int nbytes) in ctr_des_encrypt() argument
460 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des_encrypt()
466 unsigned int nbytes) in ctr_des_decrypt() argument
471 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des_decrypt()
498 unsigned int nbytes) in ctr_des3_encrypt() argument
503 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des3_encrypt()
509 unsigned int nbytes) in ctr_des3_decrypt() argument
514 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des3_decrypt()