summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-07-24 12:28:19 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-08-04 03:27:25 +0200
commit0d149ce67d4409d7ff13c2d08c3474f3319e1b7e (patch)
treeb2c91109014d2e376f4931aceb9194443dc7a73c /arch/arm64
parentcrypto: arm64/ghash - add NEON accelerated fallback for 64-bit PMULL (diff)
downloadlinux-0d149ce67d4409d7ff13c2d08c3474f3319e1b7e.tar.xz
linux-0d149ce67d4409d7ff13c2d08c3474f3319e1b7e.zip
crypto: arm/aes - avoid expanded lookup tables in the final round
For the final round, avoid the expanded and padded lookup tables exported by the generic AES driver. Instead, for encryption, we can perform byte loads from the same table we used for the inner rounds, which will still be hot in the caches. For decryption, use the inverse AES Sbox directly, which is 4x smaller than the inverse lookup table exported by the generic driver. This should significantly reduce the Dcache footprint of our code, which makes the code more robust against timing attacks. It does not introduce any additional module dependencies, given that we already rely on the core AES module for the shared key expansion routines. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm64')
0 files changed, 0 insertions, 0 deletions