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

John Crispin john at phrozen.org
Mon Nov 26 04:59:32 EST 2018


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 at 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)

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list