Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3621135pxb; Sun, 31 Jan 2021 23:28:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwElcM0quo9vmlVRTQThb6RHCLR2HG7wWAie/8nczBAxoJTCoq8yF1fpHMFUN4Lea+dnsUC X-Received: by 2002:a17:906:fc5:: with SMTP id c5mr15819060ejk.538.1612164485422; Sun, 31 Jan 2021 23:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612164485; cv=none; d=google.com; s=arc-20160816; b=PzN94zHrT0veuc+Ijnc6zAbxPutoibf59A3kMV2IeREcMw44HRFX/3SksAqb5Kwv7z IMi7b3sh7B4vPbBGjZsZ+C9VZI+oF6EyaOIkSLbl3YoMEio2xv0ZRNfZara/Xwfb1Ken D1q54ke7779XTcNcrty+isDIqAsECzqE4XIwQ+2LDkP4iRAVDdHWzuf8u/lTvU+nLKUl BzYpPH3uw25nUZJXj+kkAzDPYpx3WLzM7XSffOyhO1oqaWMecU65sJzGqPJg9FU7h11j W9lIreJRI8t0djilrngen6nnfAIodJGqkkxYXbx3Zv+FSbMt/zdukc8RliHZHSrRTA/Q wUQw== 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=DEekLnAymRavzJ/f8fzR/SpGztZuXjvbwaltAFDHx6Q=; b=iRsxd2DPyRHgaOqD+jd0E+ES4/VrNMVqcfF3Xj22W4xhNhiB9TkbN1lCzcwlTLk/nl p8d5oj+rLi/W2cnG+aAA8Y79b4R7YcA21KSlQjAeiB8tddTJhISVnKvyoTc2Ur6yWalI Dgj9djYsf+TmZLfKmwxdR2eTC0Df9mRUWtxWAuQhzyST9VczjzpcrA++fuwwxYF9tUj5 Fg8NxQeqT2qpL2C2AtdUQ3bQQ54+RK8uzA4IKAk9cRrFZ23qb3/lrmTYL5hgSJ66TSLd 9pMbIK7v1XCjYs3F0ft9pDtJIjUt84CQKfHcP+iACq/ognAm6os+SCtGhEkXLbUAKxiU y9yA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 m24si10205895edr.215.2021.01.31.23.27.41; Sun, 31 Jan 2021 23:28:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231920AbhBAHZk (ORCPT + 99 others); Mon, 1 Feb 2021 02:25:40 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11662 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231992AbhBAHZM (ORCPT ); Mon, 1 Feb 2021 02:25:12 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DTfY32nbvzlDjj; Mon, 1 Feb 2021 15:22:47 +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 15:24:23 +0800 Subject: Re: [PATCH v6 1/4] crypto: Add support for ECDSA signature verification To: Stefan Berger , , , Herbert Xu CC: , , , "David S. Miller" References: <20210131233301.1301787-1-stefanb@linux.ibm.com> <20210131233301.1301787-2-stefanb@linux.ibm.com> From: yumeng Message-ID: <289ef2ac-d653-47b3-7771-5d8a7342ad21@huawei.com> Date: Mon, 1 Feb 2021 15:24:23 +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: <20210131233301.1301787-2-stefanb@linux.ibm.com> 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-kernel@vger.kernel.org ?? 2021/2/1 7:32, Stefan Berger ะด??: > +/** > + * ecc_get_curve() - Get a curve given its curve_id > + * > + * @curve_id: Id of the curve > + * > + * Returns pointer to the curve data, NULL if curve is not available > + */ > +const struct ecc_curve *ecc_get_curve(unsigned int curve_id); > + > /** > * ecc_is_key_valid() - Validate a given ECDH private key Shall we move this definition to 'include/crypto'? Other drivers may also want to use it.