internal

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package internal provides low-level bindings to the Microsoft TPM2 simulator.

When using CGO, this package compiles the simulator's C code and links against the system OpenSSL library. Without CGO, this package just provides stubs which always return failure. This allows the simulator package to be built when cross compiling go-tpm-tools (which is incompatible with CGO).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reset

func Reset(forceManufacture bool)

Reset simulates toggling the power the TPM. If forceManufacture is true, the reset will be a manufacturer reset.

func RunCommand

func RunCommand(cmd []byte) ([]byte, error)

RunCommand passes cmd to the simulator and returns the simulator's response.

func SetSeeds

func SetSeeds(r io.Reader)

SetSeeds uses the output of r to reset the 3 TPM simulator seeds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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