Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attest: add event log parsing logic #64

Merged
merged 1 commit into from
Aug 20, 2019
Merged

Conversation

ericchiang
Copy link
Member

@ericchiang ericchiang commented Aug 1, 2019

This PR adds event log parsing logic. It's main goal is to require
validation at the same time as parsing, so structured events are always
verified against a quote. This new API replaces the existing "verifier"
package.

It's not a goal of this PR to parse the event data. This will be a
follow up, but since different users might want to parse different
events based on the OS, this API lets users of this package implement
custom event data parsing if they absolutely need to.

TODO:

Updates #9

@ericchiang ericchiang force-pushed the eventlog branch 2 times, most recently from 04aac17 to ba2e45b Compare August 2, 2019 22:19
attest/eventlog.go Show resolved Hide resolved
attest/eventlog.go Show resolved Hide resolved
This PR adds event log parsing logic. It's main goal is to require
validation at the same time as parsing, so structured events are always
verified against a quote. This new API replaces the exisitng "verifier"
package.

It's not a goal of this PR to parse the event data. This will be a
follow up, but since different users might want to parse different
events based on the OS, this API lets users of this package implement
custom event data parsing if they absolutely need to.
@ericchiang ericchiang changed the title attest: add event log parsing logic (WIP) attest: add event log parsing logic Aug 20, 2019
@ericchiang
Copy link
Member Author

@twitchy-jsonp to add a hash argument to PCR for #72

@brandonweeks to add a method for determining the supported hash of a measurement log.

Maybe modify MeasurementLog to:

func (t *tpm) MeasurementLog() ([]byte, HashAlg, error)

@ericchiang ericchiang merged commit 6b09d53 into google:master Aug 20, 2019
@ericchiang ericchiang deleted the eventlog branch August 20, 2019 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants