[PATCH v8 01/15] ecdsa: fix support of secp521r1
Simon Glass
sjg at chromium.org
Sun Jun 14 13:52:45 CEST 2026
On 2026-06-01T13:42:58, Philippe Reynes <philippe.reynes at softathome.com> wrote:
> ecdsa: fix support of secp521r1
>
> Current implementation of ecdsa only supports key len aligned on
> 8 bits. But the curve secp521r1 uses a key of 521 bits which is not
> aligned on 8 bits. In this commit, we update the keys management
> for ecdsa to support keys that are not aligned on 8 bits.
>
> Reviewed-by: Raymond Mao <raymondmaoca at gmail.com>
> Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
> Reviewed-by: Raymond Mao <raymondmaoca at gmail.com>
>
> lib/ecdsa/ecdsa-libcrypto.c | 75 +++++++++++++++++++++++++++++++++++++++++++--
> lib/ecdsa/ecdsa-verify.c | 71 +++++++++++++++++++++++++++++++++++++++---
> lib/fdt-libcrypto.c | 2 +-
> tools/image-sig-host.c | 7 +++++
> 4 files changed, 148 insertions(+), 7 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list