From: Tom Rini Date: Wed, 8 Jul 2020 20:22:13 -0400 Subject: [PATCH] lib: rsa: function to verify a signature against a hash In-Reply-To: <20200522142033.3523817-1-heiko@sntech.de> References: <20200522142033.3523817-1-heiko@sntech.de> Message-ID: <20200709002213.GV1306@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, May 22, 2020 at 04:20:33PM +0200, Heiko Stuebner wrote: > From: Heiko Stuebner > > 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: