Versions in this module Expand all Collapse all v0 v0.1.0 Jun 20, 2023 Changes in this version + const AlgorithmES256 + const AlgorithmES384 + const AlgorithmES512 + const DefaultTPMHandle + const InValidAlgorithm + const TpmMagic + const UnSupportedAlg + func NewTpmAttestDefault() tpm2.AttestationData + type Algorithm uint16 + type AttestationInfo struct + Nonce []byte + PCR PCRDetails + type CertInfo struct + Name DigestInfo + Nonce []byte + type DigestInfo struct + Digest []byte + HashAlgID uint64 + type Evidence struct + Kat *KAT + Pat *PAT + func (e *Evidence) FromCBOR(buf []byte) error + func (e *Evidence) FromJSON(data []byte) error + func (e *Evidence) SetTokens(k *KAT, p *PAT) error + func (e Evidence) Sign(data []byte, alg Algorithm, key crypto.PrivateKey) ([]byte, error) + func (e Evidence) ToCBOR() ([]byte, error) + func (e Evidence) ToJSON() ([]byte, error) + func (e Evidence) Verify(key crypto.PublicKey) error + type KAT struct + CertInfo *[]byte + KID *[]byte + PubArea *[]byte + Sig *[]byte + TpmVer *string + func NewKAT() *KAT + func (k *KAT) EncodeCertInfo(nonce []byte) error + func (k *KAT) EncodePubArea(alg Algorithm, key crypto.PublicKey) error + func (k *KAT) SetKeyID(v []byte) error + func (k *KAT) SetSig(s []byte) error + func (k *KAT) SetTpmVer(v string) error + func (k KAT) DecodeCertInfo() (*CertInfo, error) + func (k KAT) DecodePubArea() (crypto.PublicKey, error) + func (k KAT) Validate() error + func (k KAT) Verify(key crypto.PublicKey) error + type PAT struct + AttestInfo *[]byte + KID *[]byte + Sig *[]byte + TpmVer *string + func NewPAT() *PAT + func (p *PAT) EncodeAttestationInfo(attInfo *AttestationInfo) error + func (p *PAT) SetKeyID(v []byte) error + func (p *PAT) SetSig(s []byte) error + func (p *PAT) SetTpmVer(v string) error + func (p PAT) GetAttestationInfo() (*AttestationInfo, error) + func (p PAT) Validate() error + func (p PAT) Verify(key crypto.PublicKey) error + type PCRDetails struct + PCRDigest []byte + PCRinfo PCRInfo + type PCRInfo struct + HashAlgID uint64 + PCRs []int