Skip to contentSkip to conversation

Updates to use IBM TSS C API rather than command line tools

PATCH New Ken Goldman 1 participant 1 message Oct 9, 2020 Keys-trusted

lore
Share & tools
lore
#0 lore raw

cover Updates to use IBM TSS C API rather than command line tools

This patch set replaces calls to command line tools with C code. This should be more stable and easier to maintain. INSTALL instructions are updated.

While the code is being touched, it changes the PCR handle from a signed int to a uint32_t, removing the need for error checking.

Finally, it fixes an environment variable issue and some spelling errors.

Ken Goldman (5):
ima-evm-utils: Change env variable TPM_SERVER_TYPE for tpm_server
ima-evm-utils: Change PCR iterator from int to uint32_t
ima-evm-utils: Change tpm2_pcr_read() to use C code
ima-evm-utils: Correct spelling errors
ima-evm-utils: Expand the INSTALL instructions.

 INSTALL                   |  25 +++++-
 src/Makefile.am           |   1 +
 src/evmctl.c              |   9 ++-
 src/pcr.h                 |   2 +-
 src/pcr_tss.c             |   4 +-
 src/pcr_tsspcrread.c      | 156 +++++++++++++++++++++++++++++---------
 tests/boot_aggregate.test |   7 +-
 7 files changed, 159 insertions(+), 45 deletions(-)
Signature · 1 line
2.25.1