aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2024-03-05 20:15:55 +0100
committerRobert Marko <robimarko@gmail.com>2024-03-05 20:23:46 +0100
commit3e6f64d443f476a6e936de4f36f22db51fc1340f (patch)
tree7135e780fa71931808438fda163d4f3cad5848f5 /package/kernel/linux/modules
parent4efbfcd996abd351547203cf5d51d53564ada5fb (diff)
downloadupstream-3e6f64d443f476a6e936de4f36f22db51fc1340f.tar.gz
upstream-3e6f64d443f476a6e936de4f36f22db51fc1340f.tar.bz2
upstream-3e6f64d443f476a6e936de4f36f22db51fc1340f.zip
kernel: crypto: package SHA3
SHA3 is now required by jitterentropy_rng in kernel 6.6, so lets start preparing by packaging SHA3 support as its supported in 5.15 and 6.1 kernels as well. AFAIK, only ARMv8.2 has a crypto extension for SHA3, however I am not aware of any SoC we support that uses ARMv8.2 ISA so its not enabled currently. Signed-off-by: Robert Marko <robimarko@gmail.com>
Diffstat (limited to 'package/kernel/linux/modules')
-rw-r--r--package/kernel/linux/modules/crypto.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index dd17d868fa1..84c4668b972 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -958,6 +958,18 @@ endif
$(eval $(call KernelPackage,crypto-sha1))
+define KernelPackage/crypto-sha3
+ TITLE:=SHA3 digest CryptoAPI module
+ DEPENDS:=+kmod-crypto-hash
+ KCONFIG:= CONFIG_CRYPTO_SHA3
+ FILES:=$(LINUX_DIR)/crypto/sha3_generic.ko
+ AUTOLOAD:=$(call AutoLoad,09,sha3_generic)
+ $(call AddDepends/crypto)
+endef
+
+$(eval $(call KernelPackage,crypto-sha3))
+
+
define KernelPackage/crypto-sha256
TITLE:=SHA224 SHA256 digest CryptoAPI module
DEPENDS:=+kmod-crypto-hash