Documentation ¶
Overview ¶
Package transport implements types for physically talking to TPMs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToReadWriter ¶
func ToReadWriter(tpm TPM) io.ReadWriter
ToReadWriter takes in a transport TPM and returns an io.ReadWriter wrapping the transport TPM.
Types ¶
type TPM ¶
TPM represents a logical connection to a TPM.
func FromReadWriter ¶
func FromReadWriter(rw io.ReadWriter) TPM
FromReadWriter takes in a io.ReadWriter and returns a transport.TPM wrapping the io.ReadWriter.
type TPMCloser ¶
TPMCloser represents a logical connection to a TPM and you can close it.
func OpenTPM ¶
OpenTPM opens a channel to the TPM at the given path. If the file is a device, then it treats it like a normal TPM device, and if the file is a Unix domain socket, then it opens a connection to the socket.
This function may also be invoked with no paths, as tpm2.OpenTPM(). In this case, the default paths on Linux (/dev/tpmrm0 then /dev/tpm0), will be used.