From: Tom Rini Date: Mon, 6 Nov 2017 18:27:54 -0500 Subject: [U-Boot] [U-Boot, 1/2] tools: image: allow to sign image nodes without -K option In-Reply-To: <1509084261-16126-1-git-send-email-yamada.masahiro@socionext.com> References: <1509084261-16126-1-git-send-email-yamada.masahiro@socionext.com> Message-ID: <20171106232754.GA32663@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, Oct 27, 2017 at 03:04:20PM +0900, Masahiro Yamada wrote: > If -K option is missing when you sign image nodes, it fails with > an unclear error message: > > tools/mkimage Can't add hashes to FIT blob: -1 > > It is hard to figure out the cause of the failure. > > In contrast, when you sign configuration nodes, -K is optional because > fit_config_process_sig() returns successfully if keydest is unset. > Probably this is a preferred behavior when you want to update FIT with > the same key; you do not have to update the public key in this case. > > So, this commit changes fit_image_process_sig() to continue signing > without keydest. If ->add_verify_data() fails, show a clearer error > message, which has been borrowed from fit_config_process_sig(). > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: