Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4090949rwb; Tue, 6 Sep 2022 02:18:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR79VuaQc1vbhRdI3Oua2uuh8PuEtZaPU8w2+pHoQ4CmNtGcaj5aC96B1uicozPBg6pmX9nm X-Received: by 2002:a17:907:70c:b0:740:33f3:cbab with SMTP id xb12-20020a170907070c00b0074033f3cbabmr35085206ejb.600.1662455908947; Tue, 06 Sep 2022 02:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662455908; cv=none; d=google.com; s=arc-20160816; b=IOjOhJ42fc62kuD1G7CDjVoPBpQtlW2OROEi4oGxAKhoyffojHQnPX4PAUE4OwTDCm FhzRgBhOaCHi9BbBbOsVjsSX0rdEV1h8lX7LNBrSy/pZXDAWUyTCZPxepmAN7SNZ93U1 rVqvSeXrEQ08/kVAuMwdsbGvJJlxNd09eqekDnSBMS80gmQQwUtNjynDMh5g3cZh4BUw utUkY6D1Codr2ip7SkRCSCt8bZv0BYX15PJcGPC1xnZD5c4mpOEBOdW4tBZSgVnNTTpx epIICCxkwp0m5j30I5D4K8tFpZjyAgXOj7joiUPrVRqwIt22al961P3oCZXtTAe6uEf8 E//w== 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:dkim-signature; bh=BTzaz48hyjppPU76XSLVXhC1+avP1PPypbp8GL/Uowg=; b=TsvX4fSCcoRVfagaQqPVWyygl+rjG3gJpHuCIOUQnpdNTfiawcdrcE1SXPyrhh/MCH belD9tm/aoHbFMyZgC9zI9bN+ECwmY+3sK05kbaeZjUN38txdX9tfhl83iWR9qFflQL5 SB1Qaz2JJnNLjC6cXnBjf22JyokFYQ4XXYNu53omZNUnIOTzgDYlUDwMD8eX79nTzWHb u1jbT3o6cEM1sLv8PJEdim2MDv0YcYHb9ctfOx4XEmD6THgSPzd6dXtJfSSvSwX6wqXT 4ntJ1i3hWmMO5gU2cZWuGC6SB/bDEyoQ67aS3ekcN6wXp+zyrqZFbu86da67m50ImRh5 PoRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pk6sYDdR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne3-20020a1709077b8300b007312789a037si10298429ejc.144.2022.09.06.02.17.55; Tue, 06 Sep 2022 02:18:28 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pk6sYDdR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233381AbiIFI6Y (ORCPT + 99 others); Tue, 6 Sep 2022 04:58:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232511AbiIFI6X (ORCPT ); Tue, 6 Sep 2022 04:58:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A97124BC1; Tue, 6 Sep 2022 01:58:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 87B6461470; Tue, 6 Sep 2022 08:58:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FEA1C433D6; Tue, 6 Sep 2022 08:58:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662454701; bh=GKNX2gt6lOvmJQO/ERaU3bZz9S3yTumOoy5DxUyuK/A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pk6sYDdRlp77tXXTE5MtkGgok1ah8PYhtmwTHLFuIOnWdHmTmxq24rK1JGxKeIPe8 91ThLSb7kYrRZNIG6SUHXlBkirhoFS+TArF2VEdHCHsC3o3XM6QzdX5+MW1w0Lo4rN QV3nAsXPbJz9KKxGOXCeiqtqQxZ3p+mEIbTeRJ37ocggO8NqCrDlxXZ7aP62GoQbDJ gL1RybP4uxC6lpack7j0r7vM7m+wtgh6qyJ0dQl96yB5O1BgxLMssBJ/5gdT5xbA8l w9LbnvS0G4HAQ4hR/i6D8JSTnx/xlVt7Fqe96m1IjUWovJT2Gry9wyveZGS+H13nc0 nt5bmsJOfW5dQ== Date: Tue, 6 Sep 2022 11:58:17 +0300 From: Jarkko Sakkinen To: Pankaj Gupta Cc: 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, herbert@gondor.apana.org.au, 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: [RFC PATCH HBK: 0/8] HW BOUND KEY as TRUSTED KEY Message-ID: References: <20220906065157.10662-1-pankaj.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220906065157.10662-1-pankaj.gupta@nxp.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tue, Sep 06, 2022 at 12:21:49PM +0530, Pankaj Gupta wrote: > Hardware Bound key(HBK), is never acessible as plain key outside of the ~~~~~~~~~ accesible. > hardware boundary. Thus, it is un-usable, even if somehow fetched > from kernel memory. It ensures run-time security. Why is it called "HBK" here and "hw" in the context of keyctl? > This patchset adds generic support for classing the Hardware Bound Key, > based on: > > - Newly added flag-'is_hbk', added to the tfm. > > Consumer of the kernel crypto api, after allocating > the transformation, sets this flag based on the basis > of the type of key consumer has. > > - 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(). > > First implementation is based on CAAM. CAAM is implementation of what exactly? I'm sorry but I don't know your definition of unusable. BR, Jarkko