Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp144972pxu; Thu, 3 Dec 2020 22:47:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2z0VIjRyFvH5+O+MeANlZfpw7jOXwqLomqgC4PElKHIhhgeXZd+74hRW3qOR0Zh66uxrV X-Received: by 2002:a17:906:7f95:: with SMTP id f21mr5984779ejr.340.1607064466253; Thu, 03 Dec 2020 22:47:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607064466; cv=none; d=google.com; s=arc-20160816; b=vEkmgDpfPsDwiHWkQSLE68cpjC0mt6qeRWlELK9iNsqRDoKWrIh6iFvYsss0ddwyhh w00F2/dmCkJaKLDeWLnIwkVuSltniIMgk9NyQc3SsOkfatlVseljzJY1htULm8gRr0/Q sPP2s2XSfAWs6ChGyyGYH9bcUQ1yYjp8Y7DEXQgCp3eMjHwDnRGNQXKhRdvM22a2dSNO CKVLEg/wKKm2jBT+EhBLwTPgunpUFnEbiSRYMeoRXBIiMHbSbWCZo/FLFZQJP4DvLVuu VTCAAUm9OoQNbuQDPKqah9RVrM4fNjUD5eqft3S5nppDPadTLo2g1PQBW8NmZfpIogJ4 fArw== 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=IcssmeQIpeYsN/cd8adYOqHOCAbIf6QvWcU9xfknnAc=; b=XR5GGlrwxoPi8mVttDbkF1GLE7BJuhdw6bBZyL5jN8byXP07YgUEJQ0uu6WdBvMx2W ID+zfNP7VaZbYrw+SMzD72TTgGv0LcB63cTA5ezf/q2v3BZMCbCaG9LwuUIQFTVyrOZh hxB5SK+5nwfK8hLsz1/U6f+f1rQC01AfTmWetFO4pJxSF4lccHgrTMr0f6HvpIbLqg+6 +MhEtxo4CfDYR3rH34xzw2TNSa7qAuYSm1S3aG9mCUR0i5HKucT77MoIN8y9wrcw+ccO 8L20fh5legKpFIntl0MAyzO7YkHOzr/7U770HX4ezrQc89iee2xBQ8O5i/KZjc/ariqh K5WA== 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 v18si1717238edd.267.2020.12.03.22.47.10; Thu, 03 Dec 2020 22:47:46 -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 S1725372AbgLDGrA (ORCPT + 99 others); Fri, 4 Dec 2020 01:47:00 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:60772 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727452AbgLDGrA (ORCPT ); Fri, 4 Dec 2020 01:47:00 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kl4r3-0006KX-Cl; Fri, 04 Dec 2020 17:46:10 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 04 Dec 2020 17:46:09 +1100 Date: Fri, 4 Dec 2020 17:46:09 +1100 From: Herbert Xu To: Saulo Alessandre Cc: dhowells@redhat.com, davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Saulo Alessandre Subject: Re: [PATCH] implements ecdsa 256, 384 and 521 alghorithm in akcipher model; change pcks7 and x509 to load certificates with ecdsa; increment testmgr to test ecdsa algo and finally allows signature and verification of modules with ecdsa algorithm Message-ID: <20201204064609.GA26322@gondor.apana.org.au> References: <20201126020308.25982-1-saulo.alessandre@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201126020308.25982-1-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 Wed, Nov 25, 2020 at 11:03:08PM -0300, Saulo Alessandre wrote: > From: Saulo Alessandre > > Signed-off-by: Saulo Alessandre > --- > Documentation/admin-guide/module-signing.rst | 10 + > crypto/Kconfig | 12 + > crypto/Makefile | 7 + > crypto/asymmetric_keys/pkcs7_parser.c | 7 +- > crypto/asymmetric_keys/pkcs7_verify.c | 5 +- > crypto/asymmetric_keys/public_key.c | 30 +- > crypto/asymmetric_keys/x509_cert_parser.c | 30 +- > crypto/ecc.c | 228 ++++++++- > crypto/ecc.h | 62 ++- > crypto/ecc_curve_defs.h | 82 +++ > crypto/ecdsa.c | 508 +++++++++++++++++++ > crypto/ecdsa_params.asn1 | 1 + > crypto/ecdsa_signature.asn1 | 6 + > crypto/testmgr.c | 17 +- > crypto/testmgr.h | 78 +++ > include/crypto/ecdh.h | 2 + > include/linux/oid_registry.h | 12 + > lib/oid_registry.c | 108 +++- > 18 files changed, 1146 insertions(+), 59 deletions(-) > create mode 100644 crypto/ecdsa.c > create mode 100644 crypto/ecdsa_params.asn1 > create mode 100644 crypto/ecdsa_signature.asn1 Please split your patch up. You should also explain in detail why this patch is needed in the kernel. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt