[PATCH 1/5] dm: crypto: Define UCLASS API for ECDSA signature verification

Simon Glass sjg at chromium.org
Wed Jan 13 17:10:38 CET 2021

Hi Alexandru,

On Mon, 11 Jan 2021 at 08:41, Alexandru Gagniuc <mr.nuke.me at gmail.com> wrote:
> Define a UCLASS API for verifying ECDSA signatures. Unlike
> UCLASS_MOD_EXP, which focuses strictly on modular exponentiation,
> the ECDSA class focuses on verification. This is done so that it
> better aligns with mach-specific implementations, such as stm32mp.
> Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
> ---
>  include/crypto/ecdsa-uclass.h | 39 +++++++++++++++++++++++++++++++++++
>  include/dm/uclass-id.h        |  1 +
>  2 files changed, 40 insertions(+)
>  create mode 100644 include/crypto/ecdsa-uclass.h

This needs a test, as do all uclasses in U-Boot. If it isn't easy to
implement the algorithm then I suppose you could fake it by using an
easy algorithm like md5, but it does need a test.


More information about the U-Boot mailing list