diff --git a/target/linux/ramips/files/drivers/crypto/mtk-eip93/Kconfig b/target/linux/ramips/files/drivers/crypto/mtk-eip93/Kconfig index bfd6bd0dec..13903cdf5f 100644 --- a/target/linux/ramips/files/drivers/crypto/mtk-eip93/Kconfig +++ b/target/linux/ramips/files/drivers/crypto/mtk-eip93/Kconfig @@ -35,8 +35,8 @@ config CRYPTO_DEV_EIP93_DES crypto to the EIP-93 crypto engine. config CRYPTO_DEV_EIP93_AEAD - bool "Register AEAD algorithm with the Crypto API" - default y + bool "Register AEAD algorithm with the Crypto API" + default y select CRYPTO_DEV_EIP93_HMAC select CRYPTO_AEAD select CRYPTO_AUTHENC @@ -44,6 +44,6 @@ config CRYPTO_DEV_EIP93_AEAD select CRYPTO_SHA1 select CRYPTO_SHA256 help - Selecting this will offload AEAD authenc(hmac(x), cipher(y)) + Selecting this will offload AEAD authenc(hmac(x), cipher(y)) crypto to the EIP-93 crypto engine. endif diff --git a/target/linux/ramips/files/drivers/crypto/mtk-eip93/eip93-aead.c b/target/linux/ramips/files/drivers/crypto/mtk-eip93/eip93-aead.c index a8521c7c9c..1bfebf272f 100644 --- a/target/linux/ramips/files/drivers/crypto/mtk-eip93/eip93-aead.c +++ b/target/linux/ramips/files/drivers/crypto/mtk-eip93/eip93-aead.c @@ -5,6 +5,9 @@ * Richard van Schagen */ +#include +#include + #include #include #include @@ -13,8 +16,12 @@ #include #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) #include #include +#else +#include +#endif #if IS_ENABLED(CONFIG_CRYPTO_DEV_EIP93_DES) #include