Documentation ¶
Overview ¶
This package implements the Microsoft simulator TPM2 on SGX Transmission Interface
The Microsoft simulator TPM Command Transmission Interface (TCTI) is a remote procedure interface donated to the TPM2 Specification by Microsoft. Its primary implementation is the tpm_server maintained by IBM.
https://sourceforge.net/projects/ibmswtpm2/
This file implements client code to communicate with server code described in the document "TPM2 Specification Part 4: Supporting Routines – Code"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Addresses of the command and platform handlers. // // Defaults to port 2321 and 2322 on localhost. CommandAddress string PlatformAddress string }
Config holds configuration parameters for connecting to the simulator.
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is a Microsoft Simulator client that can be used as a connection for the tpm2 package.
func Open ¶
Open creates connections to the simulator's command and platform ports and power cycles the simulator to initialize it.
func (*Conn) Read ¶
Read a response from the simulator. If the response is longer than the provided buffer, the remainder will be cached for the next read.
func (*Conn) RequestPlatformId ¶
send an SGX TPM platform id request
func (*Conn) RequestSgxQuote ¶
send an SGX TPM quote request