Lines Matching refs:nbytes
97 unsigned int nbytes = walk->nbytes; in p8_aes_ctr_final() local
105 crypto_xor(keystream, src, nbytes); in p8_aes_ctr_final()
106 memcpy(dst, keystream, nbytes); in p8_aes_ctr_final()
112 unsigned int nbytes) in p8_aes_ctr_crypt() argument
125 ret = crypto_blkcipher_encrypt(&fallback_desc, dst, src, nbytes); in p8_aes_ctr_crypt()
127 blkcipher_walk_init(&walk, dst, src, nbytes); in p8_aes_ctr_crypt()
129 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) { in p8_aes_ctr_crypt()
134 (nbytes & AES_BLOCK_MASK)/AES_BLOCK_SIZE, &ctx->enc_key, walk.iv); in p8_aes_ctr_crypt()
138 nbytes &= AES_BLOCK_SIZE - 1; in p8_aes_ctr_crypt()
139 ret = blkcipher_walk_done(desc, &walk, nbytes); in p8_aes_ctr_crypt()
141 if (walk.nbytes) { in p8_aes_ctr_crypt()