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 243CDC28B2B for ; Tue, 16 Aug 2022 12:44:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2E2F98499C; Tue, 16 Aug 2022 14:44:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jwgSK4nM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B55248459D; Mon, 15 Aug 2022 20:51:22 +0200 (CEST) Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (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 380498419E for ; Mon, 15 Aug 2022 20:51:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=fr0st61te@gmail.com Received: by mail-lf1-x135.google.com with SMTP id e15so11844787lfs.0 for ; Mon, 15 Aug 2022 11:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc; bh=YFfHzRo7zMNniQlbAym919PPC5ZRD5WA0IRaz00SauQ=; b=jwgSK4nMzu/NtO5HlFnpCnEPkqeWYVjRLzgLWV7bbHwSHACRSqJB37SB8zaYy8YL/m LN9YLYLUK8fn6TKVDMMXttuyudjKRYF6ExVdaRtHn4+gN73Yu2sonCNcDKHNiweMVvr7 NH0LKBXFSzaXN/7ZnPN2Tyg6kzZloPHXcIUjUWj04rMnJySA2r5N7FCv2bJ6+yOWDe9C yMCODNAXU4K1ikTKZJJ5lR5XeFP1V1NWxKR0iTMqb/WGkYZf9+U4mE3g69ZuUotf4vHD opZ6UZo7gBTYeFrqZF/Ys+0qxjHvyGtgzFIPps6EQk0LsSX69UioLjsia1gkepMYYwj9 Lyyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc; bh=YFfHzRo7zMNniQlbAym919PPC5ZRD5WA0IRaz00SauQ=; b=sHh8QUTl74lGHFeyYuFCA/Yeirb9/bPjqlXUFl3EuC5Y19GaQ0id0UyYPyaIsmAifD x0sgqKF5q+3pTBtTyDUJTMgLMfxLL0DNEJVQA8G/YXVelvGap+LYs7zy/iKlovQXKlE/ 4NDP0W7+SjQUFJ5siaW+bXUBFFk9rqM8crqFYHdjh99a3UIoyDo5VRcyHyMCIJxcGJ2A mj/C/JLvpjKBL1fFz58uSYYRjdFLxnrW0FSIPF5R8Y+/vopIsJGqsF1u4shwCRFtNR85 70cCLkHATKyOQZDAFWcpWUSnpM3OW/st5mNM/HANaoQ7HPt8vOcxiLeF5LQYSffkHIXQ APNQ== X-Gm-Message-State: ACgBeo0BGZuDWgxeJXzVbEpBvaPxE94VoGZqsbm3JeO5iwPSwh92rEzq HRNipmVV+ClKPFHPGJUS4zU= X-Google-Smtp-Source: AA6agR40C/VyqMMIeNJfyDCJs4K9SQwvRzAUHAgXHG97w0AYGGwbOX2B4AkkLqOdWUPABbiFrlbJKw== X-Received: by 2002:a05:6512:3f29:b0:48a:5ede:9aef with SMTP id y41-20020a0565123f2900b0048a5ede9aefmr5576922lfa.688.1660589479448; Mon, 15 Aug 2022 11:51:19 -0700 (PDT) Received: from [100.119.149.183] (95-31-186-23.broadband.corbina.ru. [95.31.186.23]) by smtp.gmail.com with ESMTPSA id z12-20020a056512370c00b0048b08e25979sm1164177lfr.199.2022.08.15.11.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 11:51:18 -0700 (PDT) Message-ID: <1575aacc908904b90efe0297165a52f2fdd1a11f.camel@gmail.com> Subject: Re: [PATCH 0/3] Introduce new sign binman's option From: Ivan Mikhaylov To: Simon Glass Cc: Jan Kiszka , U-Boot Mailing List Date: Mon, 15 Aug 2022 21:51:17 +0000 In-Reply-To: References: <20220321214319.33254-1-fr0st61te@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 16 Aug 2022 14:44:04 +0200 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.6 at phobos.denx.de X-Virus-Status: Clean On Sat, 2022-08-13 at 08:59 -0600, Simon Glass wrote: > Hi Ivan, >=20 > On Mon, 21 Mar 2022 at 12:43, Ivan Mikhaylov > wrote: > >=20 > > From: Ivan Mikhaylov > >=20 > > This patch introduces prototype of new sign binman's option. > > Enhancing the sign procedure, as example: > >=20 > > mkimage -G privateky -r -o sha256,rsa4096 -F fit.fit > > binman replace -i flash.bin -f fit.fit fit > >=20 > > into: > > binman sign -i flash.bin -k privatekey -a sha256,rsa4096 -f fit.fit > > fit > >=20 > > It works with extracted FIT container and image, which provides key > > signing > > and replacing FIT container in directed image. > >=20 > > Also, I'll add additional enhancement in future to this procedure > > with > > skipping on FIT container and providing extract->sign->replace in > > whole > > instead of sign->replace with documentation update and test as > > well. > >=20 > > As example: > >=20 > > binman sign -i flash.bin -k privatekey -a sha256,rsa4096 -f fit > >=20 > >=20 > > Ivan Mikhaylov (3): > > =C2=A0 binman: add sign option for binman > > =C2=A0 binman: add documentation for binman sign option > > =C2=A0 binman: add test for sign option > >=20 > > =C2=A0tools/binman/binman.rst=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 | 10 +++++ > > =C2=A0tools/binman/cmdline.py=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 | 13 ++++++ > > =C2=A0tools/binman/control.py=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 | 26 +++++++++++- > > =C2=A0tools/binman/ftest.py=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 42 +++++++++++++++++++ > > =C2=A0tools/binman/test/225_fit_sign.dts | 67 > > ++++++++++++++++++++++++++++++ > > =C2=A05 files changed, 157 insertions(+), 1 deletion(-) > > =C2=A0create mode 100644 tools/binman/test/225_fit_sign.dts >=20 > I see Alper's comments. Are you going to send a new version sometime? >=20 > Regards, > Simon Simon, totally forgot about this one, sorry for long delay. Yes, I'll back to it at the end of this month/start of september. Thanks.