pcr

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm = tpm2.Algorithm

Algorithm is just a type-alias.

type Digest

type Digest = types.ConvertedBytes

Digest is a digest/hash value

type ID

type ID uint8

ID is a numeric identifier of a PCR register. For example PCR0 has ID == 0 and PCR8 has ID == 8.

func (ID) String

func (id ID) String() string

type Values

type Values [][]Digest

Values is a complete set of initialized PCR values of a TPM.

func (Values) Get

func (s Values) Get(pcrID ID, hashAlg Algorithm) (Digest, error)

Get returns a PCR value given its index and hash algorithm.

func (Values) Set

func (s Values) Set(pcrID ID, hashAlg Algorithm, value Digest) error

Set overrides a PCR value given its index and hash algorithm.

Jump to

Keyboard shortcuts

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