Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1440925ybn; Wed, 25 Sep 2019 18:35:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoNSFsstsZAWByt8EysJYW12L05fmzvnL/l0wWQ0uL7/tpJUXuCT9yzaJy5aEhh+XMtdDF X-Received: by 2002:aa7:dc49:: with SMTP id g9mr1026380edu.1.1569461706177; Wed, 25 Sep 2019 18:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569461706; cv=none; d=google.com; s=arc-20160816; b=VUwfjxQR8DhLNnVLFD7A+GAKM1WCOstFrKXIlswcRqjpjYv4cfl7f+GTSXOf6t55lp hsvFxsFOyelC/rd1DCTI3ItDNWcXcwYpnrAvJA0hve/dFc04nroecQfnwjIFeAhAqO5Q zC4cQNuSCE3pWF0gow3vXo/RKe/UbKSBiZgzqJjUafBn7CaHa8sVQr/re0Id0Xtlpzam WBkQPyWN4yGTeHXjgpAjMFcvrXZsPW9GPeEIenPn4mujgR1aLARtL6/JkQv/lZ1enaZf rA2XWaPyRcxT92YCktUkp2eyTlOiMeDJ1H5j4G31UgTMMWxNxZuwR3IRXBmXPv2tbrSr eQdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:dkim-signature; bh=SOYuTIjbH4NOqku0c8Dc8PZJYjtPLJmAW5SbWm42BK8=; b=Y/Qt7CdAq6Il2oNwI6w+nJszHr4dazFotyeAcd6bTcuSKnc/+gQZPA+NebF3ic0Fp7 MjKFOjOrGP9rRUFMB943zNo3x2Qo53U1lmShLgRhwBop2UsEa+OXGtKTCD/FiSkbpdgA KZKXk2f1tD8vbnfdWO0XKnio3XGNnKXL+5JhkgMhq4gsoqWsKxDQaO6cdoxJ3AXMuwP6 Fm1ORnnvSYVU3zAFuoD/HYG0uoyr6zTHFq6WEvvbiwvl0xQkLGYf1+J7Tf92wOknPIbb GhyQgEb7jtbppDYl7KGLIh+fXzGVpSW5lZHzrCgcquVHzU51c/FZ7MVGjmsEx2/apgz4 Mq9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=pmrxJcTU; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=pmrxJcTU; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12si304449ejj.40.2019.09.25.18.34.33; Wed, 25 Sep 2019 18:35:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=pmrxJcTU; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=pmrxJcTU; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2504628AbfIXLSj (ORCPT + 99 others); Tue, 24 Sep 2019 07:18:39 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:35590 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504627AbfIXLSi (ORCPT ); Tue, 24 Sep 2019 07:18:38 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 6D7878EE175; Tue, 24 Sep 2019 04:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1569323918; bh=2f54yALR7qGp4YgS4aDBSShfe/qfzBqvEZHy6t6kIlI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=pmrxJcTU1yQtJ/czlBI0uNZUA1ZiJoaKGrYxCSKN9wZELATN4MB7kBctN3usLfLes rdbXGSSh4CeTt5OPTzsz0oUdINhj8PwRKDr9MUWc1O1LxdLv3widGjaEq0mKtSa3f5 ta310Rw0R5aqpn0iWw9nzh+wqQAznQ+0j3ZhC1nQ= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Sc2zoGPzz6oH; Tue, 24 Sep 2019 04:18:38 -0700 (PDT) Received: from [192.168.101.242] (unknown [24.246.103.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id B44768EE12C; Tue, 24 Sep 2019 04:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1569323918; bh=2f54yALR7qGp4YgS4aDBSShfe/qfzBqvEZHy6t6kIlI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=pmrxJcTU1yQtJ/czlBI0uNZUA1ZiJoaKGrYxCSKN9wZELATN4MB7kBctN3usLfLes rdbXGSSh4CeTt5OPTzsz0oUdINhj8PwRKDr9MUWc1O1LxdLv3widGjaEq0mKtSa3f5 ta310Rw0R5aqpn0iWw9nzh+wqQAznQ+0j3ZhC1nQ= Message-ID: <1569323907.24519.9.camel@HansenPartnership.com> Subject: Re: [PATCH v6 05/12] tpm2-sessions: Add full HMAC and encrypt/decrypt session handling From: James Bottomley To: Jarkko Sakkinen Cc: linux-integrity@vger.kernel.org, linux-crypto@vger.kernel.org, linux-security-module@vger.kernel.org Date: Tue, 24 Sep 2019 07:18:27 -0400 In-Reply-To: <20190920143523.GE9578@linux.intel.com> References: <1568031408.6613.29.camel@HansenPartnership.com> <1568031657.6613.34.camel@HansenPartnership.com> <20190920143337.GD9578@linux.intel.com> <20190920143523.GE9578@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, 2019-09-20 at 17:35 +0300, Jarkko Sakkinen wrote: > On Fri, Sep 20, 2019 at 05:34:00PM +0300, Jarkko Sakkinen wrote: > > On Mon, Sep 09, 2019 at 01:20:57PM +0100, James Bottomley wrote: > > Forgot to ask: what is the new field handles? You mean for the null seed or for the virtual handles? For the former, there isn't one since the null seed is maintained as a context when not in use, although since the null seed context is loaded before an operation it will mostly get 80000000 for the brief time it is used. For the latter, there's no change in the way virtual handles are processed. James