Lines Matching refs:nbytes
100 unsigned int nbytes = walk->nbytes; in p8_aes_ctr_final() local
108 crypto_xor(keystream, src, nbytes); in p8_aes_ctr_final()
109 memcpy(dst, keystream, nbytes); in p8_aes_ctr_final()
115 struct scatterlist *src, unsigned int nbytes) in p8_aes_ctr_crypt() argument
130 nbytes); in p8_aes_ctr_crypt()
132 blkcipher_walk_init(&walk, dst, src, nbytes); in p8_aes_ctr_crypt()
134 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) { in p8_aes_ctr_crypt()
140 (nbytes & in p8_aes_ctr_crypt()
148 inc = (nbytes & AES_BLOCK_MASK) / AES_BLOCK_SIZE; in p8_aes_ctr_crypt()
153 nbytes &= AES_BLOCK_SIZE - 1; in p8_aes_ctr_crypt()
154 ret = blkcipher_walk_done(desc, &walk, nbytes); in p8_aes_ctr_crypt()
156 if (walk.nbytes) { in p8_aes_ctr_crypt()