| 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.1 Dec 8, 2018 |
| 37 |
* Date: Jan 28, 2019 Time: 01:24:09AM |
| 38 |
*/ |
| 39 |
|
| 40 |
#ifndef _COMMANDS_H_ |
| 41 |
#define _COMMANDS_H_ |
| 42 |
|
| 43 |
|
| 44 |
// Start-up |
| 45 |
#ifdef TPM_CC_Startup |
| 46 |
#include "Startup_fp.h" |
| 47 |
#endif |
| 48 |
#ifdef TPM_CC_Shutdown |
| 49 |
#include "Shutdown_fp.h" |
| 50 |
#endif |
| 51 |
|
| 52 |
// Testing |
| 53 |
#ifdef TPM_CC_SelfTest |
| 54 |
#include "SelfTest_fp.h" |
| 55 |
#endif |
| 56 |
#ifdef TPM_CC_IncrementalSelfTest |
| 57 |
#include "IncrementalSelfTest_fp.h" |
| 58 |
#endif |
| 59 |
#ifdef TPM_CC_GetTestResult |
| 60 |
#include "GetTestResult_fp.h" |
| 61 |
#endif |
| 62 |
|
| 63 |
// Session Commands |
| 64 |
#ifdef TPM_CC_StartAuthSession |
| 65 |
#include "StartAuthSession_fp.h" |
| 66 |
#endif |
| 67 |
#ifdef TPM_CC_PolicyRestart |
| 68 |
#include "PolicyRestart_fp.h" |
| 69 |
#endif |
| 70 |
|
| 71 |
// Object Commands |
| 72 |
#ifdef TPM_CC_Create |
| 73 |
#include "Create_fp.h" |
| 74 |
#endif |
| 75 |
#ifdef TPM_CC_Load |
| 76 |
#include "Load_fp.h" |
| 77 |
#endif |
| 78 |
#ifdef TPM_CC_LoadExternal |
| 79 |
#include "LoadExternal_fp.h" |
| 80 |
#endif |
| 81 |
#ifdef TPM_CC_ReadPublic |
| 82 |
#include "ReadPublic_fp.h" |
| 83 |
#endif |
| 84 |
#ifdef TPM_CC_ActivateCredential |
| 85 |
#include "ActivateCredential_fp.h" |
| 86 |
#endif |
| 87 |
#ifdef TPM_CC_MakeCredential |
| 88 |
#include "MakeCredential_fp.h" |
| 89 |
#endif |
| 90 |
#ifdef TPM_CC_Unseal |
| 91 |
#include "Unseal_fp.h" |
| 92 |
#endif |
| 93 |
#ifdef TPM_CC_ObjectChangeAuth |
| 94 |
#include "ObjectChangeAuth_fp.h" |
| 95 |
#endif |
| 96 |
#ifdef TPM_CC_CreateLoaded |
| 97 |
#include "CreateLoaded_fp.h" |
| 98 |
#endif |
| 99 |
|
| 100 |
// Duplication Commands |
| 101 |
#ifdef TPM_CC_Duplicate |
| 102 |
#include "Duplicate_fp.h" |
| 103 |
#endif |
| 104 |
#ifdef TPM_CC_Rewrap |
| 105 |
#include "Rewrap_fp.h" |
| 106 |
#endif |
| 107 |
#ifdef TPM_CC_Import |
| 108 |
#include "Import_fp.h" |
| 109 |
#endif |
| 110 |
|
| 111 |
// Asymmetric Primitives |
| 112 |
#ifdef TPM_CC_RSA_Encrypt |
| 113 |
#include "RSA_Encrypt_fp.h" |
| 114 |
#endif |
| 115 |
#ifdef TPM_CC_RSA_Decrypt |
| 116 |
#include "RSA_Decrypt_fp.h" |
| 117 |
#endif |
| 118 |
#ifdef TPM_CC_ECDH_KeyGen |
| 119 |
#include "ECDH_KeyGen_fp.h" |
| 120 |
#endif |
| 121 |
#ifdef TPM_CC_ECDH_ZGen |
| 122 |
#include "ECDH_ZGen_fp.h" |
| 123 |
#endif |
| 124 |
#ifdef TPM_CC_ECC_Parameters |
| 125 |
#include "ECC_Parameters_fp.h" |
| 126 |
#endif |
| 127 |
#ifdef TPM_CC_ZGen_2Phase |
| 128 |
#include "ZGen_2Phase_fp.h" |
| 129 |
#endif |
| 130 |
|
| 131 |
// Symmetric Primitives |
| 132 |
#ifdef TPM_CC_EncryptDecrypt |
| 133 |
#include "EncryptDecrypt_fp.h" |
| 134 |
#endif |
| 135 |
#ifdef TPM_CC_EncryptDecrypt2 |
| 136 |
#include "EncryptDecrypt2_fp.h" |
| 137 |
#endif |
| 138 |
#ifdef TPM_CC_Hash |
| 139 |
#include "Hash_fp.h" |
| 140 |
#endif |
| 141 |
#ifdef TPM_CC_HMAC |
| 142 |
#include "HMAC_fp.h" |
| 143 |
#endif |
| 144 |
#ifdef TPM_CC_MAC |
| 145 |
#include "MAC_fp.h" |
| 146 |
#endif |
| 147 |
|
| 148 |
// Random Number Generator |
| 149 |
#ifdef TPM_CC_GetRandom |
| 150 |
#include "GetRandom_fp.h" |
| 151 |
#endif |
| 152 |
#ifdef TPM_CC_StirRandom |
| 153 |
#include "StirRandom_fp.h" |
| 154 |
#endif |
| 155 |
|
| 156 |
// Hash/HMAC/Event Sequences |
| 157 |
#ifdef TPM_CC_HMAC_Start |
| 158 |
#include "HMAC_Start_fp.h" |
| 159 |
#endif |
| 160 |
#ifdef TPM_CC_MAC_Start |
| 161 |
#include "MAC_Start_fp.h" |
| 162 |
#endif |
| 163 |
#ifdef TPM_CC_HashSequenceStart |
| 164 |
#include "HashSequenceStart_fp.h" |
| 165 |
#endif |
| 166 |
#ifdef TPM_CC_SequenceUpdate |
| 167 |
#include "SequenceUpdate_fp.h" |
| 168 |
#endif |
| 169 |
#ifdef TPM_CC_SequenceComplete |
| 170 |
#include "SequenceComplete_fp.h" |
| 171 |
#endif |
| 172 |
#ifdef TPM_CC_EventSequenceComplete |
| 173 |
#include "EventSequenceComplete_fp.h" |
| 174 |
#endif |
| 175 |
|
| 176 |
// Attestation Commands |
| 177 |
#ifdef TPM_CC_Certify |
| 178 |
#include "Certify_fp.h" |
| 179 |
#endif |
| 180 |
#ifdef TPM_CC_CertifyCreation |
| 181 |
#include "CertifyCreation_fp.h" |
| 182 |
#endif |
| 183 |
#ifdef TPM_CC_Quote |
| 184 |
#include "Quote_fp.h" |
| 185 |
#endif |
| 186 |
#ifdef TPM_CC_GetSessionAuditDigest |
| 187 |
#include "GetSessionAuditDigest_fp.h" |
| 188 |
#endif |
| 189 |
#ifdef TPM_CC_GetCommandAuditDigest |
| 190 |
#include "GetCommandAuditDigest_fp.h" |
| 191 |
#endif |
| 192 |
#ifdef TPM_CC_GetTime |
| 193 |
#include "GetTime_fp.h" |
| 194 |
#endif |
| 195 |
#ifdef TPM_CC_CertifyX509 |
| 196 |
#include "CertifyX509_fp.h" |
| 197 |
#endif |
| 198 |
|
| 199 |
// Ephemeral EC Keys |
| 200 |
#ifdef TPM_CC_Commit |
| 201 |
#include "Commit_fp.h" |
| 202 |
#endif |
| 203 |
#ifdef TPM_CC_EC_Ephemeral |
| 204 |
#include "EC_Ephemeral_fp.h" |
| 205 |
#endif |
| 206 |
|
| 207 |
// Signing and Signature Verification |
| 208 |
#ifdef TPM_CC_VerifySignature |
| 209 |
#include "VerifySignature_fp.h" |
| 210 |
#endif |
| 211 |
#ifdef TPM_CC_Sign |
| 212 |
#include "Sign_fp.h" |
| 213 |
#endif |
| 214 |
|
| 215 |
// Command Audit |
| 216 |
#ifdef TPM_CC_SetCommandCodeAuditStatus |
| 217 |
#include "SetCommandCodeAuditStatus_fp.h" |
| 218 |
#endif |
| 219 |
|
| 220 |
// Integrity Collection (PCR) |
| 221 |
#ifdef TPM_CC_PCR_Extend |
| 222 |
#include "PCR_Extend_fp.h" |
| 223 |
#endif |
| 224 |
#ifdef TPM_CC_PCR_Event |
| 225 |
#include "PCR_Event_fp.h" |
| 226 |
#endif |
| 227 |
#ifdef TPM_CC_PCR_Read |
| 228 |
#include "PCR_Read_fp.h" |
| 229 |
#endif |
| 230 |
#ifdef TPM_CC_PCR_Allocate |
| 231 |
#include "PCR_Allocate_fp.h" |
| 232 |
#endif |
| 233 |
#ifdef TPM_CC_PCR_SetAuthPolicy |
| 234 |
#include "PCR_SetAuthPolicy_fp.h" |
| 235 |
#endif |
| 236 |
#ifdef TPM_CC_PCR_SetAuthValue |
| 237 |
#include "PCR_SetAuthValue_fp.h" |
| 238 |
#endif |
| 239 |
#ifdef TPM_CC_PCR_Reset |
| 240 |
#include "PCR_Reset_fp.h" |
| 241 |
#endif |
| 242 |
|
| 243 |
// Enhanced Authorization (EA) Commands |
| 244 |
#ifdef TPM_CC_PolicySigned |
| 245 |
#include "PolicySigned_fp.h" |
| 246 |
#endif |
| 247 |
#ifdef TPM_CC_PolicySecret |
| 248 |
#include "PolicySecret_fp.h" |
| 249 |
#endif |
| 250 |
#ifdef TPM_CC_PolicyTicket |
| 251 |
#include "PolicyTicket_fp.h" |
| 252 |
#endif |
| 253 |
#ifdef TPM_CC_PolicyOR |
| 254 |
#include "PolicyOR_fp.h" |
| 255 |
#endif |
| 256 |
#ifdef TPM_CC_PolicyPCR |
| 257 |
#include "PolicyPCR_fp.h" |
| 258 |
#endif |
| 259 |
#ifdef TPM_CC_PolicyLocality |
| 260 |
#include "PolicyLocality_fp.h" |
| 261 |
#endif |
| 262 |
#ifdef TPM_CC_PolicyNV |
| 263 |
#include "PolicyNV_fp.h" |
| 264 |
#endif |
| 265 |
#ifdef TPM_CC_PolicyCounterTimer |
| 266 |
#include "PolicyCounterTimer_fp.h" |
| 267 |
#endif |
| 268 |
#ifdef TPM_CC_PolicyCommandCode |
| 269 |
#include "PolicyCommandCode_fp.h" |
| 270 |
#endif |
| 271 |
#ifdef TPM_CC_PolicyPhysicalPresence |
| 272 |
#include "PolicyPhysicalPresence_fp.h" |
| 273 |
#endif |
| 274 |
#ifdef TPM_CC_PolicyCpHash |
| 275 |
#include "PolicyCpHash_fp.h" |
| 276 |
#endif |
| 277 |
#ifdef TPM_CC_PolicyNameHash |
| 278 |
#include "PolicyNameHash_fp.h" |
| 279 |
#endif |
| 280 |
#ifdef TPM_CC_PolicyDuplicationSelect |
| 281 |
#include "PolicyDuplicationSelect_fp.h" |
| 282 |
#endif |
| 283 |
#ifdef TPM_CC_PolicyAuthorize |
| 284 |
#include "PolicyAuthorize_fp.h" |
| 285 |
#endif |
| 286 |
#ifdef TPM_CC_PolicyAuthValue |
| 287 |
#include "PolicyAuthValue_fp.h" |
| 288 |
#endif |
| 289 |
#ifdef TPM_CC_PolicyPassword |
| 290 |
#include "PolicyPassword_fp.h" |
| 291 |
#endif |
| 292 |
#ifdef TPM_CC_PolicyGetDigest |
| 293 |
#include "PolicyGetDigest_fp.h" |
| 294 |
#endif |
| 295 |
#ifdef TPM_CC_PolicyNvWritten |
| 296 |
#include "PolicyNvWritten_fp.h" |
| 297 |
#endif |
| 298 |
#ifdef TPM_CC_PolicyTemplate |
| 299 |
#include "PolicyTemplate_fp.h" |
| 300 |
#endif |
| 301 |
#ifdef TPM_CC_PolicyAuthorizeNV |
| 302 |
#include "PolicyAuthorizeNV_fp.h" |
| 303 |
#endif |
| 304 |
|
| 305 |
// Hierarchy Commands |
| 306 |
#ifdef TPM_CC_CreatePrimary |
| 307 |
#include "CreatePrimary_fp.h" |
| 308 |
#endif |
| 309 |
#ifdef TPM_CC_HierarchyControl |
| 310 |
#include "HierarchyControl_fp.h" |
| 311 |
#endif |
| 312 |
#ifdef TPM_CC_SetPrimaryPolicy |
| 313 |
#include "SetPrimaryPolicy_fp.h" |
| 314 |
#endif |
| 315 |
#ifdef TPM_CC_ChangePPS |
| 316 |
#include "ChangePPS_fp.h" |
| 317 |
#endif |
| 318 |
#ifdef TPM_CC_ChangeEPS |
| 319 |
#include "ChangeEPS_fp.h" |
| 320 |
#endif |
| 321 |
#ifdef TPM_CC_Clear |
| 322 |
#include "Clear_fp.h" |
| 323 |
#endif |
| 324 |
#ifdef TPM_CC_ClearControl |
| 325 |
#include "ClearControl_fp.h" |
| 326 |
#endif |
| 327 |
#ifdef TPM_CC_HierarchyChangeAuth |
| 328 |
#include "HierarchyChangeAuth_fp.h" |
| 329 |
#endif |
| 330 |
|
| 331 |
// Dictionary Attack Functions |
| 332 |
#ifdef TPM_CC_DictionaryAttackLockReset |
| 333 |
#include "DictionaryAttackLockReset_fp.h" |
| 334 |
#endif |
| 335 |
#ifdef TPM_CC_DictionaryAttackParameters |
| 336 |
#include "DictionaryAttackParameters_fp.h" |
| 337 |
#endif |
| 338 |
|
| 339 |
// Miscellaneous Management Functions |
| 340 |
#ifdef TPM_CC_PP_Commands |
| 341 |
#include "PP_Commands_fp.h" |
| 342 |
#endif |
| 343 |
#ifdef TPM_CC_SetAlgorithmSet |
| 344 |
#include "SetAlgorithmSet_fp.h" |
| 345 |
#endif |
| 346 |
|
| 347 |
// Field Upgrade |
| 348 |
#ifdef TPM_CC_FieldUpgradeStart |
| 349 |
#include "FieldUpgradeStart_fp.h" |
| 350 |
#endif |
| 351 |
#ifdef TPM_CC_FieldUpgradeData |
| 352 |
#include "FieldUpgradeData_fp.h" |
| 353 |
#endif |
| 354 |
#ifdef TPM_CC_FirmwareRead |
| 355 |
#include "FirmwareRead_fp.h" |
| 356 |
#endif |
| 357 |
|
| 358 |
// Context Management |
| 359 |
#ifdef TPM_CC_ContextSave |
| 360 |
#include "ContextSave_fp.h" |
| 361 |
#endif |
| 362 |
#ifdef TPM_CC_ContextLoad |
| 363 |
#include "ContextLoad_fp.h" |
| 364 |
#endif |
| 365 |
#ifdef TPM_CC_FlushContext |
| 366 |
#include "FlushContext_fp.h" |
| 367 |
#endif |
| 368 |
#ifdef TPM_CC_EvictControl |
| 369 |
#include "EvictControl_fp.h" |
| 370 |
#endif |
| 371 |
|
| 372 |
// Clocks and Timers |
| 373 |
#ifdef TPM_CC_ReadClock |
| 374 |
#include "ReadClock_fp.h" |
| 375 |
#endif |
| 376 |
#ifdef TPM_CC_ClockSet |
| 377 |
#include "ClockSet_fp.h" |
| 378 |
#endif |
| 379 |
#ifdef TPM_CC_ClockRateAdjust |
| 380 |
#include "ClockRateAdjust_fp.h" |
| 381 |
#endif |
| 382 |
|
| 383 |
// Capability Commands |
| 384 |
#ifdef TPM_CC_GetCapability |
| 385 |
#include "GetCapability_fp.h" |
| 386 |
#endif |
| 387 |
#ifdef TPM_CC_TestParms |
| 388 |
#include "TestParms_fp.h" |
| 389 |
#endif |
| 390 |
|
| 391 |
// Non-volatile Storage |
| 392 |
#ifdef TPM_CC_NV_DefineSpace |
| 393 |
#include "NV_DefineSpace_fp.h" |
| 394 |
#endif |
| 395 |
#ifdef TPM_CC_NV_UndefineSpace |
| 396 |
#include "NV_UndefineSpace_fp.h" |
| 397 |
#endif |
| 398 |
#ifdef TPM_CC_NV_UndefineSpaceSpecial |
| 399 |
#include "NV_UndefineSpaceSpecial_fp.h" |
| 400 |
#endif |
| 401 |
#ifdef TPM_CC_NV_ReadPublic |
| 402 |
#include "NV_ReadPublic_fp.h" |
| 403 |
#endif |
| 404 |
#ifdef TPM_CC_NV_Write |
| 405 |
#include "NV_Write_fp.h" |
| 406 |
#endif |
| 407 |
#ifdef TPM_CC_NV_Increment |
| 408 |
#include "NV_Increment_fp.h" |
| 409 |
#endif |
| 410 |
#ifdef TPM_CC_NV_Extend |
| 411 |
#include "NV_Extend_fp.h" |
| 412 |
#endif |
| 413 |
#ifdef TPM_CC_NV_SetBits |
| 414 |
#include "NV_SetBits_fp.h" |
| 415 |
#endif |
| 416 |
#ifdef TPM_CC_NV_WriteLock |
| 417 |
#include "NV_WriteLock_fp.h" |
| 418 |
#endif |
| 419 |
#ifdef TPM_CC_NV_GlobalWriteLock |
| 420 |
#include "NV_GlobalWriteLock_fp.h" |
| 421 |
#endif |
| 422 |
#ifdef TPM_CC_NV_Read |
| 423 |
#include "NV_Read_fp.h" |
| 424 |
#endif |
| 425 |
#ifdef TPM_CC_NV_ReadLock |
| 426 |
#include "NV_ReadLock_fp.h" |
| 427 |
#endif |
| 428 |
#ifdef TPM_CC_NV_ChangeAuth |
| 429 |
#include "NV_ChangeAuth_fp.h" |
| 430 |
#endif |
| 431 |
#ifdef TPM_CC_NV_Certify |
| 432 |
#include "NV_Certify_fp.h" |
| 433 |
#endif |
| 434 |
|
| 435 |
// Attached Components |
| 436 |
#ifdef TPM_CC_AC_GetCapability |
| 437 |
#include "AC_GetCapability_fp.h" |
| 438 |
#endif |
| 439 |
#ifdef TPM_CC_AC_Send |
| 440 |
#include "AC_Send_fp.h" |
| 441 |
#endif |
| 442 |
#ifdef TPM_CC_Policy_AC_SendSelect |
| 443 |
#include "Policy_AC_SendSelect_fp.h" |
| 444 |
#endif |
| 445 |
|
| 446 |
// Vendor Specific |
| 447 |
#ifdef TPM_CC_Vendor_TCG_Test |
| 448 |
#include "Vendor_TCG_Test_fp.h" |
| 449 |
#endif |
| 450 |
|
| 451 |
#endif |