Versions in this module Expand all Collapse all v0 v0.9.0 Apr 14, 2022 Changes in this version + const CurveBNP256 + const CurveBNP638 + const CurveNISTP192 + const CurveNISTP224 + const CurveNISTP256 + const CurveNISTP384 + const CurveNISTP521 + const CurveSM2P256 + func UnpackBuf(buf io.Reader, elts ...interface{}) error + func UseTPM20LengthPrefixSize() + type Algorithm uint16 + const AlgAES + const AlgCBC + const AlgCFB + const AlgCTR + const AlgECB + const AlgECC + const AlgECDAA + const AlgECDH + const AlgECDSA + const AlgKDF2 + const AlgKeyedHash + const AlgNull + const AlgOAEP + const AlgOFB + const AlgRSA + const AlgRSAES + const AlgRSAPSS + const AlgRSASSA + const AlgSHA1 + const AlgSHA256 + const AlgSHA384 + const AlgSHA512 + const AlgUnknown + func (a Algorithm) HashConstructor() (func() hash.Hash, error) + func (a Algorithm) UsesCount() bool + type AttestationData struct + AttestedCertifyInfo *CertifyInfo + AttestedCreationInfo *CreationInfo + AttestedQuoteInfo *QuoteInfo + ClockInfo ClockInfo + ExtraData []byte + FirmwareVersion uint64 + Magic uint32 + QualifiedSigner Name + Type Tag + func DecodeAttestationData(in []byte) (*AttestationData, error) + type CertifyInfo struct + Name Name + QualifiedName Name + type ClockInfo struct + Clock uint64 + ResetCount uint32 + RestartCount uint32 + Safe byte + type CreationInfo struct + Name Name + OpaqueDigest []byte + type ECCParams struct + CurveID EllipticCurve + KDF *KDFScheme + Point ECPoint + Sign *SigScheme + Symmetric *SymScheme + type ECPoint struct + X *big.Int + Y *big.Int + type EllipticCurve uint16 + type Handle uint32 + type HashValue struct + Alg Algorithm + Value []byte + type KDFScheme struct + Alg Algorithm + Hash Algorithm + type KeyProp uint32 + const FlagAdminWithPolicy + const FlagDecrypt + const FlagFixedParent + const FlagFixedTPM + const FlagNoDA + const FlagRestricted + const FlagSealDefault + const FlagSensitiveDataOrigin + const FlagSign + const FlagSignerDefault + const FlagStorageDefault + const FlagUserWithAuth + type Name struct + Digest *HashValue + Handle *Handle + type PCRSelection struct + Hash Algorithm + PCRs []int + type Public struct + Attributes KeyProp + AuthPolicy []byte + ECCParameters *ECCParams + NameAlg Algorithm + RSAParameters *RSAParams + Type Algorithm + func DecodePublic(buf []byte) (Public, error) + type QuoteInfo struct + PCRDigest []byte + PCRSelection PCRSelection + type RSAParams struct + Exponent uint32 + KeyBits uint16 + Modulus *big.Int + ModulusRaw []byte + Sign *SigScheme + Symmetric *SymScheme + type RawBytes []byte + type SigScheme struct + Alg Algorithm + Count uint32 + Hash Algorithm + type SymScheme struct + Alg Algorithm + KeyBits uint16 + Mode Algorithm + type Tag uint16 + const TagAttestCertify + const TagAttestCreation + const TagAttestQuote + const TagHashCheck + const TagNoSessions + const TagNull + const TagSessions