xref: /aosp_15_r20/external/ms-tpm-20-ref/TPMCmd/tpm/include/Commands.h (revision 5c591343844d1f9da7da26467c4bf7efc8a7a413)
1 /* Microsoft Reference Implementation for TPM 2.0
2  *
3  *  The copyright in this software is being made available under the BSD License,
4  *  included below. This software may be subject to other third party and
5  *  contributor rights, including patent rights, and no such rights are granted
6  *  under this license.
7  *
8  *  Copyright (c) Microsoft Corporation
9  *
10  *  All rights reserved.
11  *
12  *  BSD License
13  *
14  *  Redistribution and use in source and binary forms, with or without modification,
15  *  are permitted provided that the following conditions are met:
16  *
17  *  Redistributions of source code must retain the above copyright notice, this list
18  *  of conditions and the following disclaimer.
19  *
20  *  Redistributions in binary form must reproduce the above copyright notice, this
21  *  list of conditions and the following disclaimer in the documentation and/or
22  *  other materials provided with the distribution.
23  *
24  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ""AS IS""
25  *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27  *  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
28  *  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29  *  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30  *  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
31  *  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33  *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34  */
35 /*(Auto-generated)
36  *  Created by TpmStructures; Version 4.4 Mar 26, 2019
37  *  Date: Feb 28, 2020  Time: 03:04:47PM
38  */
39 
40 #ifndef _COMMANDS_H_
41 #define _COMMANDS_H_
42 
43 
44 // Start-up
45 #if CC_Startup
46 #include "Startup_fp.h"
47 #endif
48 #if CC_Shutdown
49 #include "Shutdown_fp.h"
50 #endif
51 
52 // Testing
53 #if CC_SelfTest
54 #include "SelfTest_fp.h"
55 #endif
56 #if CC_IncrementalSelfTest
57 #include "IncrementalSelfTest_fp.h"
58 #endif
59 #if CC_GetTestResult
60 #include "GetTestResult_fp.h"
61 #endif
62 
63 // Session Commands
64 #if CC_StartAuthSession
65 #include "StartAuthSession_fp.h"
66 #endif
67 #if CC_PolicyRestart
68 #include "PolicyRestart_fp.h"
69 #endif
70 
71 // Object Commands
72 #if CC_Create
73 #include "Create_fp.h"
74 #endif
75 #if CC_Load
76 #include "Load_fp.h"
77 #endif
78 #if CC_LoadExternal
79 #include "LoadExternal_fp.h"
80 #endif
81 #if CC_ReadPublic
82 #include "ReadPublic_fp.h"
83 #endif
84 #if CC_ActivateCredential
85 #include "ActivateCredential_fp.h"
86 #endif
87 #if CC_MakeCredential
88 #include "MakeCredential_fp.h"
89 #endif
90 #if CC_Unseal
91 #include "Unseal_fp.h"
92 #endif
93 #if CC_ObjectChangeAuth
94 #include "ObjectChangeAuth_fp.h"
95 #endif
96 #if CC_CreateLoaded
97 #include "CreateLoaded_fp.h"
98 #endif
99 
100 // Duplication Commands
101 #if CC_Duplicate
102 #include "Duplicate_fp.h"
103 #endif
104 #if CC_Rewrap
105 #include "Rewrap_fp.h"
106 #endif
107 #if CC_Import
108 #include "Import_fp.h"
109 #endif
110 
111 // Asymmetric Primitives
112 #if CC_RSA_Encrypt
113 #include "RSA_Encrypt_fp.h"
114 #endif
115 #if CC_RSA_Decrypt
116 #include "RSA_Decrypt_fp.h"
117 #endif
118 #if CC_ECDH_KeyGen
119 #include "ECDH_KeyGen_fp.h"
120 #endif
121 #if CC_ECDH_ZGen
122 #include "ECDH_ZGen_fp.h"
123 #endif
124 #if CC_ECC_Parameters
125 #include "ECC_Parameters_fp.h"
126 #endif
127 #if CC_ZGen_2Phase
128 #include "ZGen_2Phase_fp.h"
129 #endif
130 #if CC_ECC_Encrypt
131 #include "ECC_Encrypt_fp.h"
132 #endif
133 #if CC_ECC_Decrypt
134 #include "ECC_Decrypt_fp.h"
135 #endif
136 
137 // Symmetric Primitives
138 #if CC_EncryptDecrypt
139 #include "EncryptDecrypt_fp.h"
140 #endif
141 #if CC_EncryptDecrypt2
142 #include "EncryptDecrypt2_fp.h"
143 #endif
144 #if CC_Hash
145 #include "Hash_fp.h"
146 #endif
147 #if CC_HMAC
148 #include "HMAC_fp.h"
149 #endif
150 #if CC_MAC
151 #include "MAC_fp.h"
152 #endif
153 
154 // Random Number Generator
155 #if CC_GetRandom
156 #include "GetRandom_fp.h"
157 #endif
158 #if CC_StirRandom
159 #include "StirRandom_fp.h"
160 #endif
161 
162 // Hash/HMAC/Event Sequences
163 #if CC_HMAC_Start
164 #include "HMAC_Start_fp.h"
165 #endif
166 #if CC_MAC_Start
167 #include "MAC_Start_fp.h"
168 #endif
169 #if CC_HashSequenceStart
170 #include "HashSequenceStart_fp.h"
171 #endif
172 #if CC_SequenceUpdate
173 #include "SequenceUpdate_fp.h"
174 #endif
175 #if CC_SequenceComplete
176 #include "SequenceComplete_fp.h"
177 #endif
178 #if CC_EventSequenceComplete
179 #include "EventSequenceComplete_fp.h"
180 #endif
181 
182 // Attestation Commands
183 #if CC_Certify
184 #include "Certify_fp.h"
185 #endif
186 #if CC_CertifyCreation
187 #include "CertifyCreation_fp.h"
188 #endif
189 #if CC_Quote
190 #include "Quote_fp.h"
191 #endif
192 #if CC_GetSessionAuditDigest
193 #include "GetSessionAuditDigest_fp.h"
194 #endif
195 #if CC_GetCommandAuditDigest
196 #include "GetCommandAuditDigest_fp.h"
197 #endif
198 #if CC_GetTime
199 #include "GetTime_fp.h"
200 #endif
201 #if CC_CertifyX509
202 #include "CertifyX509_fp.h"
203 #endif
204 
205 // Ephemeral EC Keys
206 #if CC_Commit
207 #include "Commit_fp.h"
208 #endif
209 #if CC_EC_Ephemeral
210 #include "EC_Ephemeral_fp.h"
211 #endif
212 
213 // Signing and Signature Verification
214 #if CC_VerifySignature
215 #include "VerifySignature_fp.h"
216 #endif
217 #if CC_Sign
218 #include "Sign_fp.h"
219 #endif
220 
221 // Command Audit
222 #if CC_SetCommandCodeAuditStatus
223 #include "SetCommandCodeAuditStatus_fp.h"
224 #endif
225 
226 // Integrity Collection (PCR)
227 #if CC_PCR_Extend
228 #include "PCR_Extend_fp.h"
229 #endif
230 #if CC_PCR_Event
231 #include "PCR_Event_fp.h"
232 #endif
233 #if CC_PCR_Read
234 #include "PCR_Read_fp.h"
235 #endif
236 #if CC_PCR_Allocate
237 #include "PCR_Allocate_fp.h"
238 #endif
239 #if CC_PCR_SetAuthPolicy
240 #include "PCR_SetAuthPolicy_fp.h"
241 #endif
242 #if CC_PCR_SetAuthValue
243 #include "PCR_SetAuthValue_fp.h"
244 #endif
245 #if CC_PCR_Reset
246 #include "PCR_Reset_fp.h"
247 #endif
248 
249 // Enhanced Authorization (EA) Commands
250 #if CC_PolicySigned
251 #include "PolicySigned_fp.h"
252 #endif
253 #if CC_PolicySecret
254 #include "PolicySecret_fp.h"
255 #endif
256 #if CC_PolicyTicket
257 #include "PolicyTicket_fp.h"
258 #endif
259 #if CC_PolicyOR
260 #include "PolicyOR_fp.h"
261 #endif
262 #if CC_PolicyPCR
263 #include "PolicyPCR_fp.h"
264 #endif
265 #if CC_PolicyLocality
266 #include "PolicyLocality_fp.h"
267 #endif
268 #if CC_PolicyNV
269 #include "PolicyNV_fp.h"
270 #endif
271 #if CC_PolicyCounterTimer
272 #include "PolicyCounterTimer_fp.h"
273 #endif
274 #if CC_PolicyCommandCode
275 #include "PolicyCommandCode_fp.h"
276 #endif
277 #if CC_PolicyPhysicalPresence
278 #include "PolicyPhysicalPresence_fp.h"
279 #endif
280 #if CC_PolicyCpHash
281 #include "PolicyCpHash_fp.h"
282 #endif
283 #if CC_PolicyNameHash
284 #include "PolicyNameHash_fp.h"
285 #endif
286 #if CC_PolicyDuplicationSelect
287 #include "PolicyDuplicationSelect_fp.h"
288 #endif
289 #if CC_PolicyAuthorize
290 #include "PolicyAuthorize_fp.h"
291 #endif
292 #if CC_PolicyAuthValue
293 #include "PolicyAuthValue_fp.h"
294 #endif
295 #if CC_PolicyPassword
296 #include "PolicyPassword_fp.h"
297 #endif
298 #if CC_PolicyGetDigest
299 #include "PolicyGetDigest_fp.h"
300 #endif
301 #if CC_PolicyNvWritten
302 #include "PolicyNvWritten_fp.h"
303 #endif
304 #if CC_PolicyTemplate
305 #include "PolicyTemplate_fp.h"
306 #endif
307 #if CC_PolicyAuthorizeNV
308 #include "PolicyAuthorizeNV_fp.h"
309 #endif
310 
311 // Hierarchy Commands
312 #if CC_CreatePrimary
313 #include "CreatePrimary_fp.h"
314 #endif
315 #if CC_HierarchyControl
316 #include "HierarchyControl_fp.h"
317 #endif
318 #if CC_SetPrimaryPolicy
319 #include "SetPrimaryPolicy_fp.h"
320 #endif
321 #if CC_ChangePPS
322 #include "ChangePPS_fp.h"
323 #endif
324 #if CC_ChangeEPS
325 #include "ChangeEPS_fp.h"
326 #endif
327 #if CC_Clear
328 #include "Clear_fp.h"
329 #endif
330 #if CC_ClearControl
331 #include "ClearControl_fp.h"
332 #endif
333 #if CC_HierarchyChangeAuth
334 #include "HierarchyChangeAuth_fp.h"
335 #endif
336 
337 // Dictionary Attack Functions
338 #if CC_DictionaryAttackLockReset
339 #include "DictionaryAttackLockReset_fp.h"
340 #endif
341 #if CC_DictionaryAttackParameters
342 #include "DictionaryAttackParameters_fp.h"
343 #endif
344 
345 // Miscellaneous Management Functions
346 #if CC_PP_Commands
347 #include "PP_Commands_fp.h"
348 #endif
349 #if CC_SetAlgorithmSet
350 #include "SetAlgorithmSet_fp.h"
351 #endif
352 
353 // Field Upgrade
354 #if CC_FieldUpgradeStart
355 #include "FieldUpgradeStart_fp.h"
356 #endif
357 #if CC_FieldUpgradeData
358 #include "FieldUpgradeData_fp.h"
359 #endif
360 #if CC_FirmwareRead
361 #include "FirmwareRead_fp.h"
362 #endif
363 
364 // Context Management
365 #if CC_ContextSave
366 #include "ContextSave_fp.h"
367 #endif
368 #if CC_ContextLoad
369 #include "ContextLoad_fp.h"
370 #endif
371 #if CC_FlushContext
372 #include "FlushContext_fp.h"
373 #endif
374 #if CC_EvictControl
375 #include "EvictControl_fp.h"
376 #endif
377 
378 // Clocks and Timers
379 #if CC_ReadClock
380 #include "ReadClock_fp.h"
381 #endif
382 #if CC_ClockSet
383 #include "ClockSet_fp.h"
384 #endif
385 #if CC_ClockRateAdjust
386 #include "ClockRateAdjust_fp.h"
387 #endif
388 
389 // Capability Commands
390 #if CC_GetCapability
391 #include "GetCapability_fp.h"
392 #endif
393 #if CC_TestParms
394 #include "TestParms_fp.h"
395 #endif
396 
397 // Non-volatile Storage
398 #if CC_NV_DefineSpace
399 #include "NV_DefineSpace_fp.h"
400 #endif
401 #if CC_NV_UndefineSpace
402 #include "NV_UndefineSpace_fp.h"
403 #endif
404 #if CC_NV_UndefineSpaceSpecial
405 #include "NV_UndefineSpaceSpecial_fp.h"
406 #endif
407 #if CC_NV_ReadPublic
408 #include "NV_ReadPublic_fp.h"
409 #endif
410 #if CC_NV_Write
411 #include "NV_Write_fp.h"
412 #endif
413 #if CC_NV_Increment
414 #include "NV_Increment_fp.h"
415 #endif
416 #if CC_NV_Extend
417 #include "NV_Extend_fp.h"
418 #endif
419 #if CC_NV_SetBits
420 #include "NV_SetBits_fp.h"
421 #endif
422 #if CC_NV_WriteLock
423 #include "NV_WriteLock_fp.h"
424 #endif
425 #if CC_NV_GlobalWriteLock
426 #include "NV_GlobalWriteLock_fp.h"
427 #endif
428 #if CC_NV_Read
429 #include "NV_Read_fp.h"
430 #endif
431 #if CC_NV_ReadLock
432 #include "NV_ReadLock_fp.h"
433 #endif
434 #if CC_NV_ChangeAuth
435 #include "NV_ChangeAuth_fp.h"
436 #endif
437 #if CC_NV_Certify
438 #include "NV_Certify_fp.h"
439 #endif
440 
441 // Attached Components
442 #if CC_AC_GetCapability
443 #include "AC_GetCapability_fp.h"
444 #endif
445 #if CC_AC_Send
446 #include "AC_Send_fp.h"
447 #endif
448 #if CC_Policy_AC_SendSelect
449 #include "Policy_AC_SendSelect_fp.h"
450 #endif
451 
452 // Authenticated Countdown Timer
453 #if CC_ACT_SetTimeout
454 #include "ACT_SetTimeout_fp.h"
455 #endif
456 
457 // Vendor Specific
458 #if CC_Vendor_TCG_Test
459 #include "Vendor_TCG_Test_fp.h"
460 #endif
461 
462 #endif
463