Documentation
¶
Index ¶
- type TCGVendorID
- type TPM
- func (t *TPM) Close() error
- func (t *TPM) GetCapability(cap, subcap uint32) ([]interface{}, error)
- func (t *TPM) GetVersion() TPMVersion
- func (t *TPM) Info() (*TPMInfo, error)
- func (t *TPM) MeasurementLog() ([]byte, error)
- func (t *TPM) NVReadValue(index uint32, ownerPassword string, size, offhandle uint32) ([]byte, error)
- func (t *TPM) ReadNVPublic(index uint32) ([]byte, error)
- type TPMInfo
- type TPMInterface
- type TPMVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCGVendorID ¶
type TCGVendorID uint32
TCGVendorID TPM manufacturer id
func (TCGVendorID) String ¶
func (id TCGVendorID) String() string
type TPM ¶
type TPM struct {
Version TPMVersion
Interf TPMInterface
SysPath string
RWC io.ReadWriteCloser
}
TPM interfaces with a TPM device on the system.
func (*TPM) GetCapability ¶
GetCapability requests the TPMs capability function and returns an interface. User needs to take care of the data for now.
func (*TPM) MeasurementLog ¶
MeasurementLog reads the TCPA eventlog in binary format from the Linux kernel
type TPMInfo ¶
type TPMInfo struct {
Version TPMVersion
Interface TPMInterface
VendorInfo string
Manufacturer TCGVendorID
// FirmwareVersionMajor and FirmwareVersionMinor describe
// the firmware version of the TPM, but are only available
// for TPM 2.0 devices.
FirmwareVersionMajor int
FirmwareVersionMinor int
}
TPMInfo contains information about the version & interface of an open TPM.
type TPMInterface ¶
type TPMInterface uint8
TPMInterface indicates how the client communicates with the TPM.
const ( TPMInterfaceDirect TPMInterface = iota TPMInterfaceKernelManaged TPMInterfaceDaemonManaged )
TPM interfaces
type TPMVersion ¶
type TPMVersion uint8
TPMVersion is used to configure a preference in which TPM to use, if multiple are available.
const ( TPMVersionAgnostic TPMVersion = iota TPMVersion12 TPMVersion20 )
TPM versions
Click to show internal directories.
Click to hide internal directories.