mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-07-03 06:03:16 +02:00

PCR numbers are naturally unsigned values. Further, they are 32 bits, even on 64-bit machines. This change eliminates the need for negative value and overflow tests. The parameter name is changed from j and idx to pcr_handle, which is more descriptive and is similar to the parameter name used in the TPM 2.0 specification. Signed-off-by: Ken Goldman <kgoldman@us.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
4 lines
136 B
C
4 lines
136 B
C
int tpm2_pcr_supported(void);
|
|
int tpm2_pcr_read(const char *algo_name, uint32_t pcr_handle, uint8_t *hwpcr,
|
|
int len, char **errmsg);
|