simulator

package module
v0.0.0-...-8a050ab Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: BSD-3-Clause Imports: 7 Imported by: 1

README

go-tpm-sim

Bindings for running go-tpm code against a running TCP simulator

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).

Jump to

Keyboard shortcuts

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