X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/9b743eb09d74b1807a1101f8537c06f618835126..7b3bd12cf8ee18257abac8deb8c5854070569fdf:/package/kernel/modules/crypto.mk diff --git a/package/kernel/modules/crypto.mk b/package/kernel/modules/crypto.mk index fa2ddbc21..9227deb80 100644 --- a/package/kernel/modules/crypto.mk +++ b/package/kernel/modules/crypto.mk @@ -267,7 +267,8 @@ define KernelPackage/crypto-misc $(LINUX_DIR)/crypto/sha256$(SHA256_SUFFIX).ko \ $(LINUX_DIR)/crypto/sha512$(SHA512_SUFFIX).ko \ $(LINUX_DIR)/crypto/tea.ko \ - $(LINUX_DIR)/crypto/twofish.ko \ + $(if $(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.35)),,$(LINUX_DIR)/crypto/twofish.ko) \ + $(if $(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.36)),,$(LINUX_DIR)/crypto/twofish_generic.ko) \ $(LINUX_DIR)/crypto/wp512.ko $(call AddDepends/crypto) endef @@ -356,3 +357,20 @@ endef $(eval $(call KernelPackage,crypto-test)) + +define KernelPackage/crypto-xts + TITLE:=XTS cipher CryptoAPI module + KCONFIG:= \ + CONFIG_CRYPTO_GF128MUL \ + CONFIG_CRYPTO_XTS + FILES:= \ + $(LINUX_DIR)/crypto/xts.ko \ + $(LINUX_DIR)/crypto/gf128mul.ko + AUTOLOAD:=$(call AutoLoad,09, \ + gf128mul \ + xts \ + ) + $(call AddDepends/crypto) +endef + +$(eval $(call KernelPackage,crypto-xts))