Lines Matching defs:nbytes
207 unsigned int nbytes, n, k;
221 while ((nbytes = walk.nbytes) != 0) {
223 n = nbytes & ~(AES_BLOCK_SIZE - 1);
227 ret = skcipher_walk_done(&walk, nbytes - k);
320 unsigned int nbytes, n, k;
336 while ((nbytes = walk.nbytes) != 0) {
338 n = nbytes & ~(AES_BLOCK_SIZE - 1);
343 ret = skcipher_walk_done(&walk, nbytes - k);
483 unsigned int keylen, offset, nbytes, n, k;
513 while ((nbytes = walk.nbytes) != 0) {
515 n = nbytes & ~(AES_BLOCK_SIZE - 1);
519 ret = skcipher_walk_done(&walk, nbytes - k);
611 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes)
617 n = (nbytes > PAGE_SIZE) ? PAGE_SIZE : nbytes & ~(AES_BLOCK_SIZE - 1);
632 unsigned int nbytes, n, k;
648 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) {
650 if (nbytes >= 2*AES_BLOCK_SIZE && locked)
651 n = __ctrblk_init(ctrblk, walk.iv, nbytes);
660 ret = skcipher_walk_done(&walk, nbytes - k);
676 * final block may be < AES_BLOCK_SIZE, copy only nbytes
678 if (nbytes) {
680 memcpy(buf, walk.src.virt.addr, nbytes);
692 memcpy(walk.dst.virt.addr, buf, nbytes);
694 ret = skcipher_walk_done(&walk, nbytes);