• T
    eCryptfs: Use the ablkcipher crypto API · 4dfea4f0
    Tyler Hicks 提交于
    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: NTyler Hicks <tyhicks@canonical.com>
    Acked-by: NColin King <colin.king@canonical.com>
    Reviewed-by: NZeev 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>
    4dfea4f0
crypto.c 69.3 KB