Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6015014rwn; Mon, 12 Sep 2022 19:15:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR6iPmMBZVUEP9EqO9y51HwaKCJOJtajIxvPvfnq9RFEEqy1bLEuuamZnWS+gMop8RBJgl2H X-Received: by 2002:a17:907:16a3:b0:777:be43:7670 with SMTP id hc35-20020a17090716a300b00777be437670mr15435369ejc.552.1663035338564; Mon, 12 Sep 2022 19:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663035338; cv=none; d=google.com; s=arc-20160816; b=wyz4Pg2UUkT68uMaATPHiQi1qNu5UMsnLwoO0d1gunNfwkVyCaRYj57DLN/qqpsJ6R JAYqZzL0Xn8Lx+RK+sIxy2ZYDaahePMoQ+T+HD/s+YFSJv7x0LbPERB3lB3g2MM8kjn2 Nmo/aZkH+u60pOp7Aqad/wK3cUVDYJS+2KDuWSFa3/ukD9S625kJMR/xlHzbWBWVrokr YIp5mWN+omQeu33SrxqUrj27wIYLXq18KgufAk6/c5xNAzE1XQPZI6cdQVgA+uyQ0EdY ovUjzqL8/9xVu/ldd2KetC2ILLC/qXiG6/voujeS2/MQbLz2wXZy1PtkHpaSQA1qFCjn uGiw== 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=QjHiXcezOStdWfOu2ANDPvp68wveJSMfEM9NfFy4awY=; b=LYY+lkU78v8TOrImxfX11V+vh5kx46urt5tSRm/h1T3yxeSecVg41+jP7Zg6pB+NIo Vx3UtCVUCVRGFN/iPsFPQWh0c+yrqwM8fCuvqarT+VKjf4/PVbzCgq9j4nhFHzEYJDb6 eFrA6nFyLWqdmShUC2dv6PxSIvrHkLJJJ4kzhiz9tpClESZjB2E6DFlllM/jpUPdIGHW qIAWkHfU9V+aDgZALKTZHjMVAx0e4rXG9qFMkhFmGT9Rx9+CGpRNXG2CcYUzt4gezRyA FE6baKF3qIUASLJUmCK1dMxgaSih1YKcOkHpGW85raZ4zo5Om11VrM/bVj4Huontk00Z pDDA== 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 hr42-20020a1709073faa00b0077fad1e7d16si1766486ejc.371.2022.09.12.19.15.03; Mon, 12 Sep 2022 19:15:38 -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 S229528AbiIMCGj (ORCPT + 99 others); Mon, 12 Sep 2022 22:06:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiIMCGi (ORCPT ); Mon, 12 Sep 2022 22:06:38 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A6AB4F6AA; Mon, 12 Sep 2022 19:06:34 -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 1oXvIx-0045If-6p; Tue, 13 Sep 2022 12:05:40 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 13 Sep 2022 10:05:39 +0800 Date: Tue, 13 Sep 2022 10:05:39 +0800 From: Herbert Xu To: Varun Sethi Cc: Pankaj Gupta , "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 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 Mon, Sep 12, 2022 at 05:19:44PM +0000, Varun Sethi wrote: > > > On Wed, Sep 07, 2022 at 09:58:45AM +0000, Pankaj Gupta wrote: > > > > > > There are 3rd party IP(s), which uses kernel for crypto-algorithm's operations. > > > Modifying the algorithm name in these IP(s), is not always allowed or easy to > > maintain. > > > > So the objective is to support out-of-tree modules? > [Varun] No, the intention is not to use out of tree modules but to allow seamless use of crytpo ciphers with keys backed by security co-processors (keys only visible to security co-processors), by Linux kernel and userspace components. Hardware backed keys are being introduced as a variant of existing Trusted keys, with the difference that these are not un-sealed and released in plain to the kernel memory. With the current patchset, the existing set of ciphers can be used along with newly introduced hardware backed flag. The security co-processor driver is able to interpret the flag and subsequently program the hardware, to interpret the supplied key as a hardware backed key. Well I asked why isn't the existing arrangement for hardware key algorithms sufficient, and I was given the response that you needed this for compatibility with third-party IP(s). Now are you saying this is not the case? So the existing framework should work then? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt