All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] ARM: configs: at91: Enable crypto software implementations
@ 2021-12-15 13:43 ` Tudor Ambarus
  0 siblings, 0 replies; 4+ messages in thread
From: Tudor Ambarus @ 2021-12-15 13:43 UTC (permalink / raw)
  To: nicolas.ferre
  Cc: alexandre.belloni, ludovic.desroches, claudiu.beznea, dianders,
	emil.velikov, sam, codrin.ciubotariu, linux-arm-kernel,
	linux-kernel, Tudor Ambarus

Enable at least the same amount of algs as the hardware IPs are
supporting so that they are able to fallback to the software
implementations in case they need it.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
---
v3: drop CONFIG_CRYPTO_MD5, as MD5 is not hw accelerated.

v2:
- add CONFIG_CRYPTO_HMAC
- update commit message
- ignore other non-crypto changes that are revealed with
  "make savedefconfig"

 arch/arm/configs/at91_dt_defconfig | 9 ++++++++-
 arch/arm/configs/sama5_defconfig   | 8 ++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index a6310c8abcc3..549d01be0b47 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -216,7 +216,14 @@ CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_CODEPAGE_850=y
 CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=y
-CONFIG_CRYPTO_ECB=y
+CONFIG_CRYPTO_CBC=y
+CONFIG_CRYPTO_CFB=y
+CONFIG_CRYPTO_OFB=y
+CONFIG_CRYPTO_XTS=y
+CONFIG_CRYPTO_HMAC=y
+CONFIG_CRYPTO_SHA1=y
+CONFIG_CRYPTO_SHA512=y
+CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
 CONFIG_CRYPTO_DEV_ATMEL_AES=y
diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig
index fe0d7ccc8fb2..03dd80c2a19e 100644
--- a/arch/arm/configs/sama5_defconfig
+++ b/arch/arm/configs/sama5_defconfig
@@ -232,6 +232,14 @@ CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_CODEPAGE_850=y
 CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=y
+CONFIG_CRYPTO_CBC=y
+CONFIG_CRYPTO_CFB=y
+CONFIG_CRYPTO_OFB=y
+CONFIG_CRYPTO_XTS=y
+CONFIG_CRYPTO_HMAC=y
+CONFIG_CRYPTO_SHA1=y
+CONFIG_CRYPTO_SHA512=y
+CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
 CONFIG_CRYPTO_DEV_ATMEL_AES=y
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v3] ARM: configs: at91: Enable crypto software implementations
@ 2021-12-15 13:43 ` Tudor Ambarus
  0 siblings, 0 replies; 4+ messages in thread
From: Tudor Ambarus @ 2021-12-15 13:43 UTC (permalink / raw)
  To: nicolas.ferre
  Cc: alexandre.belloni, ludovic.desroches, claudiu.beznea, dianders,
	emil.velikov, sam, codrin.ciubotariu, linux-arm-kernel,
	linux-kernel, Tudor Ambarus

Enable at least the same amount of algs as the hardware IPs are
supporting so that they are able to fallback to the software
implementations in case they need it.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
---
v3: drop CONFIG_CRYPTO_MD5, as MD5 is not hw accelerated.

v2:
- add CONFIG_CRYPTO_HMAC
- update commit message
- ignore other non-crypto changes that are revealed with
  "make savedefconfig"

 arch/arm/configs/at91_dt_defconfig | 9 ++++++++-
 arch/arm/configs/sama5_defconfig   | 8 ++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index a6310c8abcc3..549d01be0b47 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -216,7 +216,14 @@ CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_CODEPAGE_850=y
 CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=y
-CONFIG_CRYPTO_ECB=y
+CONFIG_CRYPTO_CBC=y
+CONFIG_CRYPTO_CFB=y
+CONFIG_CRYPTO_OFB=y
+CONFIG_CRYPTO_XTS=y
+CONFIG_CRYPTO_HMAC=y
+CONFIG_CRYPTO_SHA1=y
+CONFIG_CRYPTO_SHA512=y
+CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
 CONFIG_CRYPTO_DEV_ATMEL_AES=y
diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig
index fe0d7ccc8fb2..03dd80c2a19e 100644
--- a/arch/arm/configs/sama5_defconfig
+++ b/arch/arm/configs/sama5_defconfig
@@ -232,6 +232,14 @@ CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_CODEPAGE_850=y
 CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=y
+CONFIG_CRYPTO_CBC=y
+CONFIG_CRYPTO_CFB=y
+CONFIG_CRYPTO_OFB=y
+CONFIG_CRYPTO_XTS=y
+CONFIG_CRYPTO_HMAC=y
+CONFIG_CRYPTO_SHA1=y
+CONFIG_CRYPTO_SHA512=y
+CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
 CONFIG_CRYPTO_DEV_ATMEL_AES=y
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] ARM: configs: at91: Enable crypto software implementations
  2021-12-15 13:43 ` Tudor Ambarus
@ 2021-12-17 16:52   ` Nicolas Ferre
  -1 siblings, 0 replies; 4+ messages in thread
From: Nicolas Ferre @ 2021-12-17 16:52 UTC (permalink / raw)
  To: Tudor Ambarus
  Cc: alexandre.belloni, ludovic.desroches, claudiu.beznea, dianders,
	emil.velikov, sam, codrin.ciubotariu, linux-arm-kernel,
	linux-kernel

On 15/12/2021 at 14:43, Tudor Ambarus wrote:
> Enable at least the same amount of algs as the hardware IPs are
> supporting so that they are able to fallback to the software
> implementations in case they need it.
> 
> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

And queued on at91-defconfig for 5.17.

Thanks, best regards,
   Nicolas


