Documentation ¶
Index ¶
Constants ¶
View Source
const (
TPMKeyVersion = 0
)
Variables ¶
View Source
var TPMDEVICES = []string{"/dev/tpm0", "/dev/tpmrm0"}
Functions ¶
Types ¶
type AuthCallback ¶
type PCRCallback ¶
type PCRCallback struct {
// contains filtered or unexported fields
}
for pcr sessions
func NewPCRSession ¶
func NewPCRSession(rwr transport.TPM, password []byte, ownerpassword []byte, policyDigest []byte, sel []tpm2.TPMSPCRSelection, pcrDigest []byte) (PCRCallback, error)
func (PCRCallback) GetOwnerPassword ¶
func (p PCRCallback) GetOwnerPassword() []byte
func (PCRCallback) GetPCRDigest ¶
func (p PCRCallback) GetPCRDigest() []byte
func (PCRCallback) GetPassword ¶
func (p PCRCallback) GetPassword() []byte
func (PCRCallback) GetPolicyDigest ¶
func (p PCRCallback) GetPolicyDigest() []byte
func (PCRCallback) GetSession ¶
func (p PCRCallback) GetSession() (auth tpm2.Session, closer func() error, err error)
type PasswordCallback ¶
type PasswordCallback struct {
// contains filtered or unexported fields
}
for password sessions
func NewPasswordSession ¶
func (PasswordCallback) GetOwnerPassword ¶
func (p PasswordCallback) GetOwnerPassword() []byte
func (PasswordCallback) GetPassword ¶
func (p PasswordCallback) GetPassword() []byte
func (PasswordCallback) GetPolicyDigest ¶
func (p PasswordCallback) GetPolicyDigest() []byte
func (PasswordCallback) GetSession ¶
func (p PasswordCallback) GetSession() (auth tpm2.Session, closer func() error, err error)
Click to show internal directories.
Click to hide internal directories.