Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp730950pxb; Wed, 27 Jan 2021 21:07:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvhclcYjM7Zsy0wXaY+g37mcIFzmykQOyh4Ty5rtMyoS8DwQLLZDubxUwd1uY5DEZe5YlL X-Received: by 2002:a17:906:494c:: with SMTP id f12mr9706556ejt.56.1611810425395; Wed, 27 Jan 2021 21:07:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611810425; cv=none; d=google.com; s=arc-20160816; b=JywgzxocKZkUy3CuevQ6kHsu9O0ZPl1DXrl3Yy4CwzEmOkFXHZjZUlFj+zOaSIU8B5 pyj3I8v6NQ6tFYYDsqPbpVCjkQ5IymlM2nDDCT9Mkpwes7RXkfRtmHBh1/H7VxQpfY/D xuzmohvV0f7yN0oKT3B5Q6EkF3pjnE5OfxIPzHMFj2SL5QdRhfe9IKJ3MKFDGQK0qqse UxyxLePrzLsa0ukWER6v7pyrgoCS5+yCDF7P+t+VswUHcvUgArGOhB5Ftc7unYsjaC9h u+hTpflB6vhpgH1IWiXHhzk/bOvxGnSI1DkDBMD/nh2qtV4Xf/Un9n+oeQIGuwSRcfJZ +JaA== 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=a7UIOyt/GkL7AKpcxFnvorEj40aQwjFmZOUO1yVdzkM=; b=SNosTDyIyWK7nGEplPsW6mwLE4oOt8uZTbwkA70sx33ZOb4lQXxEW7jolgh+zxRtEd SaYjH0cVJ2zdHJLCw4OUS9QO3SDBS82hQMSqk+je24UTCiVCoCpKGw8oTpyyYY8gvXA8 EIXQeb6mel+AcbB+YIFYCFPqAHiXCaQsCFa7mkPnoqwIIN2XjeP/W4LHz4ognfaGmvMl bSYGBS9CsUtwaX0+kSJ44oyHsIJ+pL9mOhTH/38M4yeNrlsk/855Y5MTq8tKLYbTN5uV 6Cq3BQzXZuw9vCLh1OTSKuo4q1S9lrGjxm8DTItvaFanANC//lLifpEZlIhJmVDXqW20 XF4g== 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 w8si1865744ejv.203.2021.01.27.21.06.34; Wed, 27 Jan 2021 21:07:05 -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 S229462AbhA1FFK (ORCPT + 99 others); Thu, 28 Jan 2021 00:05:10 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:51564 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbhA1FFK (ORCPT ); Thu, 28 Jan 2021 00:05:10 -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 1l4zTH-0002Pd-36; Thu, 28 Jan 2021 16:03:56 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 28 Jan 2021 16:03:54 +1100 Date: Thu, 28 Jan 2021 16:03:54 +1100 From: Herbert Xu To: Meng Yu Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, xuzaibo@huawei.com, wangzhou1@hisilicon.com, linux-kernel@vger.kernel.org, Ard Biesheuvel , Daniele Alessandrelli , Mark Gross , "Khurana, Prabhjot" , "Reshetova, Elena" Subject: Re: [PATCH v7 4/7] crypto: add ecc curve and expose them Message-ID: <20210128050354.GA30874@gondor.apana.org.au> References: <1611299395-675-1-git-send-email-yumeng18@huawei.com> <1611299395-675-5-git-send-email-yumeng18@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1611299395-675-5-git-send-email-yumeng18@huawei.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 22, 2021 at 03:09:52PM +0800, Meng Yu wrote: > 1. Add ecc curves(P224, P384, P521) for ECDH; OK I think this is getting unwieldy. In light of the fact that we already have hardware that supports a specific subset of curves, I think perhaps it would be better to move the curve ID from the key into the algorithm name instead. IOW, instead of allocating ecdh, you would allocate ecdh-nist-pXXX. Any comments? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt