• Ard Biesheuvel's avatar
    crypto: aesni - implement support for cts(cbc(aes)) · ddf169a9
    Ard Biesheuvel authored
    Follow the same approach as the arm64 driver for implementing a version
    of AES-NI in CBC mode that supports ciphertext stealing. This results in
    a ~2x speed increase for relatively short inputs (less than 256 bytes),
    which is relevant given that AES-CBC with ciphertext stealing is used
    for filename encryption in the fscrypt layer. For larger inputs, the
    speedup is still significant (~25% on decryption, ~6% on encryption)
    
    Tested-by: Eric Biggers <ebiggers@google.com> # x86_64
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    ddf169a9
aesni-intel_asm.S 79.2 KB