1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-11-06 07:31:23 +01:00
Files
ima-evm-utils-mirror/src/pcr_tsspcrread.c
Ken Goldman e52fc1d330 Change PCR iterator from int to uint32_t
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>
2021-08-10 11:22:15 -04:00

3.2 KiB