Lines Matching refs:nbytes
217 unsigned int nbytes) in ecb_encrypt() argument
223 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_encrypt()
228 while ((nbytes = walk.nbytes)) { in ecb_encrypt()
229 unsigned int block_len = nbytes & AES_BLOCK_MASK; in ecb_encrypt()
237 nbytes &= AES_BLOCK_SIZE - 1; in ecb_encrypt()
238 err = blkcipher_walk_done(desc, &walk, nbytes); in ecb_encrypt()
246 unsigned int nbytes) in ecb_decrypt() argument
253 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_decrypt()
259 while ((nbytes = walk.nbytes)) { in ecb_decrypt()
260 unsigned int block_len = nbytes & AES_BLOCK_MASK; in ecb_decrypt()
267 nbytes &= AES_BLOCK_SIZE - 1; in ecb_decrypt()
268 err = blkcipher_walk_done(desc, &walk, nbytes); in ecb_decrypt()
277 unsigned int nbytes) in cbc_encrypt() argument
283 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_encrypt()
288 while ((nbytes = walk.nbytes)) { in cbc_encrypt()
289 unsigned int block_len = nbytes & AES_BLOCK_MASK; in cbc_encrypt()
297 nbytes &= AES_BLOCK_SIZE - 1; in cbc_encrypt()
298 err = blkcipher_walk_done(desc, &walk, nbytes); in cbc_encrypt()
306 unsigned int nbytes) in cbc_decrypt() argument
313 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_decrypt()
319 while ((nbytes = walk.nbytes)) { in cbc_decrypt()
320 unsigned int block_len = nbytes & AES_BLOCK_MASK; in cbc_decrypt()
328 nbytes &= AES_BLOCK_SIZE - 1; in cbc_decrypt()
329 err = blkcipher_walk_done(desc, &walk, nbytes); in cbc_decrypt()
343 unsigned int nbytes = walk->nbytes; in ctr_crypt_final() local
347 crypto_xor((u8 *) keystream, src, nbytes); in ctr_crypt_final()
348 memcpy(dst, keystream, nbytes); in ctr_crypt_final()
354 unsigned int nbytes) in ctr_crypt() argument
360 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_crypt()
365 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) { in ctr_crypt()
366 unsigned int block_len = nbytes & AES_BLOCK_MASK; in ctr_crypt()
374 nbytes &= AES_BLOCK_SIZE - 1; in ctr_crypt()
375 err = blkcipher_walk_done(desc, &walk, nbytes); in ctr_crypt()
377 if (walk.nbytes) { in ctr_crypt()