From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B665C433DB for ; Mon, 1 Feb 2021 07:25:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4191264E2F for ; Mon, 1 Feb 2021 07:25:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232020AbhBAHZn (ORCPT ); Mon, 1 Feb 2021 02:25:43 -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.