Documentation ¶
Overview ¶
Package linux provides an interface for communicating with TPMs using a Linux TPM character device
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TctiDevice ¶
type TctiDevice struct {
// contains filtered or unexported fields
}
TctiDevice represents a connection to a Linux TPM character device.
func OpenDevice ¶
func OpenDevice(path string) (*TctiDevice, error)
OpenDevice attempts to open a connection to the Linux TPM character device at the specified path. If successful, it returns a new TctiDevice instance which can be passed to tpm2.NewTPMContext. Failure to open the TPM character device will result in a *os.PathError being returned.
func (*TctiDevice) Close ¶
func (d *TctiDevice) Close() error
func (*TctiDevice) MakeSticky ¶
func (d *TctiDevice) MakeSticky(handle tpm2.Handle, sticky bool) error
func (*TctiDevice) SetLocality ¶
func (d *TctiDevice) SetLocality(locality uint8) error
Click to show internal directories.
Click to hide internal directories.