[PATCH v4 04/14] drivers: crypto: add software ecdsa support

Simon Glass sjg at chromium.org
Mon Apr 20 04:11:41 CEST 2026


Hi Philippe,

On 2026-04-17T13:02:04, Philippe Reynes <philippe.reynes at softathome.com> wrote:
> drivers: crypto: add software ecdsa support
>
> Add a software ecdsa driver so it is
> now possible to use ecdsa signature on
> board without ecdsa hardware support.
>
> Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
>
> drivers/crypto/Makefile         |  1 +
>  drivers/crypto/ecdsa/Makefile   |  6 ++++++
>  drivers/crypto/ecdsa/ecdsa-sw.c | 33 +++++++++++++++++++++++++++++++++
>  3 files changed, 40 insertions(+)

> diff --git a/drivers/crypto/ecdsa/Makefile b/drivers/crypto/ecdsa/Makefile
> @@ -0,0 +1,6 @@
> +obj-$(CONFIG_ECDSA_MBEDTLS) += ecdsa-sw.o

This should use CONFIG_$(PHASE_)ECDSA_MBEDTLS for consistency with
lib/mbedtls/Makefile. Otherwise SPL builds defining SPL_ECDSA_MBEDTLS
will not include this driver.

Regards,
Simon


More information about the U-Boot mailing list