1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-07-12 10:10:46 +02:00

ima-evm-utils: Add support for Intel TSS2 for PCR reading

This patch makes it possible to use the Intel TSS2 for getting
PCR values from the SHA1/SHA256 banks on a TPM2.
It is somewhat naive as it doesn't use the multi-PCR selection
that TSS2 is capable of, that is for a future patch.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
[zohar@linux.ibm.com: added missing "stdint.h" in pcr_tsspcrread.c]
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
Patrick Uiterwijk
2020-02-24 15:04:33 -08:00
committed by Mimi Zohar
parent e532fb65fd
commit 03f99ea6d0
9 changed files with 386 additions and 83 deletions

5
src/utils.h Normal file
View File

@ -0,0 +1,5 @@
#include <ctype.h>
#include <sys/types.h>
int hex_to_bin(char ch);
int hex2bin(void *dst, const char *src, size_t count);