Lines Matching refs:nbytes
283 unsigned int nbytes) in ecb_encrypt() argument
289 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_encrypt()
294 while ((nbytes = walk.nbytes)) { in ecb_encrypt()
296 nbytes & AES_BLOCK_MASK); in ecb_encrypt()
297 nbytes &= AES_BLOCK_SIZE - 1; in ecb_encrypt()
298 err = blkcipher_walk_done(desc, &walk, nbytes); in ecb_encrypt()
307 unsigned int nbytes) in ecb_decrypt() argument
313 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_decrypt()
318 while ((nbytes = walk.nbytes)) { in ecb_decrypt()
320 nbytes & AES_BLOCK_MASK); in ecb_decrypt()
321 nbytes &= AES_BLOCK_SIZE - 1; in ecb_decrypt()
322 err = blkcipher_walk_done(desc, &walk, nbytes); in ecb_decrypt()
353 unsigned int nbytes) in cbc_encrypt() argument
359 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_encrypt()
364 while ((nbytes = walk.nbytes)) { in cbc_encrypt()
366 nbytes & AES_BLOCK_MASK, walk.iv); in cbc_encrypt()
367 nbytes &= AES_BLOCK_SIZE - 1; in cbc_encrypt()
368 err = blkcipher_walk_done(desc, &walk, nbytes); in cbc_encrypt()
377 unsigned int nbytes) in cbc_decrypt() argument
383 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_decrypt()
388 while ((nbytes = walk.nbytes)) { in cbc_decrypt()
390 nbytes & AES_BLOCK_MASK, walk.iv); in cbc_decrypt()
391 nbytes &= AES_BLOCK_SIZE - 1; in cbc_decrypt()
392 err = blkcipher_walk_done(desc, &walk, nbytes); in cbc_decrypt()
429 unsigned int nbytes = walk->nbytes; in ctr_crypt_final() local
432 crypto_xor(keystream, src, nbytes); in ctr_crypt_final()
433 memcpy(dst, keystream, nbytes); in ctr_crypt_final()
439 unsigned int nbytes) in ctr_crypt() argument
445 blkcipher_walk_init(&walk, dst, src, nbytes); in ctr_crypt()
450 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) { in ctr_crypt()
452 nbytes & AES_BLOCK_MASK, walk.iv); in ctr_crypt()
453 nbytes &= AES_BLOCK_SIZE - 1; in ctr_crypt()
454 err = blkcipher_walk_done(desc, &walk, nbytes); in ctr_crypt()
456 if (walk.nbytes) { in ctr_crypt()
522 &desc, req->dst, req->src, req->nbytes); in ablk_encrypt()
543 &desc, req->dst, req->src, req->nbytes); in ablk_decrypt()