Documentation ¶
Overview ¶
Package tpm wraps the Trousers library for accessing the TPM from user-space. It currently provides very limited functionality: just NVRAM access.
Index ¶
Constants ¶
View Source
const ( // Failed to connect to daemon process. ErrCodeCommunicationFailure ErrorCode = C.TSS_E_COMM_FAILURE // The TPM is disabled in the BIOS. ErrCodeTPMDisabled = 7 // The TPM doesn't have an owner and thus no storage root key has been // defined. ErrCodeNoStorageRootKey = 0x12 // The NVRAM index already exists. ErrCodeNVRAMAlreadyExists = 0x13b // The password is incorrect. ErrCodeAuthentication = 1 )
Error code values
View Source
const ( PermAuthRead = C.TPM_NV_PER_AUTHREAD PermAuthWrite = C.TPM_NV_PER_AUTHWRITE PermWriteAllAtOnce = C.TPM_NV_PER_WRITEALL )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func (*Context) TakeOwnership ¶
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
func (*Policy) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.