Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenTcpTpm ¶
func OpenTcpTpm(c TcpConfig) (io.ReadWriteCloser, error)
OpenTcpTpm opens a connection to a running TPM via TCP (e.g., the Microsoft reference TPM 2.0 simulator).
Types ¶
type TcpConfig ¶
type TcpConfig struct { // Address is the IP address or hostname of the running TPM simulator. // If this address contains a port number, the port number will be stripped and used for the TPM // port of the simulator. The platform port will be assumed to be the TPM port + 1. Address string // TPMPort is the port number (default 2321) of the TPM command handler for the simulator. TPMPort int // PlatformPort is the port number (default 2322) of the platform command handler for the simulator. PlatformPort int }
TcpConfig represents connection options for connecting to a running TPM via TCP (e.g., the Microsoft reference TPM 2.0 simulator).
Click to show internal directories.
Click to hide internal directories.