diff mbox series

[OpenWrt-Devel] kernel: Add AEAD and RNG support to kmod-crypto-user

Message ID 20181016230818.4295-1-rosenp@gmail.com
State Changes Requested
Delegated to: John Crispin
Headers show
Series [OpenWrt-Devel] kernel: Add AEAD and RNG support to kmod-crypto-user | expand

Commit Message

Rosen Penev Oct. 16, 2018, 11:08 p.m. UTC
This breaks compatibility with kernel 3.18, but as that is more or less
abandoned at this point, it should be fine.

Tested on Turris Omnia.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 package/kernel/linux/modules/crypto.mk | 4 ++++
 1 file changed, 4 insertions(+)

Comments

John Crispin Nov. 26, 2018, 9:59 a.m. UTC | #1
On 17/10/2018 01:08, Rosen Penev wrote:
> This breaks compatibility with kernel 3.18, but as that is more or less
> abandoned at this point, it should be fine.


it'll break the buildbots. please make it safe to use even for 3.18 as 
we still have that kernel in the tree

target/linux/adm5120/Makefile:KERNEL_PATCHVER:=3.18
target/linux/adm8668/Makefile:KERNEL_PATCHVER:=3.18
target/linux/au1000/Makefile:KERNEL_PATCHVER:=3.18
target/linux/mcs814x/Makefile:KERNEL_PATCHVER:=3.18
target/linux/ppc40x/Makefile:KERNEL_PATCHVER:=3.18
target/linux/ppc44x/Makefile:KERNEL_PATCHVER:=3.18
target/linux/xburst/Makefile:KERNEL_PATCHVER:=3.18

>
> Tested on Turris Omnia.
>
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
> ---
>   package/kernel/linux/modules/crypto.mk | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
> index 235e6dadac..613059f823 100644
> --- a/package/kernel/linux/modules/crypto.mk
> +++ b/package/kernel/linux/modules/crypto.mk
> @@ -709,11 +709,15 @@ define KernelPackage/crypto-user
>     DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
>     KCONFIG:= \
>   	CONFIG_CRYPTO_USER_API \
> +	CONFIG_CRYPTO_USER_API_AEAD \
>   	CONFIG_CRYPTO_USER_API_HASH \
> +	CONFIG_CRYPTO_USER_API_RNG \
>   	CONFIG_CRYPTO_USER_API_SKCIPHER
>     FILES:= \
>   	$(LINUX_DIR)/crypto/af_alg.ko \
> +	$(LINUX_DIR)/crypto/algif_aead.ko \
>   	$(LINUX_DIR)/crypto/algif_hash.ko \
> +	$(LINUX_DIR)/crypto/algif_rng.ko \
>   	$(LINUX_DIR)/crypto/algif_skcipher.ko
>     AUTOLOAD:=$(call AutoLoad,09,af_alg algif_hash algif_skcipher)
>     $(call AddDepends/crypto)
diff mbox series

Patch

diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index 235e6dadac..613059f823 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -709,11 +709,15 @@  define KernelPackage/crypto-user
   DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
   KCONFIG:= \
 	CONFIG_CRYPTO_USER_API \
+	CONFIG_CRYPTO_USER_API_AEAD \
 	CONFIG_CRYPTO_USER_API_HASH \
+	CONFIG_CRYPTO_USER_API_RNG \
 	CONFIG_CRYPTO_USER_API_SKCIPHER
   FILES:= \
 	$(LINUX_DIR)/crypto/af_alg.ko \
+	$(LINUX_DIR)/crypto/algif_aead.ko \
 	$(LINUX_DIR)/crypto/algif_hash.ko \
+	$(LINUX_DIR)/crypto/algif_rng.ko \
 	$(LINUX_DIR)/crypto/algif_skcipher.ko
   AUTOLOAD:=$(call AutoLoad,09,af_alg algif_hash algif_skcipher)
   $(call AddDepends/crypto)