aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2014-07-29 12:14:14 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-08-02 03:51:47 -0400
commit604682551aa511e00e57706ad5d9fcf955ee0323 (patch)
treeed97c0b46b271b45dd02209482b7ea81d594728d /crypto/Kconfig
parent1f8673d31a999ed7e20d9f66fcdad39e39f6b276 (diff)
ARM: 8119/1: crypto: sha1: add ARM NEON implementation
This patch adds ARM NEON assembly implementation of SHA-1 algorithm. tcrypt benchmark results on Cortex-A8, sha1-arm-asm vs sha1-neon-asm: block-size bytes/update old-vs-new 16 16 1.04x 64 16 1.02x 64 64 1.05x 256 16 1.03x 256 64 1.04x 256 256 1.30x 1024 16 1.03x 1024 256 1.36x 1024 1024 1.52x 2048 16 1.03x 2048 256 1.39x 2048 1024 1.55x 2048 2048 1.59x 4096 16 1.03x 4096 256 1.40x 4096 1024 1.57x 4096 4096 1.62x 8192 16 1.03x 8192 256 1.40x 8192 1024 1.58x 8192 4096 1.63x 8192 8192 1.63x Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r--crypto/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index ce4012a58781..a379dada495c 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -540,6 +540,17 @@ config CRYPTO_SHA1_ARM
540 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented 540 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
541 using optimized ARM assembler. 541 using optimized ARM assembler.
542 542
543config CRYPTO_SHA1_ARM_NEON
544 tristate "SHA1 digest algorithm (ARM NEON)"
545 depends on ARM && KERNEL_MODE_NEON && !CPU_BIG_ENDIAN
546 select CRYPTO_SHA1_ARM
547 select CRYPTO_SHA1
548 select CRYPTO_HASH
549 help
550 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
551 using optimized ARM NEON assembly, when NEON instructions are
552 available.
553
543config CRYPTO_SHA1_PPC 554config CRYPTO_SHA1_PPC
544 tristate "SHA1 digest algorithm (powerpc)" 555 tristate "SHA1 digest algorithm (powerpc)"
545 depends on PPC 556 depends on PPC