Skip to content
Commit c89b41b4 authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Tom Rini
Browse files

lib: rsa: function to verify a signature against a hash



rsa_verify() expects a memory region and wants to do the hashing itself,
but there may be cases where the hashing is done via other means,
like hashing a squashfs rootfs.

So add rsa_verify_hash() to allow verifiying a signature against
an existing hash. As this entails the same verification routines
we can just move the relevant code over from rsa_verify() and also
call rsa_verify_hash() from there.

Signed-off-by: default avatarHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
parent bdded201
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment