Lines Matching refs:nbytes
102 unsigned int nbytes = walk->nbytes; in p8_aes_ctr_final() local
112 crypto_xor(keystream, src, nbytes); in p8_aes_ctr_final()
113 memcpy(dst, keystream, nbytes); in p8_aes_ctr_final()
119 struct scatterlist *src, unsigned int nbytes) in p8_aes_ctr_crypt() argument
134 nbytes); in p8_aes_ctr_crypt()
136 blkcipher_walk_init(&walk, dst, src, nbytes); in p8_aes_ctr_crypt()
138 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) { in p8_aes_ctr_crypt()
144 (nbytes & in p8_aes_ctr_crypt()
154 inc = (nbytes & AES_BLOCK_MASK) / AES_BLOCK_SIZE; in p8_aes_ctr_crypt()
159 nbytes &= AES_BLOCK_SIZE - 1; in p8_aes_ctr_crypt()
160 ret = blkcipher_walk_done(desc, &walk, nbytes); in p8_aes_ctr_crypt()
162 if (walk.nbytes) { in p8_aes_ctr_crypt()