Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5323045rwb; Wed, 7 Sep 2022 00:31:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR6c1E/cud6Y1Ull6U+f25ZuktNidd7QEcpfNb+sV1aSZAudMcSbcpvsHCHDQFouP4lLEXuB X-Received: by 2002:a17:907:7b94:b0:731:1b11:c241 with SMTP id ne20-20020a1709077b9400b007311b11c241mr1447696ejc.676.1662535917696; Wed, 07 Sep 2022 00:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662535917; cv=none; d=google.com; s=arc-20160816; b=vgTJotunNnZWGXyisqb/anVeXj+bJ3R5DGl6UJ1cIwbAPZ3H46By7fU0rOYUdtuG8A uTXZe6Pdbg3/drjLM2VPXWwyFW0vg3oZAbzAJYMmqNYFHdgL5Th7m7TwXOoqFX26HinM vXFHZJEl+QFWClCTUphPNVRS6IoJvt2tPHEU5VLRREFCBTARCH30R7V4H06P+J7Ki+UB qTHRmB3Q5sweXsbXiLdewcN3MLdszyA8IwRvVitVNPWTXXBYQdep2KH01Rc2lQzwf4dX TyeiemonwD7g5ay2sjbeEnPZ5XO+LFPlWzFuYAy+gUyKjRi6Um1S1x2sl2e82EQUZH8p h/2Q== 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=drWjSR6j1KEuLcl62b/hofhu+bXcDHr1qrraAbiXnsQ=; b=Epo3XJmOpZIO4splql9LzuQAw1I1zwU+V+czxTna56XLqjfg0JDqlsWlmzUHOfCM8Y owBcSGfRv1hG7mUIIIWQntlllBPo2YVBHcnDJ2oOej68AmhfYp4eBKQ4h09jxSD1SztF bO4KQFP+hi3KKDiXeeh+obLrzETtnF+Xs76zZOYC01DOyVEDZfxIb4M5lpmUkJ08uXMN DtKXQCOLzBWnw2H1H2SIvVU32ECSK95DX8m0t1784YscMPUNFvIgvotmBsuYkbpOcMII HMtvLzO/C5gKRrydf3oPZMfTJHaLUlCYzOLlk2bX7f4S6M6LiqRQF/aD3v88Dc3n8czt KlKw== 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 f22-20020a17090631d600b0073dd946b66asi2363483ejf.444.2022.09.07.00.31.33; Wed, 07 Sep 2022 00:31:57 -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 S229543AbiIGH1I (ORCPT + 99 others); Wed, 7 Sep 2022 03:27:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiIGH1H (ORCPT ); Wed, 7 Sep 2022 03:27:07 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4F0F74CD8; Wed, 7 Sep 2022 00:27:03 -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 1oVpRr-001w5E-4t; Wed, 07 Sep 2022 17:26:12 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 07 Sep 2022 15:26:11 +0800 Date: Wed, 7 Sep 2022 15:26:11 +0800 From: Herbert Xu To: Pankaj Gupta Cc: "jarkko@kernel.org" , "a.fatoum@pengutronix.de" , "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 , Kshitiz Varshney , Horia Geanta , Varun Sethi Subject: Re: [EXT] Re: [RFC PATCH HBK: 2/8] hw-bound-key: flag-is_hbk added to the tfm Message-ID: References: <20220906065157.10662-1-pankaj.gupta@nxp.com> <20220906065157.10662-3-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,T_SCC_BODY_TEXT_LINE 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 Wed, Sep 07, 2022 at 07:22:42AM +0000, Pankaj Gupta wrote: > > Current support, does not permit the hardware to support both types of keys: HBK & Plain Key, at the same time. > > This change is generic and permit any driver that supports both- HBK and plain-key, to differentiate and use the keys accordingly. Existing drivers simply register hardware keys under a different algorithm name, there is no reason why they can't coexist with a plain key. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt