aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv8/Kconfig
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2022-06-01 20:26:29 +0200
committerTom Rini <trini@konsulko.com>2022-06-27 13:36:28 -0400
commit084d8e6bf9ea6673e94f798c5c3793893eb783ab (patch)
tree2cdf17a0a20a3ab25752dfaacbcc77661d164411 /arch/arm/cpu/armv8/Kconfig
parent4e883522bad7f1fed4ce0e35d26080fe29a972a5 (diff)
downloadu-boot-084d8e6bf9ea6673e94f798c5c3793893eb783ab.zip
u-boot-084d8e6bf9ea6673e94f798c5c3793893eb783ab.tar.gz
u-boot-084d8e6bf9ea6673e94f798c5c3793893eb783ab.tar.bz2
armv8 SHA-1 using ARMv8 Crypto Extensions:
This patch adds support for the SHA-1 Secure Hash Algorithm for CPUs that have support for the SHA-1 part of the ARM v8 Crypto Extensions. It greatly improves sha-1 based operations, about 10x faster on iMX8M evk board. ~12ms vs ~165ms for a 20MiB kernel sha-1 verification. asm implementation is a simplified version of the Linux version (from Ard Biesheuvel). Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Diffstat (limited to 'arch/arm/cpu/armv8/Kconfig')
-rw-r--r--arch/arm/cpu/armv8/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/Kconfig b/arch/arm/cpu/armv8/Kconfig
index 09f3f50..1768e67 100644
--- a/arch/arm/cpu/armv8/Kconfig
+++ b/arch/arm/cpu/armv8/Kconfig
@@ -185,4 +185,15 @@ config ARMV8_EA_EL3_FIRST
Exception handling at all exception levels for External Abort and
SError interrupt exception are taken in EL3.
+menuconfig ARMV8_CRYPTO
+ bool "ARM64 Accelerated Cryptographic Algorithms"
+
+if ARMV8_CRYPTO
+
+config ARMV8_CE_SHA1
+ bool "SHA-1 digest algorithm (ARMv8 Crypto Extensions)"
+ default y if SHA1
+
+endif
+
endif