Lines Matching refs:nbytes
88 unsigned int nbytes, n; in ecb_desall_crypt() local
92 while ((nbytes = walk->nbytes) >= DES_BLOCK_SIZE) { in ecb_desall_crypt()
94 n = nbytes & ~(DES_BLOCK_SIZE - 1); in ecb_desall_crypt()
97 ret = blkcipher_walk_done(desc, walk, nbytes - n); in ecb_desall_crypt()
106 unsigned int nbytes, n; in cbc_desall_crypt() local
116 while ((nbytes = walk->nbytes) >= DES_BLOCK_SIZE) { in cbc_desall_crypt()
118 n = nbytes & ~(DES_BLOCK_SIZE - 1); in cbc_desall_crypt()
121 ret = blkcipher_walk_done(desc, walk, nbytes - n); in cbc_desall_crypt()
129 unsigned int nbytes) in ecb_des_encrypt() argument
133 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des_encrypt()
139 unsigned int nbytes) in ecb_des_decrypt() argument
143 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des_decrypt()
169 unsigned int nbytes) in cbc_des_encrypt() argument
173 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des_encrypt()
179 unsigned int nbytes) in cbc_des_decrypt() argument
183 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des_decrypt()
286 unsigned int nbytes) in ecb_des3_encrypt() argument
290 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des3_encrypt()
296 unsigned int nbytes) in ecb_des3_decrypt() argument
300 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_des3_decrypt()
327 unsigned int nbytes) in cbc_des3_encrypt() argument
331 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des3_encrypt()
337 unsigned int nbytes) in cbc_des3_decrypt() argument
341 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_des3_decrypt()
367 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes) in __ctrblk_init() argument
372 n = (nbytes > PAGE_SIZE) ? PAGE_SIZE : nbytes & ~(DES_BLOCK_SIZE - 1); in __ctrblk_init()
387 unsigned int n, nbytes; in ctr_desall_crypt() local
393 while ((nbytes = walk->nbytes) >= DES_BLOCK_SIZE) { in ctr_desall_crypt()
395 if (nbytes >= 2*DES_BLOCK_SIZE && locked) in ctr_desall_crypt()
396 n = __ctrblk_init(ctrblk, walk->iv, nbytes); in ctr_desall_crypt()
404 ret = blkcipher_walk_done(desc, walk, nbytes - n); in ctr_desall_crypt()
409 if (nbytes) { in ctr_desall_crypt()
412 memcpy(walk->dst.virt.addr, buf, nbytes); in ctr_desall_crypt()
421 unsigned int nbytes) in ctr_des_encrypt() argument
425 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des_encrypt()
431 unsigned int nbytes) in ctr_des_decrypt() argument
435 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des_decrypt()
462 unsigned int nbytes) in ctr_des3_encrypt() argument
466 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des3_encrypt()
472 unsigned int nbytes) in ctr_des3_decrypt() argument
476 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_des3_decrypt()