crypto: aegis128 - provide a SIMD implementation based on NEON intrinsics
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sun, 11 Aug 2019 22:59:11 +0000 (01:59 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Aug 2019 11:52:15 +0000 (21:52 +1000)
commita4397635afea5d127548d64e0055ed471ef2d5be
tree54304e9e7a7f0d0e9e78f1823c98241ab386fe9a
parentcf3d41adcc3595e7ccfbc9359a5daf39ee07aa8b
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]