arm64/crypto: AES-ECB/CBC/CTR/XTS using ARMv8 NEON and Crypto Extensions
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 21 Mar 2014 09:19:17 +0000 (10:19 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 5 Jun 2014 15:55:46 +0000 (16:55 +0100)
commit75a566ceb15cab04a1bfb47e8bbd66550fe499e0
treedb8c870bc821f9573d1ae4a442cba85fdc03dda6
parent824a3dc7fd42b5d70209c4813b752e534e0b9bf7
arm64/crypto: AES-ECB/CBC/CTR/XTS using ARMv8 NEON and Crypto Extensions

This adds ARMv8 implementations of AES in ECB, CBC, CTR and XTS modes,
both for ARMv8 with Crypto Extensions and for plain ARMv8 NEON.

The Crypto Extensions version can only run on ARMv8 implementations that
have support for these optional extensions.

The plain NEON version is a table based yet time invariant implementation.
All S-box substitutions are performed in parallel, leveraging the wide range
of ARMv8's tbl/tbx instructions, and the huge NEON register file, which can
comfortably hold the entire S-box and still have room to spare for doing the
actual computations.

The key expansion routines were borrowed from aes_generic.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 49788fe2a128217f78a21ee4edbe6e92e988f222)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/crypto/Kconfig
arch/arm64/crypto/Makefile
arch/arm64/crypto/aes-ce.S [new file with mode: 0644]
arch/arm64/crypto/aes-glue.c [new file with mode: 0644]
arch/arm64/crypto/aes-modes.S [new file with mode: 0644]
arch/arm64/crypto/aes-neon.S [new file with mode: 0644]