crypto: aegis128 - provide a SIMD implementation based on NEON intrinsics
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 3 Jul 2019 08:55:11 +0000 (10:55 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jul 2019 05:03:58 +0000 (15:03 +1000)
commitecc8bc81f2fb3976737ef312f824ba6053aa3590
tree74e2a1c6355d5c46500f9de32c5ddebeed628d5e
parent7cdc0ddbf74a19cecb2f0e9efa2cae9d3c665189
crypto: aegis128 - provide a SIMD implementation based on NEON intrinsics

Provide an accelerated implementation of aegis128 by wiring up the
SIMD hooks in the generic driver to an implementation based on NEON
intrinsics, which can be compiled to both ARM and arm64 code.

This results in a performance of 2.2 cycles per byte on Cortex-A53,
which is a performance increase of ~11x compared to the generic
code.

Reviewed-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/Makefile
crypto/aegis128-neon-inner.c [new file with mode: 0644]
crypto/aegis128-neon.c [new file with mode: 0644]