[PATCH RFC 05/10] image: rsa: Move verification algorithm to a linker list

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


On Fri, 14 May 2021 at 13:46, Alexandru Gagniuc <mr.nuke.me at gmail.com> wrote:
>
> Move the RSA verification crytpo_algo structure out of the
> crypto_algos array, and into a linker list.
>
> Although it appears we are adding an #ifdef to rsa-verify.c, the gains
> outweigh this small inconvenience. This is because rsa_verify() is
> defined differently based on #ifdefs. This change allows us to have
> a single definition of rsa_verify().
>
> Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
> ---
>  common/image-sig.c   |  9 ---------
>  lib/rsa/rsa-verify.c | 16 ++++++++++++++++
>  2 files changed, 16 insertions(+), 9 deletions(-)

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


More information about the U-Boot mailing list