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

Simon Glass sjg at chromium.org
Wed May 19 18:36:31 CEST 2021


Hi Alex,

On Mon, 17 May 2021 at 12:39, 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

We cannot have a uclass with a test. You should implement at least a
trivial test for this uclass, with a sandbox driver.

Regards,
Simon


More information about the U-Boot mailing list