tpm

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: BSD-3-Clause Imports: 11 Imported by: 16

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 ends connection to 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 event via sysfs. * * In debug mode, it prints * 1. old pcr value before the hash is written to pcr * 2. new pcr values after hash is written to pcr * 3. compares old and new pcr values and prints error if they are not

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