On 2026-06-01T13:42:58, Philippe Reynes <[email protected]> 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 <[email protected]> > Signed-off-by: Philippe Reynes <[email protected]> > Reviewed-by: Raymond Mao <[email protected]> > > 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 <[email protected]>

