tpm: Unify tpm_fill_hash()/tpm_log_extend_event() and use in BIOS interface

Don't call tpm_fill_hash() or tpm_log_extend_event() from any internal
code (ie, tpm_add_measurement_to_log).  The internal code does not
require the additional checks that these functions provide.

Unify the tpm_fill_hash() and tpm_log_extend_event() into a new
function hash_log_extend(), and use this function only in the 16bit
BIOS interface code.  With the code now specific to the BIOS interface
it can more easily return a BIOS specific error return code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
1 file changed
tree: fa08b8415756b5b4795837e0c192b442f1e5f419
  1. .gitignore
  2. COPYING
  3. COPYING.LESSER
  4. Makefile
  5. README
  6. docs/
  7. scripts/
  8. src/
  9. vgasrc/