eCryptfs: Combine encrypt_scatterlist() and decrypt_scatterlist()
authorTyler Hicks <tyhicks@canonical.com>
Sat, 6 Apr 2013 06:26:22 +0000 (23:26 -0700)
committerTyler Hicks <tyhicks@canonical.com>
Sat, 8 Jun 2013 00:28:26 +0000 (17:28 -0700)
These two functions are identical except for a debug printk and whether
they call crypto_ablkcipher_encrypt() or crypto_ablkcipher_decrypt(), so
they can be safely merged if the caller can indicate if encryption or
decryption should occur.

The debug printk is useless so it is removed.

Two new #define's are created to indicate if an ENCRYPT or DECRYPT
operation is desired.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>

No differences found