Lines Matching defs:nbytes
94 unsigned int nbytes, n;
98 while ((nbytes = walk.nbytes) != 0) {
100 n = nbytes & ~(DES_BLOCK_SIZE - 1);
103 ret = skcipher_walk_done(&walk, nbytes - n);
113 unsigned int nbytes, n;
125 while ((nbytes = walk.nbytes) != 0) {
127 n = nbytes & ~(DES_BLOCK_SIZE - 1);
131 ret = skcipher_walk_done(&walk, nbytes - n);
303 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes)
308 n = (nbytes > PAGE_SIZE) ? PAGE_SIZE : nbytes & ~(DES_BLOCK_SIZE - 1);
324 unsigned int n, nbytes;
330 while ((nbytes = walk.nbytes) >= DES_BLOCK_SIZE) {
332 if (nbytes >= 2*DES_BLOCK_SIZE && locked)
333 n = __ctrblk_init(ctrblk, walk.iv, nbytes);
341 ret = skcipher_walk_done(&walk, nbytes - n);
345 /* final block may be < DES_BLOCK_SIZE, copy only nbytes */
346 if (nbytes) {
349 memcpy(walk.dst.virt.addr, buf, nbytes);