tpmeventlog

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tpmeventlog implements event log parsing and replay for the PC Client TPM PCR_based event log. It supports both the SHA-1 only and crypto agile log formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplayAndExtract added in v0.0.2

func ReplayAndExtract(rawEventLog []byte, pcrBank register.PCRBank, opts extract.Opts) (*pb.FirmwareLogState, error)

ReplayAndExtract parses a PC Client event log and replays the parsed event log against the PCR bank specified by hash.

It then extracts event info from the verified log into a FirmwareLogState. It returns an error on failing to replay the events against the PCR bank or on failing to parse malformed events.

The returned FirmwareLogState may be a partial FirmwareLogState. In the case of a partially filled state, err will be non-nil. Callers can look for individual errors using `errors.Is`.

It is the caller's responsibility to ensure that the passed PCR values can be trusted. Users can establish trust in PCR values by either calling client.ReadPCRs() themselves or by verifying the values via a PCR quote.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL