Versions in this module Expand all Collapse all v2 v2.1.1 Nov 8, 2021 v2.1.0 Nov 5, 2021 Changes in this version + const DefaultTPMDevice — darwin/amd64, linux/amd64, windows/amd64 + const SoftwareAnchorStateType + var ErrInvalid = errors.New("invalid arg") + func CapabilityAlgorithms(conn io.ReadWriteCloser) (algs []tpm2.AlgorithmDescription, err error) + func CapabilityPCRs(conn io.ReadWriteCloser) (pcrs []tpm2.PCRSelection, err error) + func ComputeName(path ...interface{}) (tpm2.Name, error) + func FlushTransientHandles(conn io.ReadWriteCloser) error + func GenerateAuthValue() (string, error) + func GetTPM2FamilyIndicator(conn io.ReadWriteCloser) (uint32, error) + func NewSimulator() (io.ReadWriteCloser, error) + func OpenTPM(tpmPath string) (io.ReadWriteCloser, error) + func Property(conn io.ReadWriteCloser, prop uint32) (uint32, error) + type Handle interface + Flush func(owner TrustAnchor) + type Simulator struct + func (s *Simulator) Read(p []byte) (n int, err error) + func (s *Simulator) Write(p []byte) (n int, err error) + func (s Simulator) Close() error + type SoftwareAnchor struct + func (a *SoftwareAnchor) Quote(aikHandle Handle, aikAuth string, additional api.Buffer, bank tpm2.Algorithm, ...) (api.Attest, api.Signature, error) + func (s *SoftwareAnchor) ActivateDeviceKey(cred api.EncryptedCredential, endorsementAuth string, auth string, ...) (string, error) + func (s *SoftwareAnchor) Close() + func (s *SoftwareAnchor) CreateAndCertifyDeviceKey(rootHandle Handle, rootAuth string, template api.KeyTemplate, authValue string) (api.Key, api.Buffer, error) + func (s *SoftwareAnchor) CreateAndLoadRoot(endorsementAuth string, rootAuth string, tmpl *api.PublicKey) (Handle, api.PublicKey, error) + func (s *SoftwareAnchor) FlushAllHandles() + func (s *SoftwareAnchor) GetEndorsementKey() (Handle, tpm2.Public, error) + func (s *SoftwareAnchor) LoadDeviceKey(rootHandle Handle, rootAuth string, public api.PublicKey, private api.Buffer) (Handle, error) + func (s *SoftwareAnchor) PCRValues(bank tpm2.Algorithm, pcrs []int) (map[string]api.Buffer, error) + func (s *SoftwareAnchor) ReadEKCertificate() (*x509.Certificate, error) + func (s *SoftwareAnchor) Store() (*state.StubState, error) + type SoftwareHandle struct + func (*SoftwareHandle) Flush(TrustAnchor) + type TCGAnchor struct + Conn io.ReadWriteCloser + func (a *TCGAnchor) ActivateDeviceKey(cred api.EncryptedCredential, endorsementAuth string, auth string, ...) (string, error) + func (a *TCGAnchor) Close() + func (a *TCGAnchor) CreateAndCertifyDeviceKey(rootHandle Handle, rootAuth string, template api.KeyTemplate, authValue string) (api.Key, api.Buffer, error) + func (a *TCGAnchor) CreateAndLoadRoot(endorsementAuth string, rootAuth string, tmpl *api.PublicKey) (Handle, api.PublicKey, error) + func (a *TCGAnchor) FlushAllHandles() + func (a *TCGAnchor) GetEndorsementKey() (Handle, tpm2.Public, error) + func (a *TCGAnchor) LoadDeviceKey(rootHandle Handle, rootAuth string, public api.PublicKey, private api.Buffer) (Handle, error) + func (a *TCGAnchor) PCRValues(bank tpm2.Algorithm, pcrsel []int) (map[string]api.Buffer, error) + func (a *TCGAnchor) Quote(aikHandle Handle, aikAuth string, additional api.Buffer, bank tpm2.Algorithm, ...) (api.Attest, api.Signature, error) + func (a *TCGAnchor) ReadEKCertificate() (*x509.Certificate, error) + type TCGHandle struct + Handle tpmutil.Handle + func (h *TCGHandle) Flush(a TrustAnchor) + type TrustAnchor interface + ActivateDeviceKey func(cred api.EncryptedCredential, endorsementAuth string, auth string, ...) (string, error) + Close func() + CreateAndCertifyDeviceKey func(rootHandle Handle, rootAuth string, template api.KeyTemplate, authValue string) (api.Key, api.Buffer, error) + CreateAndLoadRoot func(endorsementAuth string, rootAuth string, tmpl *api.PublicKey) (Handle, api.PublicKey, error) + FlushAllHandles func() + GetEndorsementKey func() (Handle, tpm2.Public, error) + LoadDeviceKey func(rootHandle Handle, rootAuth string, public api.PublicKey, private api.Buffer) (Handle, error) + PCRValues func(tpm2.Algorithm, []int) (map[string]api.Buffer, error) + Quote func(aikHandle Handle, aikAuth string, additional api.Buffer, bank tpm2.Algorithm, ...) (api.Attest, api.Signature, error) + ReadEKCertificate func() (*x509.Certificate, error) + func LoadSoftwareAnchor(state *state.StubState) (TrustAnchor, error) + func NewSoftwareAnchor() (TrustAnchor, error) + func NewTCGAnchor(conn io.ReadWriteCloser) TrustAnchor Other modules containing this package github.com/immune-gmbh/agent/v3