tpm

package
v3.0.0-...-66753ca Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package tpm reads and extends pcrs with measurements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes the connection of a TPM device handle.

func ExtendPCRDebug

func ExtendPCRDebug(pcr uint32, data io.Reader, eventDesc string) error

ExtendPCRDebug extends a PCR with the contents of a byte slice and notifies the kernel of this measurement by sending an event via sysfs.

In debug mode, it prints:

  1. The old PCR value before the hash is extended to the PCR
  2. The new PCR value after the hash is extended to the PCR

func New

func New() error

New sets up a TPM device handle that can be used for storing hashes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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