]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
eCryptfs: Use the ablkcipher crypto API
authorTyler Hicks <tyhicks@canonical.com>
Thu, 9 May 2013 23:55:07 +0000 (16:55 -0700)
committerTyler Hicks <tyhicks@canonical.com>
Thu, 9 May 2013 23:55:07 +0000 (16:55 -0700)
commit4dfea4f0d7f13309d2ee112a2584210cae4320c6
tree53af474217e7072070f260f4284d988b75456332
parentc1be5a5b1b355d40e6cf79cc979eb66dafa24ad1
eCryptfs: Use the ablkcipher crypto API

Make the switch from the blkcipher kernel crypto interface to the
ablkcipher interface.

encrypt_scatterlist() and decrypt_scatterlist() now use the ablkcipher
interface but, from the eCryptfs standpoint, still treat the crypto
operation as a synchronous operation. They submit the async request and
then wait until the operation is finished before they return. Most of
the changes are contained inside those two functions.

Despite waiting for the completion of the crypto operation, the
ablkcipher interface provides performance increases in most cases when
used on AES-NI capable hardware.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Reviewed-by: Zeev Zilberman <zeev@annapurnaLabs.com>
Cc: Dustin Kirkland <dustin.kirkland@gazzang.com>
Cc: Tim Chen <tim.c.chen@intel.com>
Cc: Ying Huang <ying.huang@intel.com>
Cc: Thieu Le <thieule@google.com>
Cc: Li Wang <dragonylffly@163.com>
Cc: Jarkko Sakkinen <jarkko.sakkinen@iki.fi>
fs/ecryptfs/crypto.c
fs/ecryptfs/ecryptfs_kernel.h