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 ¶
RunCommand passes cmd to the simulator and returns the simulator's response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.