-
Notifications
You must be signed in to change notification settings - Fork 156
/
tpms.go
188 lines (141 loc) · 7.09 KB
/
tpms.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
// package tpms contains the TPM 2.0 structures prefixed by "TPMS_"
package tpms
import "github.com/google/go-tpm/direct/structures/internal"
// Empty represents a TPMS_EMPTY.
// See definition in Part 2: Structures, section 10.1.
type Empty = internal.TPMSEmpty
// PCRSelection represents a TPMS_PCR_SELECTION.
// See definition in Part 2: Structures, section 10.6.2.
type PCRSelection = internal.TPMSPCRSelection
// AlgProperty represents a TPMS_ALG_PROPERTY.
// See definition in Part 2: Structures, section 10.8.1.
type AlgProperty = internal.TPMSAlgProperty
// TaggedProperty represents a TPMS_TAGGED_PROPERTY.
// See definition in Part 2: Structures, section 10.8.2.
type TaggedProperty = internal.TPMSTaggedProperty
// TaggedPCRSelect represents a TPMS_TAGGED_PCR_SELECT.
// See definition in Part 2: Structures, section 10.8.3.
type TaggedPCRSelect = internal.TPMSTaggedPCRSelect
// TaggedPolicy represents a TPMS_TAGGED_POLICY.
// See definition in Part 2: Structures, section 10.8.4.
type TaggedPolicy = internal.TPMSTaggedPolicy
// ACTData represents a TPMS_ACT_DATA.
// See definition in Part 2: Structures, section 10.8.5.
type ACTData = internal.TPMSACTData
// CapabilityData represents a TPMS_CAPABILITY_DATA.
// See definition in Part 2: Structures, section 10.10.2.
type CapabilityData = internal.TPMSCapabilityData
// ClockInfo represents a TPMS_CLOCK_INFO.
// See definition in Part 2: Structures, section 10.11.1.
type ClockInfo = internal.TPMSClockInfo
// TimeInfo represents a TPMS_TIMEzINFO.
// See definition in Part 2: Structures, section 10.11.6.
type TimeInfo = internal.TPMSTimeInfo
// TimeAttestInfo represents a TPMS_TIME_ATTEST_INFO.
// See definition in Part 2: Structures, section 10.12.2.
type TimeAttestInfo = internal.TPMSTimeAttestInfo
// CertifyInfo represents a TPMS_CERTIFY_INFO.
// See definition in Part 2: Structures, section 10.12.3.
type CertifyInfo = internal.TPMSCertifyInfo
// QuoteInfo represents a TPMS_QUOTE_INFO.
// See definition in Part 2: Structures, section 10.12.4.
type QuoteInfo = internal.TPMSQuoteInfo
// CommandAuditInfo represents a TPMS_COMMAND_AUDIT_INFO.
// See definition in Part 2: Structures, section 10.12.5.
type CommandAuditInfo = internal.TPMSCommandAuditInfo
// SessionAuditInfo represents a TPMS_SESSION_AUDIT_INFO.
// See definition in Part 2: Structures, section 10.12.6.
type SessionAuditInfo = internal.TPMSSessionAuditInfo
// CreationInfo represents a TPMS_CREATION_INFO.
// See definition in Part 2: Structures, section 10.12.7.
type CreationInfo = internal.TPMSCreationInfo
// NVCertifyInfo represents a TPMS_NV_CERTIFY_INFO.
// See definition in Part 2: Structures, section 10.12.8.
type NVCertifyInfo = internal.TPMSNVCertifyInfo
// NVDigestCertifyInfo represents a TPMS_NV_DIGEST_CERTIFY_INFO.
// See definition in Part 2: Structures, section 10.12.9.
type NVDigestCertifyInfo = internal.TPMSNVDigestCertifyInfo
// Attest represents a TPMS_ATTEST.
// See definition in Part 2: Structures, section 10.12.12.
type Attest = internal.TPMSAttest
// AuthCommand represents a TPMS_AUTH_COMMAND.
// See definition in Part 2: Structures, section 10.13.2.
type AuthCommand = internal.TPMSAuthCommand
// AuthResponse represents a TPMS_AUTH_RESPONSE.
// See definition in Part 2: Structures, section 10.13.3.
type AuthResponse = internal.TPMSAuthResponse
// SymCipherParms represents a TPMS_SYMCIPHER_PARMS.
// See definition in Part 2: Structures, section 11.1.9.
type SymCipherParms = internal.TPMSSymCipherParms
// Derive represents a TPMS_DERIVE.
// See definition in Part 2: Structures, section 11.1.11.
type Derive = internal.TPMSDerive
// SensitiveCreate represents a TPMS_SENSITIVE_CREATE.
// See definition in Part 2: Structures, section 11.1.15.
type SensitiveCreate = internal.TPMSSensitiveCreate
// SchemeHash represents a TPMS_SCHEME_HASH.
// See definition in Part 2: Structures, section 11.1.17.
type SchemeHash = internal.TPMSSchemeHash
// SchemeHMAC represents a TPMS_SCHEME_HMAC.
// See definition in Part 2: Structures, section 11.1.20.
type SchemeHMAC = internal.TPMSSchemeHMAC
// SchemeXOR represents a TPMS_SCHEME_XOR.
// See definition in Part 2: Structures, section 11.1.21.
type SchemeXOR = internal.TPMSSchemeXOR
// SigSchemeRSASSA represents a TPMS_SIG_SCHEME_RSASSA.
// See definition in Part 2: Structures, section 11.2.1.2.
type SigSchemeRSASSA = internal.TPMSSigSchemeRSASSA
// SigSchemeRSAPSS represents a TPMS_SIG_SCHEME_RSAPSS.
// See definition in Part 2: Structures, section 11.2.1.2.
type SigSchemeRSAPSS = internal.TPMSSigSchemeRSAPSS
// SigSchemeECDSA represents a TPMS_SIG_SCHEME_ECDSA.
// See definition in Part 2: Structures, section 11.2.1.3.
type SigSchemeECDSA = internal.TPMSSigSchemeECDSA
// EncSchemeRSAES represents a TPMS_ENC_SCHEME_RSAES.
// See definition in Part 2: Structures, section 11.2.2.2.
type EncSchemeRSAES = internal.TPMSEncSchemeRSAES
// EncSchemeOAEP represents a TPMS_ENC_SCHEME_OAEP.
// See definition in Part 2: Structures, section 11.2.2.2.
type EncSchemeOAEP = internal.TPMSEncSchemeOAEP
// KeySchemeECDH represents a TPMS_KEY_SCHEME_ECDH.
// See definition in Part 2: Structures, section 11.2.2.3.
type KeySchemeECDH = internal.TPMSKeySchemeECDH
// KDFSchemeMGF1 represents a TPMS_KDF_SCHEME_MGF1.
// See definition in Part 2: Structures, section 11.2.3.1.
type KDFSchemeMGF1 = internal.TPMSKDFSchemeMGF1
// KDFSchemeECDH represents a TPMS_KDF_SCHEME_ECDH.
// See definition in Part 2: Structures, section 11.2.3.1.
type KDFSchemeECDH = internal.TPMSKDFSchemeECDH
// KDFSchemeKDF1SP80056A represents a TPMS_KDF_SCHEME_KDF1SP80056A.
// See definition in Part 2: Structures, section 11.2.3.1.
type KDFSchemeKDF1SP80056A = internal.TPMSKDFSchemeKDF1SP80056A
// KDFSchemeKDF2 represents a TPMS_KDF_SCHEME_KDF2.
// See definition in Part 2: Structures, section 11.2.3.1.
type KDFSchemeKDF2 = internal.TPMSKDFSchemeKDF2
// KDFSchemeKDF1SP800108 represents a TPMS_KDF_SCHEME_KDF1SP800108.
// See definition in Part 2: Structures, section 11.2.3.1.
type KDFSchemeKDF1SP800108 = internal.TPMSKDFSchemeKDF1SP800108
// ECCPoint represents a TPMS_ECC_POINT.
// See definition in Part 2: Structures, section 11.2.5.2.
type ECCPoint = internal.TPMSECCPoint
// SignatureRSA represents a TPMS_SIGNATURE_RSA.
// See definition in Part 2: Structures, section 11.3.1.
type SignatureRSA = internal.TPMSSignatureRSA
// SignatureECC represents a TPMS_SIGNATURE_ECC.
// See definition in Part 2: Structures, section 11.3.2.
type SignatureECC = internal.TPMSSignatureECC
// KeyedHashParms represents a TPMS_KEYEDHASH_PARMS.
// See definition in Part 2: Structures, section 12.2.3.3.
type KeyedHashParms = internal.TPMSKeyedHashParms
// RSAParms represents a TPMS_RSA_PARMS.
// See definition in Part 2: Structures, section 12.2.3.5.
type RSAParms = internal.TPMSRSAParms
// ECCParms represents a TPMS_ECC_PARMS.
// See definition in Part 2: Structures, section 12.2.3.6.
type ECCParms = internal.TPMSECCParms
// NVPublic represents a TPMS_NV_PUBLIC.
// See definition in Part 2: Structures, section 13.5.
type NVPublic = internal.TPMSNVPublic
// CreationData represents a TPMS_CREATION_DATA.
// See definition in Part 2: Structures, section 15.1.
type CreationData = internal.TPMSCreationData