Documentation
¶
Overview ¶
Package legacy contains the legacy API adaptors for use by go-attestation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// Sequence gives the order of the event in the event log.
Sequence int
// Index of the PCR that this event was replayed against.
Index int
// Untrusted type of the event. This value is not verified by event log replays
// and can be tampered with. It should NOT be used without additional context,
// and unrecognized event types should result in errors.
Type tcg.EventType
// Data of the event. For certain kinds of events, this must match the event
// digest to be valid.
Data []byte
// Digest is the verified digest of the event data. While an event can have
// multiple for different hash values, this is the one that was matched to the
// PCR value.
Digest []byte
}
Event is a single event from a TCG event log. This reports descrete items such as BIOS measurements or EFI states.
There are many pitfalls for using event log events correctly to determine the state of a machine[1]. In general it's much safer to only rely on the raw PCR values and use the event log for debugging.
[1] https://github.com/google/go-attestation/blob/master/docs/event-log-disclosure.md
Click to show internal directories.
Click to hide internal directories.