[OpenWrt-Devel] [PATCH 5/5] kernel: add x86_64 SSSE3 support for SHA1/SHA256/SHA512
Ulrich Weber
uweber.linux at gmail.com
Tue Feb 17 10:54:56 EST 2015
Signed-off-by: Ulrich Weber <uw at ocedo.com>
---
package/kernel/linux/modules/crypto.mk | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index 1a3050a..10e85e0 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -495,35 +495,50 @@ $(eval $(call KernelPackage,crypto-michael-mic))
define KernelPackage/crypto-sha1
TITLE:=SHA1 digest CryptoAPI module
DEPENDS:=+kmod-crypto-hash
- KCONFIG:=CONFIG_CRYPTO_SHA1
+ KCONFIG:=CONFIG_CRYPTO_SHA1 CONFIG_CRYPTO_SHA1_SSSE3
FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko
AUTOLOAD:=$(call AutoLoad,09,sha1_generic)
$(call AddDepends/crypto)
endef
+define KernelPackage/crypto-sha1/x86_64
+ FILES+=$(LINUX_DIR)/arch/x86/crypto/sha1-ssse3.ko
+ AUTOLOAD:=$(call AutoLoad,09,sha1-ssse3)
+endef
+
$(eval $(call KernelPackage,crypto-sha1))
define KernelPackage/crypto-sha256
TITLE:=SHA224 SHA256 digest CryptoAPI module
DEPENDS:=+kmod-crypto-hash
- KCONFIG:=CONFIG_CRYPTO_SHA256
+ KCONFIG:=CONFIG_CRYPTO_SHA256 CONFIG_CRYPTO_SHA256_SSSE3
FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
$(call AddDepends/crypto)
endef
+define KernelPackage/crypto-sha256/x86_64
+ FILES+=$(LINUX_DIR)/arch/x86/crypto/sha256-ssse3.ko
+ AUTOLOAD:=$(call AutoLoad,09,sha256-ssse3)
+endef
+
$(eval $(call KernelPackage,crypto-sha256))
define KernelPackage/crypto-sha512
TITLE:=SHA512 digest CryptoAPI module
DEPENDS:=+kmod-crypto-hash
- KCONFIG:=CONFIG_CRYPTO_SHA512
+ KCONFIG:=CONFIG_CRYPTO_SHA512 CONFIG_CRYPTO_SHA512_SSSE3
FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko
AUTOLOAD:=$(call AutoLoad,09,sha512_generic)
$(call AddDepends/crypto)
endef
+define KernelPackage/crypto-sha512/x86_64
+ FILES+=$(LINUX_DIR)/arch/x86/crypto/sha512-ssse3.ko
+ AUTOLOAD:=$(call AutoLoad,09,sha512-ssse3)
+endef
+
define KernelPackage/crypto-misc
TITLE:=Other CryptoAPI modules
DEPENDS:=+kmod-crypto-manager
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list