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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24B98C433F5 for ; Wed, 10 Nov 2021 07:41:15 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8E6086113D for ; Wed, 10 Nov 2021 07:41:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8E6086113D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=siemens.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D423083981; Wed, 10 Nov 2021 08:41:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=siemens.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 3992483983; Wed, 10 Nov 2021 08:41:11 +0100 (CET) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B0BBF83944 for ; Wed, 10 Nov 2021 08:41:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=siemens.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jan.kiszka@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 1AA7f5Rt017570 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Nov 2021 08:41:05 +0100 Received: from [167.87.75.31] ([167.87.75.31]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 1AA7f4cJ016549; Wed, 10 Nov 2021 08:41:04 +0100 Subject: Re: [PATCH 1/2] tools: add fdt_add_pubkey To: Roman Kopytin , Simon Glass Cc: "u-boot@lists.denx.de" , Rasmus Villemoes References: <20211108152844.3656459-1-Roman.Kopytin@kaspersky.com> <20211108152844.3656459-2-Roman.Kopytin@kaspersky.com> From: Jan Kiszka Message-ID: <2ae3de8a-3c70-0f89-8bc7-51089b68bf64@siemens.com> Date: Wed, 10 Nov 2021 08:41:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean [no top-posting please] On 10.11.21 08:03, Roman Kopytin wrote: > Hi, Simon > I have question about: > Some of these are not optional so should not have [] around them. > > As I see we have defaults for: > static const char *algo_name = "sha1,rsa2048"; /* -a */ > static const char *keydir = "."; /* -k */ > static const char *keyname = "key"; /* -n */ > > It means that we can skip it in command line. Should I need to remove [] from code for those parameters? > Those have defaults, and if you place a rsa2048 key in ./key.key, fdt_add_pubkey will be happy. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux