Lines Matching refs:nbytes
344 unsigned int nbytes) in ecb_aes_encrypt() argument
353 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_aes_encrypt()
357 while ((nbytes = walk.nbytes)) { in ecb_aes_encrypt()
360 nbytes / AES_BLOCK_SIZE); in ecb_aes_encrypt()
361 nbytes &= AES_BLOCK_SIZE - 1; in ecb_aes_encrypt()
362 err = blkcipher_walk_done(desc, &walk, nbytes); in ecb_aes_encrypt()
373 unsigned int nbytes) in ecb_aes_decrypt() argument
382 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_aes_decrypt()
386 while ((nbytes = walk.nbytes)) { in ecb_aes_decrypt()
389 nbytes / AES_BLOCK_SIZE); in ecb_aes_decrypt()
390 nbytes &= AES_BLOCK_SIZE - 1; in ecb_aes_decrypt()
391 err = blkcipher_walk_done(desc, &walk, nbytes); in ecb_aes_decrypt()
424 unsigned int nbytes) in cbc_aes_encrypt() argument
433 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_aes_encrypt()
437 while ((nbytes = walk.nbytes)) { in cbc_aes_encrypt()
441 nbytes / AES_BLOCK_SIZE); in cbc_aes_encrypt()
443 nbytes &= AES_BLOCK_SIZE - 1; in cbc_aes_encrypt()
444 err = blkcipher_walk_done(desc, &walk, nbytes); in cbc_aes_encrypt()
455 unsigned int nbytes) in cbc_aes_decrypt() argument
464 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_aes_decrypt()
468 while ((nbytes = walk.nbytes)) { in cbc_aes_decrypt()
471 nbytes / AES_BLOCK_SIZE); in cbc_aes_decrypt()
472 nbytes &= AES_BLOCK_SIZE - 1; in cbc_aes_decrypt()
473 err = blkcipher_walk_done(desc, &walk, nbytes); in cbc_aes_decrypt()