Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + const EKCertificateHandleRSA + var OpenTPM = openTPM + func AutoDetectTPMPath(baseTPMDir string) (string, error) + func SRKTemplateHighECC() tpm2.Public + func SRKTemplateHighRSA() tpm2.Public + type Session struct + func NewSession(scfg *SessionConfig) (*Session, error) + func (c *Session) CertifyDevIDKey() ([]byte, []byte, error) + func (c *Session) Close() + func (c *Session) GetAKPublic() []byte + func (c *Session) GetEKCert() ([]byte, error) + func (c *Session) GetEKPublic() ([]byte, error) + func (c *Session) SolveCredActivationChallenge(credentialBlob, secret []byte) ([]byte, error) + func (c *Session) SolveDevIDChallenge(nonce []byte) ([]byte, error) + type SessionConfig struct + DevIDPriv []byte + DevIDPub []byte + DevicePath string + Log hclog.Logger + Passwords TPMPasswords + type SigningKey struct + Handle tpmutil.Handle + func (k *SigningKey) Certify(object tpmutil.Handle, objectPassword string) ([]byte, []byte, error) + func (k *SigningKey) Close() error + func (k *SigningKey) Sign(data []byte) ([]byte, error) + type TPMPasswords struct + DevIDKey string + EndorsementHierarchy string + OwnerHierarchy string