Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1913340rwi; Tue, 11 Oct 2022 02:05:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7uBNSi2gugDI/EmF7ZybSFci6V+xli0x1yaxr6SHx3Cs6aD/XIH+5T4IkN2+9THyPe+fr9 X-Received: by 2002:a17:907:270f:b0:78d:728b:ff4 with SMTP id w15-20020a170907270f00b0078d728b0ff4mr16196550ejk.501.1665479146059; Tue, 11 Oct 2022 02:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665479146; cv=none; d=google.com; s=arc-20160816; b=mmyWDPihUIb8AoJk/7TWz8ej0IP1TcHmwfv4dT++MnDlK/x7WqF/kFF28NO6kjEYwQ xTMSx36OcJhJwYhM7yqndxQOQyDvhzIefI1HSnVsINkpi6tqMENTvdsPe3+ePX2lND1o 58DSWCxBNozOHTwfg6SpDBvy0Kn4M8/A6KjsFLxlJUIi2tLennDVB30S+pRJoyJFznhP wx1IBkEMxPFFYQZt/TtaFKk3gazVVFV+zIw37C29SYEcZ2lq4Jnwo7YWFYKGfYRjvwXd 51uwsoSIhoeKmtDfBb80Yiu2kvBnlX+DXjTEUntXTkoMI0x0TUIlpYwiSaQGSqD3B31P oU7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=1wkZbn4ZAH0Ibivy0yGfUmU3W3RJNaR+3INb8J9beHg=; b=KS1ETeGcHZ12CtJ12iW0Se8ZzvmQpNOKy+8nKD8Mn9ZOLIMsCsk1hcOsUiSmqIygZU bGa0iGn/Jk4mWZ37bV4drY/7vhM0O37OomoqByrKUnWsEQ6zSyPSIVwBD1FIgCIdcijk 6+dWcN+Rgc7gsq2dyGxYE4eLJHRX0y2Ekv/l6CE/S6+GREgU6oPgi57PyC0p9e+aiC9F jOtcGbupM4H/cCyMPK92cqthU4V0quO5o4+08dHE2EzCilkUylrtw3F/z6dzVQ8A8nFT DyKPYEhQFrd0K+oidDBN5hYoOfEckudrpK/Teq1Dbc4hplVCQ3AZ+zI6uts1S2oDMggP Ylig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb38-20020a170907962600b0078dcf11ccf7si2816329ejc.802.2022.10.11.02.05.14; Tue, 11 Oct 2022 02:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229875AbiJKJEn (ORCPT + 99 others); Tue, 11 Oct 2022 05:04:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiJKJEl (ORCPT ); Tue, 11 Oct 2022 05:04:41 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADD9DC72; Tue, 11 Oct 2022 02:04:38 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1oiBAh-00DX96-C3; Tue, 11 Oct 2022 20:03:32 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 11 Oct 2022 17:03:31 +0800 Date: Tue, 11 Oct 2022 17:03:31 +0800 From: Herbert Xu To: "Jason A. Donenfeld" Cc: Pankaj Gupta , "jarkko@kernel.org" , "a.fatoum@pengutronix.de" , "gilad@benyossef.com" , "jejb@linux.ibm.com" , "zohar@linux.ibm.com" , "dhowells@redhat.com" , "sumit.garg@linaro.org" , "david@sigma-star.at" , "michael@walle.cc" , "john.ernberg@actia.se" , "jmorris@namei.org" , "serge@hallyn.com" , "davem@davemloft.net" , "j.luebbe@pengutronix.de" , "ebiggers@kernel.org" , "richard@nod.at" , "keyrings@vger.kernel.org" , "linux-crypto@vger.kernel.org" , "linux-integrity@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-security-module@vger.kernel.org" , Sahil Malhotra , Kshitiz Varshney , Horia Geanta , Varun Sethi Subject: Re: [EXT] Re: [PATCH v0 3/8] crypto: hbk flags & info added to the tfm Message-ID: References: <20221006130837.17587-1-pankaj.gupta@nxp.com> <20221006130837.17587-4-pankaj.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Oct 10, 2022 at 09:15:48AM -0600, Jason A. Donenfeld wrote: > > Do you mean to say that other drivers that use hardware-backed keys do > so by setting "cra_name" to something particular? Like instead of "aes" > it'd be "aes-but-special-for-this-driver"? If so, that would seem to > break the design of the crypto API. Which driver did you see that does > this? Or perhaps, more generally, what are the drivers that Herbert is > talking about when he mentions the "plenty of existing drivers" that > already do this? Grep for paes for the existing drivers that support this. I don't have anything against this feature per se, but the last thing we want is a proliferation of different ways of doing the same thing. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt