From: Tom Rini Date: Fri, 1 May 2020 17:57:33 -0400 Subject: [PATCH v3 2/2] rsa: sig: fix config signature check for fit with padding In-Reply-To: <1588166777-9610-3-git-send-email-philippe.reynes@softathome.com> References: <1588166777-9610-1-git-send-email-philippe.reynes@softathome.com> <1588166777-9610-3-git-send-email-philippe.reynes@softathome.com> Message-ID: <20200501215733.GY12564@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 Wed, Apr 29, 2020 at 03:26:17PM +0200, Philippe Reynes wrote: > The signature check on config node is broken on fit with padding. > To compute the signature for config node, U-Boot compute the > signature on all properties of requested node for this config, > except for the property "data". But, when padding is used for > binary in a fit, there isn't a property "data" but two properties: > "data-offset" and "data-size". So to fix the check of signature, > we also don't use the properties "data-offset" and "data-size" > when checking the signature on config node. > > Reviewed-by: Simon Glass > Signed-off-by: Philippe Reynes 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: