]> xenbits.xensource.com Git - seabios.git/commit
tpm: Perform hashing separately from logging
authorKevin O'Connor <kevin@koconnor.net>
Sun, 22 Nov 2015 21:54:18 +0000 (16:54 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 24 Nov 2015 03:39:08 +0000 (22:39 -0500)
commit9224440e38b3ff734a6d5a866386c83e6344efe9
tree626df663d75e97044dca0e5107c902e5337d8105
parent8149f1bf5cfd181c38fe8dc47bb64c8d6630dde6
tpm: Perform hashing separately from logging

Instead of calculating the hash in hash_log_event(), create a new
function (tpm_fill_hash) that will create the hash, and update all
callers to use tpm_fill_hash() before calling hash_log_event().  This
reduce the number of parameters to hash_log_event().

Rename hash_log_event() and hash_log_extent_event() to tpm_log_event()
and tpm_log_extend_event() now that these functions no longer
implement the hashing.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/tcgbios.c