Skip to content

Commit

Permalink
kernel: crypto: add SHA1 ARM64 CE optimized module
Browse files Browse the repository at this point in the history
Kernel has optimized version of SHA1 using the ARMv8 Crypto Extensions,
so lets package it.

Use it by default for qualcommax as it uses Cortex-A53 core and has ARMv8
CE extensions present.

Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
robimarko committed Mar 6, 2024
1 parent d40d64f commit 9425064
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package/kernel/linux/modules/crypto.mk
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ define KernelPackage/crypto-sha1
CONFIG_CRYPTO_SHA1 \
CONFIG_CRYPTO_SHA1_ARM \
CONFIG_CRYPTO_SHA1_ARM_NEON \
CONFIG_CRYPTO_SHA1_ARM64_CE \
CONFIG_CRYPTO_SHA1_OCTEON \
CONFIG_CRYPTO_SHA1_PPC_SPE \
CONFIG_CRYPTO_SHA1_SSSE3
Expand All @@ -927,9 +928,15 @@ define KernelPackage/crypto-sha1/arm-neon
AUTOLOAD+=$(call AutoLoad,09,sha1-arm-neon)
endef

define KernelPackage/crypto-sha1/aarch64-ce
FILES+=$(LINUX_DIR)/arch/arm64/crypto/sha1-ce.ko
AUTOLOAD+=$(call AutoLoad,09,sha1-ce)
endef

KernelPackage/crypto-sha1/imx=$(KernelPackage/crypto-sha1/arm-neon)
KernelPackage/crypto-sha1/ipq40xx=$(KernelPackage/crypto-sha1/arm-neon)
KernelPackage/crypto-sha1/mvebu/cortexa9=$(KernelPackage/crypto-sha1/arm-neon)
KernelPackage/crypto-sha1/qualcommax=$(KernelPackage/crypto-sha1/aarch64-ce)

define KernelPackage/crypto-sha1/octeon
FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha1.ko
Expand Down

0 comments on commit 9425064

Please sign in to comment.