Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp33248pxb; Mon, 1 Feb 2021 21:15:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDoTcNlhoyxCMStVIkYmlyDmmtiKKuKCliqasGZsSUedGGWhny+/x9+Dk7g/3bBnX28Txv X-Received: by 2002:a05:6402:3508:: with SMTP id b8mr22253161edd.341.1612242924719; Mon, 01 Feb 2021 21:15:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612242924; cv=none; d=google.com; s=arc-20160816; b=l/r8lmCVz5e9wRfRZ0t6uaBuPq4foy2mCzmmw3OV7/5tt/EVAe8R+1KU/18N8vIGyQ zZCV7sn3lCXxlFglD63bZJ3XhRWbAzFmk3cIMXmD22aMg84Fd1u4qpbNmD/YdBU6Y2oW bBfpcxuEe7BKsTqUzAadYqNbKtnUUe8KrFicdykYuEMumbCNH7+QQj4pdZCzJ8nuGLKa xEvPODdRP/zPvnHF3wlceaJpjidAMdXk6Et7JYggmYAhcLZaPUhapY2IIElnG/D8lYoe kwmHIRoMJI1HqADJrj5cDjgSLH9VXImX1qPbSVM3Njsl8puDwUwSoaSV6QznTqq/UmT8 V4ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=yT1op1QUhK3LKJ78VOkACq+Ij/Nx9IhTfN9VSpNBUjI=; b=C0y1mZsxtpTTI2e7ucyCsG3LRxqpVchRKfVIADmY3yVhvrHx5FY3AADzNdLnr/psdd VXrGVOwbMgUsfracyfuzqP4PB785s+9fVbDyTU1s/089Ceuz2tHJIHsLKA41E/ZOEMKU QHSbTAWMSBLRftoQQ1WlGEVsqW9pkHSf9Qjqd7x2LbSg88obePHj0P/tSwlRooMZ1Ikk 7KspWKTn9RAFldYzPPBLj0ddqCuYpUbcU852mE19q/plcXB2bl1NBVACeh/3O1cgur/O 70lQJI+VgPc9BkhgKmObKBzr2V7sn2FZtIkcbqxWFsnqQJxQqBOrsaBBdQr2QL9HBIwR TFIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si1621978edj.13.2021.02.01.21.14.29; Mon, 01 Feb 2021 21:15:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229846AbhBBFK7 (ORCPT + 99 others); Tue, 2 Feb 2021 00:10:59 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:43878 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229466AbhBBFK7 (ORCPT ); Tue, 2 Feb 2021 00:10:59 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1l6nwy-0001Da-3d; Tue, 02 Feb 2021 16:10:05 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 02 Feb 2021 16:10:03 +1100 Date: Tue, 2 Feb 2021 16:10:03 +1100 From: Herbert Xu To: Saulo Alessandre Cc: linux-crypto@vger.kernel.org, "David S. Miller" , Vitaly Chikunov , Tianjia Zhang , Saulo Alessandre Subject: Re: [PATCH v2 4/4] ecdsa: implements ecdsa signature verification Message-ID: <20210202051003.GA27641@gondor.apana.org.au> References: <20210129212535.2257493-1-saulo.alessandre@gmail.com> <20210129212535.2257493-5-saulo.alessandre@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210129212535.2257493-5-saulo.alessandre@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Jan 29, 2021 at 06:25:35PM -0300, Saulo Alessandre wrote: > From: Saulo Alessandre > > * Documentation/admin-guide/module-signing.rst > - Documents how to generate certificate and signature for (ECDSA). > > * crypto/Kconfig > - ECDSA added into kernel Public-key cryptography section. > > * crypto/Makefile > - add ECDSA objects and asn1 params to compile. > > * crypto/ecdsa.c > - Elliptical Curve DSA verify implementation > > * crypto/ecdsa_params.asn1 > - Elliptical Curve DSA verify definitions > > * crypto/ecdsa_signature.asn1 > - Elliptical Curve DSA asn.1 parameters > > * crypto/testmgr.c > - test_akcipher_one - modified to reflect the real code call for nist code; > - alg_test_descs - added ecdsa vector for test; > > * crypto/testmgr.h > - ecdsa_tv_template - added to test ecdsa implementation; > --- > Documentation/admin-guide/module-signing.rst | 10 + > crypto/Kconfig | 12 + > crypto/Makefile | 7 + > crypto/ecdsa.c | 509 +++++++++++++++++++ > crypto/ecdsa_params.asn1 | 1 + > crypto/ecdsa_signature.asn1 | 6 + > crypto/testmgr.c | 17 +- > crypto/testmgr.h | 78 +++ > 8 files changed, 638 insertions(+), 2 deletions(-) > create mode 100644 crypto/ecdsa.c > create mode 100644 crypto/ecdsa_params.asn1 > create mode 100644 crypto/ecdsa_signature.asn1 Please join the existing thread on this: https://lore.kernel.org/linux-crypto/20210128050354.GA30874@gondor.apana.org.au/ Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt