vtpm

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Nonce   = 32
	PCR15   = 15
	Hash256 = 32
	Hash384 = 48
)

Variables

View Source
var (
	ExternalTPM   io.ReadWriteCloser
	ErrNoHashAlgo = errors.New("hash algo is not supported")
)

Functions

func Attest

func Attest(teeNonce []byte, vTPMNonce []byte, teeAttestaion bool) ([]byte, error)

func ExtendPCR

func ExtendPCR(pcrIndex int, value []byte) error

func FetchATLSQuote

func FetchATLSQuote(pubKey, teeNonce, vTPMNonce []byte) ([]byte, error)

func OpenTpm

func OpenTpm() (io.ReadWriteCloser, error)

func VTPMVerify

func VTPMVerify(quote []byte, pubKeyTLS []byte, teeNonce []byte, vtpmNonce []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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