[PATCH RFC 02/10] common: image-sig.c: Remove host-specific logic and #ifdefs

Simon Glass sjg at chromium.org
Sat May 15 17:20:11 CEST 2021

On Fri, 14 May 2021 at 13:46, Alexandru Gagniuc <mr.nuke.me at gmail.com> wrote:
> Remove any ifdefs in image-sig.c that were previously used to
> differentiate from the host code. Note that all code dedicated to
> relocating ->sign() and ->add_verify_data)_ can be safely removed,
> as signing is not supported target-side.
> NOTE that although it appears we are removing ecdsa256 support, this
> is intentional. ecdsa_verify() is a no-op on the target, and is
> currently only used by host code.

(need to fix that quick!)

> Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
> ---
>  common/image-sig.c | 39 ++-------------------------------------
>  1 file changed, 2 insertions(+), 37 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

More information about the U-Boot mailing list