Lines Matching refs:nbytes

185 	unsigned int nbytes;  in ppc_ecb_crypt()  local
190 while ((nbytes = walk.nbytes) != 0) { in ppc_ecb_crypt()
191 nbytes = min_t(unsigned int, nbytes, MAX_BYTES); in ppc_ecb_crypt()
192 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_ecb_crypt()
197 ctx->key_enc, ctx->rounds, nbytes); in ppc_ecb_crypt()
200 ctx->key_dec, ctx->rounds, nbytes); in ppc_ecb_crypt()
203 err = skcipher_walk_done(&walk, walk.nbytes - nbytes); in ppc_ecb_crypt()
224 unsigned int nbytes; in ppc_cbc_crypt() local
229 while ((nbytes = walk.nbytes) != 0) { in ppc_cbc_crypt()
230 nbytes = min_t(unsigned int, nbytes, MAX_BYTES); in ppc_cbc_crypt()
231 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_cbc_crypt()
236 ctx->key_enc, ctx->rounds, nbytes, in ppc_cbc_crypt()
240 ctx->key_dec, ctx->rounds, nbytes, in ppc_cbc_crypt()
244 err = skcipher_walk_done(&walk, walk.nbytes - nbytes); in ppc_cbc_crypt()
265 unsigned int nbytes; in ppc_ctr_crypt() local
270 while ((nbytes = walk.nbytes) != 0) { in ppc_ctr_crypt()
271 nbytes = min_t(unsigned int, nbytes, MAX_BYTES); in ppc_ctr_crypt()
272 if (nbytes < walk.total) in ppc_ctr_crypt()
273 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_ctr_crypt()
277 ctx->key_enc, ctx->rounds, nbytes, walk.iv); in ppc_ctr_crypt()
280 err = skcipher_walk_done(&walk, walk.nbytes - nbytes); in ppc_ctr_crypt()
291 unsigned int nbytes; in ppc_xts_crypt() local
298 while ((nbytes = walk.nbytes) != 0) { in ppc_xts_crypt()
299 nbytes = min_t(unsigned int, nbytes, MAX_BYTES); in ppc_xts_crypt()
300 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_xts_crypt()
305 ctx->key_enc, ctx->rounds, nbytes, in ppc_xts_crypt()
309 ctx->key_dec, ctx->rounds, nbytes, in ppc_xts_crypt()
314 err = skcipher_walk_done(&walk, walk.nbytes - nbytes); in ppc_xts_crypt()