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
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
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
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.
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
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