Re: [tpmdd-devel] [PATCH 0/4] Add support for TPM2 log reported via ACPI table

2017-03-29 Thread Nayna
On 03/29/2017 01:13 PM, Petr Vandrovec wrote: > Hi Peter, > > This series of 4 patches adds support for handling TPM2 > log when it is reported through ACPI TPM2 table, as > described in latest TPM ACPI draft (Version 1.2, Revision 8, > from February 27th, 2017). > > I've tested patch on x86

[tpmdd-devel] [PATCH 0/4] Add support for TPM2 log reported via ACPI table

2017-03-29 Thread Petr Vandrovec
Hi Peter, This series of 4 patches adds support for handling TPM2 log when it is reported through ACPI TPM2 table, as described in latest TPM ACPI draft (Version 1.2, Revision 8, from February 27th, 2017). I've tested patch on x86 only - I do not have PPC64 system with TPM, and handling of

[tpmdd-devel] [PATCH 2/4] tpm: introduce tpm2_pcr_algo_to_crypto() and tpm2_pcr_algo_from_crypto()

2017-03-29 Thread Roberto Sassu
Introduce these functions to convert between TPM and crypto algorithm IDs. Signed-off-by: Roberto Sassu --- drivers/char/tpm/tpm-interface.c | 51 drivers/char/tpm/tpm.h | 11 - drivers/char/tpm/tpm2-cmd.c

[tpmdd-devel] [PATCH 1/4] tpm: check whether all digests have been provided for TPM 2.0 extend

2017-03-29 Thread Roberto Sassu
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.

[tpmdd-devel] [PATCH 3/4] tpm: introduce tpm_pcr_algorithms()

2017-03-29 Thread Roberto Sassu
Return the algorithms supported by the TPM. The limit (TPM_ACTIVE_BANKS_MAX) has been exported to include/linux/tpm.h. Signed-off-by: Roberto Sassu --- drivers/char/tpm/tpm-interface.c | 39 +++ drivers/char/tpm/tpm.h | 2

[tpmdd-devel] [PATCH 4/4] tpm: introduce tpm_extend_pcr_digests()

2017-03-29 Thread Roberto Sassu
Allow TPM users to provide a digest for each PCR bank, for the extend operation. Signed-off-by: Roberto Sassu --- drivers/char/tpm/tpm-interface.c | 31 +++ drivers/char/tpm/tpm.h | 6 -- include/linux/tpm.h | 14