[PATCH v5 05/15] drivers: crypto: add software ecdsa support
Simon Glass
sjg at chromium.org
Wed Apr 22 02:12:03 CEST 2026
Hi Philippe,
On 2026-04-21T21:09:51, 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.
>
> Reviewed-by: Raymond Mao <raymondmaoca at gmail.com>
> 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/ecdsa-sw.c b/drivers/crypto/ecdsa/ecdsa-sw.c
> @@ -0,0 +1,33 @@
> +#include <crypto/ecdsa-uclass.h>
> +#include <crypto/internal/ecdsa.h>
> +#include <dm.h>
> +#include <linux/types.h>
> +#include <u-boot/ecdsa.h>
The include of u-boot/ecdsa.h does not appear to be needed - this file
only calls ecdsa_hash_verify() which is declared in
crypto/internal/ecdsa.h. I may be missing something though.
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list