
9 Jul
2020
9 Jul
'20
2:22 a.m.
On Fri, May 22, 2020 at 04:20:33PM +0200, Heiko Stuebner wrote:
From: Heiko Stuebner heiko.stuebner@theobroma-systems.com
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: Heiko Stuebner heiko.stuebner@theobroma-systems.com
Applied to u-boot/master, thanks!
--
Tom