lib: rsa: add rsa_verify_with_pkey()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 21 Feb 2020 06:12:59 +0000 (15:12 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 12 Mar 2020 12:20:39 +0000 (08:20 -0400)
commit0cc7a7535fd06bcf2fd3386e26ee05a1280c67a4
tree9a9af4793dfc991be8b82768a70f38f8f9b4330c
parente0d310b098b1e3dd2ad4e0e4efbbb81b90ae4bc7
lib: rsa: add rsa_verify_with_pkey()

This function, and hence rsa_verify(), will perform RSA verification
with two essential parameters for a RSA public key in contract of
rsa_verify_with_keynode(), which requires additional three parameters
stored in FIT image.

It will be used in implementing UEFI secure boot, i.e. image authentication
and variable authentication.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/rsa/rsa-verify.c