Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp539725rwb; Fri, 7 Oct 2022 00:08:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Ebg4xr5/936x2DwCE0MBA4KqOWpK5DViR1VFRAH88VgRSFIgR172w0mcIEZOpgwX+G8l5 X-Received: by 2002:a62:4c2:0:b0:52e:bd4d:50e1 with SMTP id 185-20020a6204c2000000b0052ebd4d50e1mr4020479pfe.8.1665126485360; Fri, 07 Oct 2022 00:08:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665126485; cv=none; d=google.com; s=arc-20160816; b=alCYZobY+LdfaiwnzcOeWTloPHQgT5wkYZ0SyIPSzkL1MVUVpUyNO2I9u2PRLf7b7S T+T58udjKEs7+s2oQUUynhdQqOLTJZaeyZfC9b2kzTKuvltYqm5/z7bjYO5zDUZzW0/x mCBmzILOmLv80QK8Luv59YCfuOV4qvc/xc/7Z85dgKUWcHNLEVUdiW4B9jFD+seEfIi4 ZIZuSaYifsZgkD1/Nh8GvQnQQ4zqSgOt0V1nyrmpp+iErhFL4Ao5NFv1qTtmVwUn7QdF RoJ5YP1pDJE8RokVtupUsqqkPWZ25YHF8U3Gsx5yrr/XXKxnF6t8cqnh0FLovw48L2Up yqxA== 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=LX88qg6I17CXlEnW3ZkEyQWDcCcHHN95EbYMyuJNqVA=; b=EjT+UHzzhsl5OD/4oSKb2Zzeo9P467eSo1UQmcUOGT0YeAWyQWyC2SRvmz7w1i36O2 YjscXc42pnnTZZdW1H62jxHAucHGyJxERcOrH/j9hvslap4fW2DOdHb5NI3aPhwDueP2 LH9vNebv7zPc31/KVdDW0+FqmJTXQM012Yod9d281uPRjL4zeVJ9D4woIWgaJNt5zdQM x3aC0V/vBbP2kYAKnXWjHtcmSuCra/1LxN0k1DyVnaSxnqIEs+fArE++XgSTq/AQPsqG nBhfliGH4JuBIwEvmah1PF+feh81OKX0NMwOw5fbbUWBMpf0TPQjwa5C9GfZsTtRF6rb 6prg== 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 r1-20020a63a541000000b0043512d6488fsi1936195pgu.614.2022.10.07.00.07.42; Fri, 07 Oct 2022 00:08:05 -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 S229790AbiJGG7k (ORCPT + 99 others); Fri, 7 Oct 2022 02:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiJGG7h (ORCPT ); Fri, 7 Oct 2022 02:59:37 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F402FDB58; Thu, 6 Oct 2022 23:59:31 -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 1oghJT-00COYa-KE; Fri, 07 Oct 2022 17:58:28 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 07 Oct 2022 14:58:27 +0800 Date: Fri, 7 Oct 2022 14:58:27 +0800 From: Herbert Xu To: Pankaj Gupta Cc: jarkko@kernel.org, a.fatoum@pengutronix.de, gilad@benyossef.com, Jason@zx2c4.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@nxp.com, kshitiz.varshney@nxp.com, horia.geanta@nxp.com, V.Sethi@nxp.com Subject: 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: <20221006130837.17587-4-pankaj.gupta@nxp.com> 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 Thu, Oct 06, 2022 at 06:38:32PM +0530, Pankaj Gupta wrote: > Consumer of the kernel crypto api, after allocating > the transformation (tfm), sets the: > - flag 'is_hbk' > - structure 'struct hw_bound_key_info hbk_info' > based on the type of key, the consumer is using. > > This helps: > > - This helps to influence the core processing logic > for the encapsulated algorithm. > - This flag is set by the consumer after allocating > the tfm and before calling the function crypto_xxx_setkey(). > > Signed-off-by: Pankaj Gupta > --- > include/linux/crypto.h | 5 +++++ > 1 file changed, 5 insertions(+) Nack. You still have not provided a convincing argument why this is necessary since there are plenty of existing drivers in the kernel already providing similar features. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt