From: Tom Rini Date: Thu, 9 May 2019 21:06:52 -0400 Subject: [U-Boot] [PATCH v2] fit signature: Add fallback of required keys In-Reply-To: <20190422212801.6340-1-sam.voss@rockwellcollins.com> References: <20190422212801.6340-1-sam.voss@rockwellcollins.com> Message-ID: <20190510010652.GM25571@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 Mon, Apr 22, 2019 at 04:28:01PM -0500, Sam Voss wrote: > Validation of fit image configuration signatures does not seem to do a > "fall-back" mechanism as mentioned in doc/uImage.FIT/signature.txt. > > The current constraints seem to only allow the following: > > - skipping keys not marked "required" (not attempting to validate > with them at all) > - checking a key marked required, but if it does not pass the validation > entirely fails (no fall-back) > > This patch keeps the non-required mechanism, however changes the > required key logic to check all keys until a key that can validate the > configuration is found. If none is found, an error is raised as before > and boot is halted. > > Signed-off-by: Sam Voss This breaks 'make tests' as it doesn't update the tests, please fix, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: