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 FromReadWriteCloser ¶ added in v0.9.2
func FromReadWriteCloser(rwc io.ReadWriteCloser) TPMCloser
FromReadWriteCloser takes in a io.ReadWriteCloser and returns a transport.TPMCloser wrapping the io.ReadWriteCloser.
Directories ¶
Path | Synopsis |
---|---|
Package linuxtpm provides access to a physical TPM device via the device file.
|
Package linuxtpm provides access to a physical TPM device via the device file. |
Package linuxudstpm provides access to a TPM device via a Unix domain socket.
|
Package linuxudstpm provides access to a TPM device via a Unix domain socket. |
Package simulator provides access to a local simulator for TPM testing.
|
Package simulator provides access to a local simulator for TPM testing. |
Package testhelper provides some helper code for TPM transport tests.
|
Package testhelper provides some helper code for TPM transport tests. |
Package windowstpm implements the TPM transport on Windows using tbs.dll.
|
Package windowstpm implements the TPM transport on Windows using tbs.dll. |
Click to show internal directories.
Click to hide internal directories.