Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3529848pxb; Sun, 31 Jan 2021 19:47:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuxfzstV2LutYtxtGEFzpO8gv6CLYVjYdHnBTDWDMvw2i7ZFyLEwlsNSd5uJVW8QHWyZSE X-Received: by 2002:a17:907:9879:: with SMTP id ko25mr15923781ejc.524.1612151223764; Sun, 31 Jan 2021 19:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612151223; cv=none; d=google.com; s=arc-20160816; b=GQXDf6W6j9jB9KfBj0Ni7uoe7OAmPFffDFHWFpDm6xjukUoCvgRELw6Zb9/zBpPZl6 KWRwYH6SLfsmWphZ3PHcEsNn4Uz76KnRDyZ+z/GJL6X110d6hEBmgAhDZwm+R3mUte8f xo4Za4jo4SMdiWEz7xHzuQ8GfHwiG+vMn6y+mCBgPHC9q+kZU2+OFZby3nQukXLEJ7eG 7rTkNLlRumpdzbCVy5SkHcVkl+D2ia48H4iA4RxvSxzytElzmLMYTry8+egaIxTaxzPB 9RInunhagpGT8fEcd4hv7UjNpBghqFGbaMvQc9U40GgtcsRHOwIUAaSxV0995fiFLnLZ Ppog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=YMtPeCqwIZ/03nTg4JleHyUfJ6hXRj9uxgo8SZ+Rw/c=; b=vpLaJQ86JZAlQqgEbiKwkDFIkhM/0PRtt47+VN2U/ys8+toB29UzxZW3/8fFFAddbU 1QFNI6xKBZH9Zw58pGwnVrn3Cd8Le1FbS2qWz5hmPOHWz8Nn4U2ikqNYEFBt8r/ZVGv+ lUHi2ehKRRfso9aYxQGQnMBxxvK1lVjIYrKM6kpfzkJgEdNi/MEea+yk1pIXPJYPKYMM qXM/2H8GMhc6e0dfS3rWw0vLnakLwJ7d8m+LRaQlesNaFPJu97LV6FYtQeHnbg6/2p6A lFg0KhApsbUMcS5w4gxOp45I/V/Y36XhgbVMmsT2RMJEaJooC0NU/rl4TOqvvYXhAlpt Cc5A== 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 v19si824175eda.391.2021.01.31.19.46.32; Sun, 31 Jan 2021 19:47:03 -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 S231136AbhBADqH (ORCPT + 99 others); Sun, 31 Jan 2021 22:46:07 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:11993 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231302AbhBADqG (ORCPT ); Sun, 31 Jan 2021 22:46:06 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DTYhn0WRRzjH7m; Mon, 1 Feb 2021 11:44:09 +0800 (CST) Received: from [10.67.103.10] (10.67.103.10) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Mon, 1 Feb 2021 11:45:16 +0800 Subject: Re: [PATCH v7 4/7] crypto: add ecc curve and expose them To: Herbert Xu CC: , , , , , Ard Biesheuvel , "Daniele Alessandrelli" , Mark Gross , "Khurana, Prabhjot" , "Reshetova, Elena" References: <1611299395-675-1-git-send-email-yumeng18@huawei.com> <1611299395-675-5-git-send-email-yumeng18@huawei.com> <20210128050354.GA30874@gondor.apana.org.au> From: yumeng Message-ID: Date: Mon, 1 Feb 2021 11:45:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20210128050354.GA30874@gondor.apana.org.au> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.10] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org ?? 2021/1/28 13:03, Herbert Xu ะด??: > 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, > Yes??It is a good idea, thank you!