[openwrt/openwrt] kernel: crypto: add SHA512 ARM64 ASM optimized module
LEDE Commits
lede-commits at lists.infradead.org
Wed Mar 6 13:24:46 PST 2024
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5b1d6d4607e4a062319225dd8930541cd1974ebe
commit 5b1d6d4607e4a062319225dd8930541cd1974ebe
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Wed Mar 6 21:54:07 2024 +0100
kernel: crypto: add SHA512 ARM64 ASM optimized module
Kernel has an ASM optimized version of SHA512 that was ported from
OpenSSL, so lets package it as it provides significant perfomance
improvement compared to the generic implementation.
There is a Cryptographic Extension based version as well, but that relies
on ARMv8.2 ISA which I am not aware any of the OpenWrt supported SoC-s use.
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
package/kernel/linux/modules/crypto.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index f7ba0a7b29..55988ba92c 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -1038,6 +1038,7 @@ define KernelPackage/crypto-sha512
KCONFIG:= \
CONFIG_CRYPTO_SHA512 \
CONFIG_CRYPTO_SHA512_ARM \
+ CONFIG_CRYPTO_SHA512_ARM64 \
CONFIG_CRYPTO_SHA512_OCTEON \
CONFIG_CRYPTO_SHA512_SSSE3
FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko
@@ -1050,6 +1051,11 @@ define KernelPackage/crypto-sha512/arm
AUTOLOAD+=$(call AutoLoad,09,sha512-arm)
endef
+define KernelPackage/crypto-sha512/aarch64
+ FILES+=$(LINUX_DIR)/arch/arm64/crypto/sha512-arm64.ko
+ AUTOLOAD+=$(call AutoLoad,09,sha512-arm64)
+endef
+
KernelPackage/crypto-sha512/imx=$(KernelPackage/crypto-sha512/arm)
KernelPackage/crypto-sha512/ipq40xx=$(KernelPackage/crypto-sha512/arm)
KernelPackage/crypto-sha512/mvebu/cortexa9=$(KernelPackage/crypto-sha512/arm)
More information about the lede-commits
mailing list