> ---
> v3: drop CONFIG_CRYPTO_MD5, as MD5 is not hw accelerated.
> 
> v2:
> - add CONFIG_CRYPTO_HMAC
> - update commit message
> - ignore other non-crypto changes that are revealed with
>    "make savedefconfig"
> 
>   arch/arm/configs/at91_dt_defconfig | 9 ++++++++-
>   arch/arm/configs/sama5_defconfig   | 8 ++++++++
>   2 files changed, 16 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
> index a6310c8abcc3..549d01be0b47 100644
> --- a/arch/arm/configs/at91_dt_defconfig
> +++ b/arch/arm/configs/at91_dt_defconfig
> @@ -216,7 +216,14 @@ CONFIG_NLS_CODEPAGE_437=y
>   CONFIG_NLS_CODEPAGE_850=y
>   CONFIG_NLS_ISO8859_1=y
>   CONFIG_NLS_UTF8=y
> -CONFIG_CRYPTO_ECB=y
> +CONFIG_CRYPTO_CBC=y
> +CONFIG_CRYPTO_CFB=y
> +CONFIG_CRYPTO_OFB=y
> +CONFIG_CRYPTO_XTS=y
> +CONFIG_CRYPTO_HMAC=y
> +CONFIG_CRYPTO_SHA1=y
> +CONFIG_CRYPTO_SHA512=y
> +CONFIG_CRYPTO_DES=y
>   CONFIG_CRYPTO_USER_API_HASH=m
>   CONFIG_CRYPTO_USER_API_SKCIPHER=m
>   CONFIG_CRYPTO_DEV_ATMEL_AES=y
> diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig
> index fe0d7ccc8fb2..03dd80c2a19e 100644
> --- a/arch/arm/configs/sama5_defconfig
> +++ b/arch/arm/configs/sama5_defconfig
> @@ -232,6 +232,14 @@ CONFIG_NLS_CODEPAGE_437=y
>   CONFIG_NLS_CODEPAGE_850=y
>   CONFIG_NLS_ISO8859_1=y
>   CONFIG_NLS_UTF8=y
> +CONFIG_CRYPTO_CBC=y
> +CONFIG_CRYPTO_CFB=y
> +CONFIG_CRYPTO_OFB=y
> +CONFIG_CRYPTO_XTS=y
> +CONFIG_CRYPTO_HMAC=y
> +CONFIG_CRYPTO_SHA1=y
> +CONFIG_CRYPTO_SHA512=y
> +CONFIG_CRYPTO_DES=y
>   CONFIG_CRYPTO_USER_API_HASH=m
>   CONFIG_CRYPTO_USER_API_SKCIPHER=m
>   CONFIG_CRYPTO_DEV_ATMEL_AES=y
> 


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] ARM: configs: at91: Enable crypto software implementations
@ 2021-12-17 16:52   ` Nicolas Ferre
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Ferre @ 2021-12-17 16:52 UTC (permalink / raw)
  To: Tudor Ambarus
  Cc: alexandre.belloni, ludovic.desroches, claudiu.beznea, dianders,
	emil.velikov, sam, codrin.ciubotariu, linux-arm-kernel,
	linux-kernel

On 15/12/2021 at 14:43, Tudor Ambarus wrote:
> Enable at least the same amount of algs as the hardware IPs are
> supporting so that they are able to fallback to the software
> implementations in case they need it.
> 
> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

And queued on at91-defconfig for 5.17.

Thanks, best regards,
   Nicolas


> ---
> v3: drop CONFIG_CRYPTO_MD5, as MD5 is not hw accelerated.
> 
> v2:
> - add CONFIG_CRYPTO_HMAC
> - update commit message
> - ignore other non-crypto changes that are revealed with
>    "make savedefconfig"
> 
>   arch/arm/configs/at91_dt_defconfig | 9 ++++++++-
>   arch/arm/configs/sama5_defconfig   | 8 ++++++++
>   2 files changed, 16 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
> index a6310c8abcc3..549d01be0b47 100644
> --- a/arch/arm/configs/at91_dt_defconfig
> +++ b/arch/arm/configs/at91_dt_defconfig
> @@ -216,7 +216,14 @@ CONFIG_NLS_CODEPAGE_437=y
>   CONFIG_NLS_CODEPAGE_850=y
>   CONFIG_NLS_ISO8859_1=y
>   CONFIG_NLS_UTF8=y
> -CONFIG_CRYPTO_ECB=y
> +CONFIG_CRYPTO_CBC=y
> +CONFIG_CRYPTO_CFB=y
> +CONFIG_CRYPTO_OFB=y
> +CONFIG_CRYPTO_XTS=y
> +CONFIG_CRYPTO_HMAC=y
> +CONFIG_CRYPTO_SHA1=y
> +CONFIG_CRYPTO_SHA512=y
> +CONFIG_CRYPTO_DES=y
>   CONFIG_CRYPTO_USER_API_HASH=m
>   CONFIG_CRYPTO_USER_API_SKCIPHER=m
>   CONFIG_CRYPTO_DEV_ATMEL_AES=y
> diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig
> index fe0d7ccc8fb2..03dd80c2a19e 100644
> --- a/arch/arm/configs/sama5_defconfig
> +++ b/arch/arm/configs/sama5_defconfig
> @@ -232,6 +232,14 @@ CONFIG_NLS_CODEPAGE_437=y
>   CONFIG_NLS_CODEPAGE_850=y
>   CONFIG_NLS_ISO8859_1=y
>   CONFIG_NLS_UTF8=y
> +CONFIG_CRYPTO_CBC=y
> +CONFIG_CRYPTO_CFB=y
> +CONFIG_CRYPTO_OFB=y
> +CONFIG_CRYPTO_XTS=y
> +CONFIG_CRYPTO_HMAC=y
> +CONFIG_CRYPTO_SHA1=y
> +CONFIG_CRYPTO_SHA512=y
> +CONFIG_CRYPTO_DES=y
>   CONFIG_CRYPTO_USER_API_HASH=m
>   CONFIG_CRYPTO_USER_API_SKCIPHER=m
>   CONFIG_CRYPTO_DEV_ATMEL_AES=y
> 


-- 
Nicolas Ferre

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-17 18:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15 13:43 [PATCH v3] ARM: configs: at91: Enable crypto software implementations Tudor Ambarus
2021-12-15 13:43 ` Tudor Ambarus
2021-12-17 16:52 ` Nicolas Ferre
2021-12-17 16:52   ` Nicolas Ferre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.