aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-05-03 21:19:56 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-05-03 21:19:56 +0000
commita5c2d78c122b4c14f907b686a2e456885b5989fe (patch)
treeed067515aaac930aae93cf2bfa1388e366d4e308
parent27f90228a7f587eefc64b9bb59eb09692a015a56 (diff)
downloadupstream-a5c2d78c122b4c14f907b686a2e456885b5989fe.tar.gz
upstream-a5c2d78c122b4c14f907b686a2e456885b5989fe.tar.bz2
upstream-a5c2d78c122b4c14f907b686a2e456885b5989fe.zip
[PATCH 1/2] kernel: add kmod-crypto-{wq,rng,iv}
This patch adds kmod-crypto-wq, kmod-crypto-rng, and kmod-crypto-iv packages. These packages provide some missing kernel crypto modules which are required for IPSEC. The strongswan4, ipsec-tools, and possibly other IPSEC packages do not work properly without these modules. NOTE: The KCONFIG associated with each of these modules gets selected whenever CRYPTO_MANAGER (kmod-crypto-manager) is selected so these modules are already being built. Signed-off-by: Lars Hjersted <lars@hjersted.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26812 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/modules/crypto.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/kernel/modules/crypto.mk b/package/kernel/modules/crypto.mk
index b895224b2c..5aa954900d 100644
--- a/package/kernel/modules/crypto.mk
+++ b/package/kernel/modules/crypto.mk
@@ -76,6 +76,38 @@ define KernelPackage/crypto-manager
endef
$(eval $(call KernelPackage,crypto-manager))
+define KernelPackage/crypto-wq
+ TITLE:=CryptoAPI work queue handling
+ KCONFIG:=CONFIG_CRYPTO_WORKQUEUE
+ FILES:=$(LINUX_DIR)/crypto/crypto_wq.ko
+ AUTOLOAD:=$(call AutoLoad,09,crypto_wq)
+ $(call AddDepends/crypto)
+endef
+$(eval $(call KernelPackage,crypto-wq))
+
+define KernelPackage/crypto-rng
+ TITLE:=CryptoAPI random number generation
+ KCONFIG:=CONFIG_CRYPTO_RNG2
+ FILES:= \
+ $(LINUX_DIR)/crypto/rng.ko \
+ $(LINUX_DIR)/crypto/krng.ko
+ AUTOLOAD:=$(call AutoLoad,09,rng krng)
+ $(call AddDepends/crypto)
+endef
+$(eval $(call KernelPackage,crypto-rng))
+
+define KernelPackage/crypto-iv
+ TITLE:=CryptoAPI initialization vectors
+ DEPENDS:=+kmod-crypto-rng +kmod-crypto-wq
+ KCONFIG:= CONFIG_CRYPTO_BLKCIPHER2
+ FILES:= \
+ $(LINUX_DIR)/crypto/eseqiv.ko \
+ $(LINUX_DIR)/crypto/chainiv.ko
+ AUTOLOAD:=$(call AutoLoad,10,eseqiv chainiv)
+ $(call AddDepends/crypto)
+endef
+$(eval $(call KernelPackage,crypto-iv))
+
define KernelPackage/crypto-hw-padlock
TITLE:=VIA PadLock ACE with AES/SHA hw crypto module
DEPENDS:=+kmod-crypto-aes