kernel/modules: add SSSE3 SHA512 module

This module is optimized for SSSE3/AVX/AVX2.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
Stijn Tintel 2017-01-04 00:52:18 +01:00
parent 86de53203e
commit ed69e93262

View file

@ -583,7 +583,8 @@ define KernelPackage/crypto-sha512
DEPENDS:=+kmod-crypto-hash DEPENDS:=+kmod-crypto-hash
KCONFIG:= \ KCONFIG:= \
CONFIG_CRYPTO_SHA512 \ CONFIG_CRYPTO_SHA512 \
CONFIG_CRYPTO_SHA512_OCTEON CONFIG_CRYPTO_SHA512_OCTEON \
CONFIG_CRYPTO_SHA512_SSSE3
FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko
AUTOLOAD:=$(call AutoLoad,09,sha512_generic) AUTOLOAD:=$(call AutoLoad,09,sha512_generic)
$(call AddDepends/crypto) $(call AddDepends/crypto)
@ -594,6 +595,11 @@ define KernelPackage/crypto-sha512/octeon
AUTOLOAD:=$(call AutoLoad,09,octeon-sha512) AUTOLOAD:=$(call AutoLoad,09,octeon-sha512)
endef endef
define KernelPackage/crypto-sha512/x86/64
FILES+=$(LINUX_DIR)/arch/x86/crypto/sha512-ssse3.ko
AUTOLOAD:=$(call AutoLoad,09,sha512-ssse3)
endef
$(eval $(call KernelPackage,crypto-sha512)) $(eval $(call KernelPackage,crypto-sha512))