TrenchBoot / landing-zone

An open source implementation of an AMD-V Secure Loader.
GNU General Public License v2.0
23 stars 7 forks source link

Event log #52

Closed krystian-hebel closed 3 years ago

krystian-hebel commented 4 years ago

This adds support for the DRTM TPM event log, both for TPM1.2 (aka SHA1 Event Log Entry Format [1]) and TPM2.0 (aka Crypto Agile Log Entry Format [2]).

It is up to the bootloader to provide address and size of the event log. DRTM specification [3] defines a new ACPI table containing this information, as well as other pointers and data related to DRTM. Bootloader may prepare and pass another block of memory if this table is not present.

If a bootloader does not fill up the event log address or size, LZ will not log any entries, but it will continue to extend PCRs nonetheless.

[1] https://www.trustedcomputinggroup.org/wp-content/uploads/TCG_PCClientImplementation_1-21_1_00.pdf [2] https://trustedcomputinggroup.org/wp-content/uploads/EFI-Protocol-Specification-rev13-160330final.pdf [3] https://trustedcomputinggroup.org/wp-content/uploads/TCG_D-RTM_Architecture_v1-0_Published_06172013.pdf

lgtm-com[bot] commented 4 years ago

This pull request introduces 1 alert when merging 61472b97754abaea7de13455c04573c5c6ac97ce into d8f0fc0e0bd5ddaf47a9827443fe08cb4cb1b487 - view on LGTM.com

new alerts:

lgtm-com[bot] commented 4 years ago

This pull request introduces 1 alert when merging 6ea513931ea5fbfe592d41fdd94d4a83f467c6a8 into d8f0fc0e0bd5ddaf47a9827443fe08cb4cb1b487 - view on LGTM.com

new alerts:

lgtm-com[bot] commented 4 years ago

This pull request introduces 1 alert when merging 672e05a9d2bda962e61f146800e315003a39bc83 into d8f0fc0e0bd5ddaf47a9827443fe08cb4cb1b487 - view on LGTM.com

new alerts:

lgtm-com[bot] commented 4 years ago

This pull request introduces 1 alert when merging ac100f6ec145dce782c1464b2caa6a7c12a4309d into d8f0fc0e0bd5ddaf47a9827443fe08cb4cb1b487 - view on LGTM.com

new alerts:

dpsmith commented 3 years ago

This was merged under PR #65