Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99CF4C4320A for ; Wed, 28 Jul 2021 20:20:42 +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 E23B360F5E for ; Wed, 28 Jul 2021 20:20:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E23B360F5E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.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 ABB6182D73; Wed, 28 Jul 2021 22:20:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="AjkrhVXE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6DC4782D86; Wed, 28 Jul 2021 22:20:37 +0200 (CEST) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (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 734BA82CDA for ; Wed, 28 Jul 2021 22:20:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72a.google.com with SMTP id t68so3538406qkf.8 for ; Wed, 28 Jul 2021 13:20:34 -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:user-agent; bh=9vqoGt4ORVi33qh8YscA0rcsHAc2p2TQOoqBNDKmNtA=; b=AjkrhVXE4pqsBNHV2hOanVk+HLb1DXej7ZzYdguV/H+tokt95XDxeHxXZJRUpPdavP YfSnKrS5NKhS51OSDFd3kLU2MPPuhwllVZCJSD/1ZM+cvo7fKt7Mp41MSox28Zs0DM5P v4UDkSBJrWqf2xfveUMxC2VPLOVsIjWJV3wH4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9vqoGt4ORVi33qh8YscA0rcsHAc2p2TQOoqBNDKmNtA=; b=obfjG4Y9Pzl3nne/EiSvEVk1wxD9tnMVw0U5fCDO2a3ds+hzaxXHjXhUcKKc8CMak4 +SjQMn0YvnM8WpB4uZyO9xdRcoDme540WKNVzgoSG/GULevWoEYwlWSWDPXkutsE9JGb aJ7TmmgRmmuO8Bfqfm6NZcVZjBECNtgvvgBnHVncQZNVMqIZ4vCzDzPIixJF0V5LpCyG cJCAhN9RJ7ffZOw/shBPKhFkr5R64gQ+JWFq4CxpijBi2IZkZMBFl+zD4iGR2ld9sWov ykodurSTs1n3DvZARtywyjt1R/0w5timNea8/rTlzT7lcA9k39kYUH2YF/8Qw19a5iec /YFQ== X-Gm-Message-State: AOAM533PVWRfB7+LE4wt8ca5kcuiWWoX1Szs/sjgGVSREbAe/R8waHBm E/aj32zmgABgX142KaZnjsbKXg== X-Google-Smtp-Source: ABdhPJyXzzUBVwL798EE9ZVOmiY0YqbnnpA7kLZpV6Js4xunrtTVWQHSfGcox4L2+/TQxto1cQolNQ== X-Received: by 2002:a37:43c9:: with SMTP id q192mr1533202qka.470.1627503633284; Wed, 28 Jul 2021 13:20:33 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-3037-3a3d-435c-0707.res6.spectrum.com. [2603:6081:7b01:cbda:3037:3a3d:435c:707]) by smtp.gmail.com with ESMTPSA id g11sm367551qtk.91.2021.07.28.13.20.32 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jul 2021 13:20:32 -0700 (PDT) Date: Wed, 28 Jul 2021 16:20:30 -0400 From: Tom Rini To: "Chan, Donald" Cc: "u-boot@lists.denx.de" , Alexandru Gagniuc , Simon Glass Subject: Re: [PATCH] lib: rsa: Extract public key from private key if keyfile argument is used Message-ID: <20210728202030.GZ9379@bill-the-cat> References: <20210728183325.GW9379@bill-the-cat> <1627503457435.77119@lab126.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bZoop4wcDAgjdd6S" Content-Disposition: inline In-Reply-To: <1627503457435.77119@lab126.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) 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 --bZoop4wcDAgjdd6S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 28, 2021 at 08:17:37PM +0000, Chan, Donald wrote: > If the 'keyfile' (-G) argument is used, there is little value to require > 'keydir' (-k) argument since the public key can also be extracted from the > private key itself. >=20 > Signed-off-by: Donald Chan > --- > lib/rsa/rsa-sign.c | 28 +++++++++++++++++++++------- > 1 file changed, 21 insertions(+), 7 deletions(-) This is again corrupted. I think you may need to get git send-email configured to work. --=20 Tom --bZoop4wcDAgjdd6S Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEBvAcACgkQFHw5/5Y0 tyyMAwv/RJwmIxLkkScea4RlEHqCRTGjscLqiIyv3NJ1ULm0C7+0AQsrj7X7ihxG pKL9MmWcYO+BwxXCXvNKCVE7i2q5/FSk0J9A4XrEgMGnQDsZU/VEu5DK4dM5kYJf mwNY+bMAkkVfeYBKviLBhmsWB2MB3q90Wj+K57Fs1A30q+OcQKZWDl0B0FXq8CLC YW3bOVqyGMLKWNt/Yod3GaBbxqV/e+sTGIwWH14rBECOlaAY0vNnsB0pqB5YJ+ms 2jsgGqvMAkv6AJ21cNV9Xm6rooHHtERxPYOvyWm02QW7SxXx2BIshgfp17/jAmLu hpM9TihpQiWsAAg9NudXkgIPsF5V6K9Zlry88iRA3/EUMv25FBHpVwQPk2PWnb5M 8INGIDM2WDZgk7twM1+sZ3KDgTnBM4l7fgAaIqKxDs5bS6WxTl6yMMnx5C1BqEUq GmH8wmOa3HAg5KjPRfaD6ZxM8aU8f663/ul5FZKURs5QME9SRkRA8wKOMVTfEglq bSt1ZT+S =k99F -----END PGP SIGNATURE----- --bZoop4wcDAgjdd6S--