Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp33727pxb; Mon, 1 Feb 2021 21:16:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwm0CbbO4iRp2JKb03LW6kCfG6eyK7hl/3RrIK7An/7LxAUEB0Gijv2fw3pT9/OT7WO0fNn X-Received: by 2002:aa7:de10:: with SMTP id h16mr22842291edv.295.1612243000668; Mon, 01 Feb 2021 21:16:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612243000; cv=none; d=google.com; s=arc-20160816; b=up6EFEqRD+uzyJCGQZg5IWOxwFGdpc1cL8/z+qiJJe5xITwyNM1w4uLqmht5JEjEkF ZoLqyBoUvOoPl1ZksWM1AOxE28EbS1cgCysywvZy8PuyNjglAmVa/YlMUCroVFgIjGjA r5t/jBQup8SDwKjJwtdyjZLbluHpcIKsZMsTwtjzAPwXZlXhsB2AyXTI+wGlFiM987xO /AiCGM8ANTAraOzyvp9Rk0/cz5D3ZntgN3FUM7dZsBqhz28Vbaa5It4ecg6wNdOtE9TR AiWZg5xDeIdizfJKgML9sCf/QMvrja4xKDVAjgUaEY17nnqs4abxMKdcAjTsXT+rVwLj fItw== 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=8FW5fANo6FlyU6VIROoIo+k3gOjQNPiBHh9yPZzuEy8=; b=tATbETUzU4wKwaiRowW87m1RynzvZ5Ej8f9EPw8EgXI1E1yeuGlzlpP4W9zA0kZdUM L5m3tHy83l1E3u4vBKVJyUVOR4t1Fm4HiEGt+/v8ujpQcNWhwi7kIDoIPIqVGW1Ae0pU DNjEvm009XDWDG0RNGnCR2KViCx6CoBCUzmnSgoxvsq5WQZpEEUD17Fx0C3D7MfW4vHV LTIUwZNkWRLGdvdizItQuJ67AluB+G/K+QMcVnmDzNzznDI5frvJdHk5fWNbMcICjIoi c7OzI1YpfZz7cBn6ImT3sgCMUg6guQn7kjjOY9fZS0OGYdxZJdfiy+f/wKdokQIdtKSy /z+g== 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 b13si11937991edk.29.2021.02.01.21.16.15; Mon, 01 Feb 2021 21:16:40 -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 S229685AbhBBFPQ (ORCPT + 99 others); Tue, 2 Feb 2021 00:15:16 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:43898 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbhBBFO6 (ORCPT ); Tue, 2 Feb 2021 00:14:58 -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 1l6o0Y-0001Ei-Md; Tue, 02 Feb 2021 16:13:47 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 02 Feb 2021 16:13:46 +1100 Date: Tue, 2 Feb 2021 16:13:46 +1100 From: Herbert Xu To: Daniele Alessandrelli Cc: Ard Biesheuvel , Meng Yu , "David S. Miller" , Linux Crypto Mailing List , Zaibo Xu , wangzhou1@hisilicon.com, Linux Kernel Mailing List , Mark Gross , "Khurana, Prabhjot" , "Reshetova, Elena" , Daniele Alessandrelli Subject: Re: [PATCH v7 4/7] crypto: add ecc curve and expose them Message-ID: <20210202051346.GB27641@gondor.apana.org.au> 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> <20210128103908.GA32495@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Feb 01, 2021 at 05:09:41PM +0000, Daniele Alessandrelli wrote: > What's the downside of letting device drivers enable all the curves > supported by the HW (with the exception of obsolete curves / > algorithms), even if there is (currently) no user of such curves in the > kernel? Code size and maintainability? The issue is that we always require a software implementation for any given hardware algorithm. As otherwise kernel users cannot rely on the algorithm to work. Of course we don't want to add every single algorithm out there to the kernel so that's why require there to be an actual in-kernel user before adding a given algorithm. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt