]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm64/aes - implement accelerated ESSIV/CBC mode
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 19 Aug 2019 14:17:36 +0000 (17:17 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Aug 2019 08:05:27 +0000 (18:05 +1000)
commita6c3082011a82623045662022f1ee4b47870ef13
tree190cd08276484c02440b781f526b9216b8542e28
parent74d3d661db5517cd119a529119a8afdeefba2c1f
crypto: arm64/aes - implement accelerated ESSIV/CBC mode

Add an accelerated version of the 'essiv(cbc(aes),sha256)' skcipher,
which is used by fscrypt or dm-crypt on systems where CBC mode is
signficantly more performant than XTS mode (e.g., when using a h/w
accelerator which supports the former but not the latter) This avoids
a separate call into the AES cipher for every invocation.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/aes-glue.c
arch/arm64/crypto/aes-modes.S