Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 07587C433EF for ; Tue, 7 Jun 2022 16:48:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D1962843A4; Tue, 7 Jun 2022 18:47:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="MrCCv7iK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 013BE84300; Tue, 7 Jun 2022 18:47:07 +0200 (CEST) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 576A584300 for ; Tue, 7 Jun 2022 18:47:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x831.google.com with SMTP id 2so13073382qtw.0 for ; Tue, 07 Jun 2022 09:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=IE68n4/34/HMXGxnDAXca0fU57YC337XrFcIGm2SCbA=; b=MrCCv7iKE7pxF4nBg471RbqjXWe/cZpKyQzbTV433qsJl/Uyt2TpZAF38Fo9NRDoT8 DjzNKKAAoJXZLd2c77Ln5BGTQWC8NVZjboPXcVAAZJ7fdUoEUO1Lmj72Ul7ngGT5N1rl DFHmETcHhl3FvUN6UuCwsyxNLa3jKHzfm5ngI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=IE68n4/34/HMXGxnDAXca0fU57YC337XrFcIGm2SCbA=; b=hn8QMl9f0uoVW2qFs3FyeNv7SGJxnyBWs1bvEB0JPCfJvckBKsEMTUCCBp1s/quwIX A2RauHO1Eo7jb0tHqz5iez7aIDkiynnCgXqIC4mPFuDbIrWJ1N1ouB+cbFVkxa+kpPYm hQkvoXhIVVW4fhMsH4lE4sx4JRQYjiAPmIh4XWC/iYsK28VVrDDEyKq3qEfy4D5pv4X9 iOL0ymrqjwMz5z65pkn0Rf6NocwVCr/3L4XGgmnH1f6VzQO5oFZ86KxV6cT3KZedSc0K H3ysnpVwOPYXCb+StGyu2knyEjhPv4kYUps2t761xB5A2R8L4oIL9PPB0Ug/VwmIvJJm PDKQ== X-Gm-Message-State: AOAM532GMDpT7k83zprlR+H45+fvRf4k/lGESRsGTA36E7YWIiADjdQz WLLGzwuQMh3OisabbUaKH1FdWBldJ24Tcg== X-Google-Smtp-Source: ABdhPJxWqvuFBbvwQ4GqbnMoW2dbksS26Yi+EnqCGWjVoThn4QYSpKD8GQHD/4Tf2aboKdUTh6dbvQ== X-Received: by 2002:ac8:5b50:0:b0:2f9:3e39:b75b with SMTP id n16-20020ac85b50000000b002f93e39b75bmr23706835qtw.60.1654620421923; Tue, 07 Jun 2022 09:47:01 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id i10-20020ac813ca000000b00304ed1cf3f1sm4043259qtj.80.2022.06.07.09.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 09:47:01 -0700 (PDT) Date: Tue, 7 Jun 2022 12:46:59 -0400 From: Tom Rini To: Sean Anderson Cc: Simon Glass , u-boot@lists.denx.de, Heinrich Schuchardt Subject: Re: [PATCH v3 2/2] mkimage: Support signing 'auto' FITs Message-ID: <20220607164659.GN2484912@bill-the-cat> References: <20220516201108.4070444-1-sean.anderson@seco.com> <20220516201108.4070444-2-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uMPAU7A2Er6+wvsD" Content-Disposition: inline In-Reply-To: <20220516201108.4070444-2-sean.anderson@seco.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --uMPAU7A2Er6+wvsD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 16, 2022 at 04:11:08PM -0400, Sean Anderson wrote: > This adds support for signing images in auto-generated FITs. To do this, > we need to add a signature node. The algorithm name property already has > its own option, but we need one for the key name hint. We could have > gone the -G route and added an explicit name for the public key (like > what is done for the private key). However, many places assume the > public key can be constructed from the key dir and hint, and I don't > want to do the refactoring necessary. >=20 > As a consequence of this, it is now easier to add public keys to an > existing image without signing something. This could be done all along, > but now you don't have to create an its just to do it. Ideally, we > wouldn't create a FIT at the end. This could be done by calling > fit_image_setup_sig/info.crypto->add_verify_data directly. >=20 > Signed-off-by: Sean Anderson Applied to u-boot/next, thanks! --=20 Tom --uMPAU7A2Er6+wvsD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmKfgQMACgkQFHw5/5Y0 tyz+ZAv+L0gDGjYVG3x3htKIqUrJbhw93V8DsLBE7/bwL18sH/xUqGy9iEb/p8Fn uE9v1/k22hNRmq1+B7MJawrDbqIUF3VaDIsKh2L0clbPJ1f6G9tQ1WUBaUbejUf2 PozzQ3M6NixGTj/XYtLFW794RRFeDwiLnzaY2VVs2B54dPxtaezhX04xCSE2Ar4m 1psxIVF1f8RrRS+ABfo5P/zr6fdmmoz3StazBe9fCBiGK1C5hmz5ocU2e0N8iS8m 2r6qGeC2jgNIIlG+mR/+FVBYi54+sZBqPpI9EZEde1SoJnf5xv11aqDldIJQ3g8L NQwhJZamkdXKo6NWQiN09Iopjr/T1GnPJAppGZa4J4i8fRdYcfo6iNR812smF8us XFzQ2e/Eu+AjM5MuHg0gEmR+37jB0WKvShfH0a+oP/S0e3VAXtGro5H4SEgza4gB CecE3OmCbx47e0e2Ym6SVH5IWnl2r0fuLKNk9n2Zb664MyK53JHkdNAo6JG26Bun X9Se3fcH =7LR2 -----END PGP SIGNATURE----- --uMPAU7A2Er6+wvsD--