Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp858883pxb; Wed, 3 Feb 2021 21:42:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRFtC9P6FbftpTm44iYkONx+f2CbGkAPhgT9QkK3C9jhrJaK30sXiDQrrll/nXkTNtPzF8 X-Received: by 2002:a17:907:948d:: with SMTP id dm13mr6279214ejc.545.1612417363531; Wed, 03 Feb 2021 21:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612417363; cv=none; d=google.com; s=arc-20160816; b=kDuJBMK1JaJpfM+JEjxOp/ZVfgVpwxLEo/oJXilr7LB+/z0BwRQnP0Oh9r95kejwAC rZGM+lN8341iHYeGjDIgRU7vo6QGh0aRnfNyCVbG8RTIwCL6HzOfWd1rwb85vggc2UOb ci5ZK83XO511tLnyYgACNs9AO9OmaNVucdNQ9L6HJ6Z3yYO2ZLCWZ/kj839drOgJqLnm mIKtePb3DPA9tnK94QVNeMh4PIGbjJ3HLUNWcIGs+mhuQj04vTWOK5IvT+65evYRfBH/ 3T3mBxiIhdKwqXjAsd7/jd943Xp6G4yXaqc97IA71CUmfAXS53EqUMUmvu+YTGQ4U/iG LMGg== 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=qh7rWL/DQ88OnPG18aaBUv6F/9Fvj09o86SUeZyCj5M=; b=MfYEgGvEWPT356j3dBrE7PEZFZgTkaiWwoCG8bGAtHu79cMWrFC6hgAZ4AW05BW411 ukYtfewfdQAGSHbuTtj48TnOzJiJ3yCV/nn6PzUO2gbJQhYOTV3+zJ1EHTFz84ZTHatv fcDVE3R7kBBDXyCmlTJPWWYegsIDca3NHCFHK8enA8zDoOiL7yoDkE4cfeXZwnXNCfwY cZFsO/40D+FyNb+M+ZFVtnUJxrdZbk6QXM1QtH+46k5nSc3cxkY7VqotxunS5dJO/b3c XsRd7mIa/mpAkfB9yF98y+VC66QWfxKr4D3rxLxK2UiSKJRxzPPCX8jYHi5k/tyOUqKu EH2w== 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 t4si2661245edy.414.2021.02.03.21.42.17; Wed, 03 Feb 2021 21:42:43 -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 S229752AbhBDFmP (ORCPT + 99 others); Thu, 4 Feb 2021 00:42:15 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:51580 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbhBDFmP (ORCPT ); Thu, 4 Feb 2021 00:42:15 -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 1l7XOO-00022g-Af; Thu, 04 Feb 2021 16:41:25 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 04 Feb 2021 16:41:24 +1100 Date: Thu, 4 Feb 2021 16:41:24 +1100 From: Herbert Xu To: Saulo Alessandre , Stefan Berger Cc: ardb@kernel.org, daniele.alessandrelli@linux.intel.com, davem@davemloft.net, elena.reshetova@intel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, mgross@linux.intel.com, prabhjot.khurana@intel.com, wangzhou1@hisilicon.com, xuzaibo@huawei.com, yumeng18@huawei.com Subject: Re: [PATCH v7 4/7] crypto: add ecc curve and expose them Message-ID: <20210204054124.GB7229@gondor.apana.org.au> References: <20210128050354.GA30874@gondor.apana.org.au> <20210203180344.2418055-1-saulo.alessandre@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203180344.2418055-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, Feb 03, 2021 at 03:03:44PM -0300, Saulo Alessandre wrote: > > In this patch I'm using akcipher allocate like ecdsa(sha1,sha256,...), > because the ecdsa algo is generic, and using the curve name and ndigits > inside vli_mmod_fast to discover the curve, but I agree the correct way > would be allocate ecdsa-nist-p521(sha1,...) and have all params for the > curve inside strut ecc_curve, remembering that we have anothers curves > incoming, like Edwards. I'm not sure whether we really should encode hash into the algorithm name. This may be something that we can move into setkey instead. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt