diff mbox series

crypto: sa2ul - Add CRYPTO_DES to CRYPTO_DEV_SA2UL

Message ID 20230324145812.315334-1-j-choudhary@ti.com
State New
Headers show
Series crypto: sa2ul - Add CRYPTO_DES to CRYPTO_DEV_SA2UL | expand

Commit Message

Jayesh Choudhary March 24, 2023, 2:58 p.m. UTC
From: Suman Anna <s-anna@ti.com>

The SA2UL Crypto driver provides support for couple of
DES3 algos "cbc(des3_ede)" and "ecb(des3_ede)", and enabling
the crypto selftest throws the following errors (as seen on
K3 J721E SoCs):
  saul-crypto 4e00000.crypto: Error allocating fallback algo cbc(des3_ede)
  alg: skcipher: failed to allocate transform for cbc-des3-sa2ul: -2
  saul-crypto 4e00000.crypto: Error allocating fallback algo ecb(des3_ede)
  alg: skcipher: failed to allocate transform for ecb-des3-sa2ul: -2

Fix this by selecting CRYPTO_DES which was missed while
adding base driver support.

Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver")
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
---
 drivers/crypto/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Herbert Xu March 31, 2023, 10:05 a.m. UTC | #1
On Fri, Mar 24, 2023 at 08:28:12PM +0530, Jayesh Choudhary wrote:
> From: Suman Anna <s-anna@ti.com>
> 
> The SA2UL Crypto driver provides support for couple of
> DES3 algos "cbc(des3_ede)" and "ecb(des3_ede)", and enabling
> the crypto selftest throws the following errors (as seen on
> K3 J721E SoCs):
>   saul-crypto 4e00000.crypto: Error allocating fallback algo cbc(des3_ede)
>   alg: skcipher: failed to allocate transform for cbc-des3-sa2ul: -2
>   saul-crypto 4e00000.crypto: Error allocating fallback algo ecb(des3_ede)
>   alg: skcipher: failed to allocate transform for ecb-des3-sa2ul: -2
> 
> Fix this by selecting CRYPTO_DES which was missed while
> adding base driver support.
> 
> Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver")
> Signed-off-by: Suman Anna <s-anna@ti.com>
> Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
> ---
>  drivers/crypto/Kconfig | 1 +
>  1 file changed, 1 insertion(+)

Patch applied.  Thanks.
diff mbox series

Patch

diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 3b2516d1433f..20222e321a43 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -810,6 +810,7 @@  config CRYPTO_DEV_SA2UL
 	select CRYPTO_AES
 	select CRYPTO_ALGAPI
 	select CRYPTO_AUTHENC
+	select CRYPTO_DES
 	select CRYPTO_SHA1
 	select CRYPTO_SHA256
 	select CRYPTO_SHA512