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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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