crypto: arm/ghash-ce - implement support for 4-way aggregation
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 23 Aug 2018 14:48:51 +0000 (15:48 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 4 Sep 2018 03:37:04 +0000 (11:37 +0800)
commit00227e3a1d0855e9777cf53c52b842503435e22b
treebb7737ca90746dc304e7c5cfae17e396e0912b75
parentab8085c130edd65be0d95cc95c28b51c4c6faf9d
crypto: arm/ghash-ce - implement support for 4-way aggregation

Speed up the GHASH algorithm based on 64-bit polynomial multiplication
by adding support for 4-way aggregation. This improves throughput by
~85% on Cortex-A53, from 1.7 cycles per byte to 0.9 cycles per byte.

When combined with AES into GCM, throughput improves by ~25%, from
3.8 cycles per byte to 3.0 cycles per byte.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/Kconfig
arch/arm/crypto/ghash-ce-core.S
arch/arm/crypto/ghash-ce-glue.c