summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2016-09-04 13:41:02 +0300
committerJussi Kivilinna <jussi.kivilinna@iki.fi>2016-09-05 20:08:48 +0300
commit2d4bbc0ad62c54bbdef77799f9db82d344b7219e (patch)
tree120501d244ba29690c2f62188334a3993dc7d61e /configure.ac
parente4eb03f56683317c908cb55be727832810dc8c72 (diff)
downloadlibgcrypt-2d4bbc0ad62c54bbdef77799f9db82d344b7219e.tar.gz
Add ARMv8/AArch64 Crypto Extension implementation of SHA-256
* cipher/Makefile.am: Add 'sha256-armv8-aarch64-ce.S'. * cipher/sha256-armv8-aarch64-ce.S: New. * cipher/sha256-armv8-aarch32-ce.S: Move round macros to correct section. * cipher/sha256.c (USE_ARM_CE): Enable on ARMv8/AArch64. * configure.ac: Add 'sha256-armv8-aarch64-ce.lo'; Swap places for 'sha512-arm.lo' and 'sha256-armv8-aarch32-ce.lo'. -- Benchmark on Cortex-A53 (1152 Mhz): Before: | nanosecs/byte mebibytes/sec cycles/byte SHA256 | 13.34 ns/B 71.51 MiB/s 15.36 c/B After (7.2x faster): | nanosecs/byte mebibytes/sec cycles/byte SHA256 | 1.85 ns/B 516.3 MiB/s 2.13 c/B Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index a617992d..9049db7d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2292,7 +2292,11 @@ if test "$found" = "1" ; then
;;
arm*-*-*)
# Build with the assembly implementation
- GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-arm.lo"
+ GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-armv8-aarch32-ce.lo"
+ ;;
+ aarch64-*-*)
+ # Build with the assembly implementation
+ GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-armv8-aarch64-ce.lo"
;;
esac
fi
@@ -2311,7 +2315,7 @@ if test "$found" = "1" ; then
;;
arm*-*-*)
# Build with the assembly implementation
- GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-armv8-aarch32-ce.lo"
+ GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-arm.lo"
;;
esac