From: Roberto Sassu Subject: Re: [PATCH 1/4] tpm: check whether all digests have been provided for TPM 2.0 extend Date: Wed, 5 Apr 2017 14:25:17 +0200 Message-ID: References: <20170329102452.32212-1-roberto.sassu@huawei.com> <20170329102452.32212-2-roberto.sassu@huawei.com> <20170405121200.rjbojlwchfw43ted@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170405121200.rjbojlwchfw43ted-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Jarkko Sakkinen Cc: linux-ima-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: tpmdd-devel@lists.sourceforge.net On 4/5/2017 2:12 PM, Jarkko Sakkinen wrote: > On Wed, Mar 29, 2017 at 12:24:49PM +0200, Roberto Sassu wrote: >> TCG mandates that all PCR banks must be extended during the same operation. >> tpm2_pcr_extend() will check whether all digests have been provided. >> >> The check is necessary because tpm2_pcr_extend() will be called by a new >> function, allowing callers to provide a digest for each PCR bank. >> >> Signed-off-by: Roberto Sassu > > When can this happen? Hi Jarkko I'm extending IMA to calculate the event data digest multiple times, for each algorithm selected by the user and supported by the TPM. You can have a look at the cover letter of the patch set: https://sourceforge.net/p/linux-ima/mailman/message/35757172/ and at the patch which calls the functions I added to the TPM driver interface: https://sourceforge.net/p/linux-ima/mailman/message/35757195/ Thanks Roberto ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot