From: Roberto Sassu Subject: Re: [PATCH 4/4] tpm: introduce tpm_extend_pcr_digests() Date: Wed, 5 Apr 2017 16:36:31 +0200 Message-ID: <88284005-3a53-1b37-e1f2-bfa88987c989@huawei.com> References: <20170329102452.32212-1-roberto.sassu@huawei.com> <20170329102452.32212-5-roberto.sassu@huawei.com> <20170405121416.2rly5pizs2hll56k@intel.com> <259b67e8-216b-ad91-52c3-c4b39a8f3d1c@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <259b67e8-216b-ad91-52c3-c4b39a8f3d1c-hv44wF8Li93QT0dZR+AlfA@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 3:50 PM, Roberto Sassu wrote: > As I mentioned earlier, it is used in this patch: > > https://sourceforge.net/p/linux-ima/mailman/message/35757195/ I have a question. As you can see in the IMA patch, I'm calling tpm_is_tpm2() to determine if I should invoke tpm_pcr_extend(), for TPM 1.2, or tpm_pcr_extend_digests(), for TPM 2.0. Should the new function work with TPM 1.2? If a tpm2_digest structure with a SHA1 digest is provided, I could call tpm_pcr_extend() instead of returning an error. Thanks Roberto ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot