Lines Matching defs:nbytes
217 unsigned int nbytes, n, k;
231 while ((nbytes = walk.nbytes) != 0) {
233 n = nbytes & ~(AES_BLOCK_SIZE - 1);
237 ret = skcipher_walk_done(&walk, nbytes - k);
332 unsigned int nbytes, n, k;
348 while ((nbytes = walk.nbytes) != 0) {
350 n = nbytes & ~(AES_BLOCK_SIZE - 1);
355 ret = skcipher_walk_done(&walk, nbytes - k);
498 unsigned int keylen, offset, nbytes, n, k;
528 while ((nbytes = walk.nbytes) != 0) {
530 n = nbytes & ~(AES_BLOCK_SIZE - 1);
534 ret = skcipher_walk_done(&walk, nbytes - k);
628 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes)
634 n = (nbytes > PAGE_SIZE) ? PAGE_SIZE : nbytes & ~(AES_BLOCK_SIZE - 1);
649 unsigned int nbytes, n, k;
665 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) {
667 if (nbytes >= 2*AES_BLOCK_SIZE && locked)
668 n = __ctrblk_init(ctrblk, walk.iv, nbytes);
677 ret = skcipher_walk_done(&walk, nbytes - k);
693 * final block may be < AES_BLOCK_SIZE, copy only nbytes
695 if (nbytes) {
697 memcpy(buf, walk.src.virt.addr, nbytes);
709 memcpy(walk.dst.virt.addr, buf, nbytes);
711 ret = skcipher_walk_done(&walk, nbytes);