/********************************************************************************/ /* */ /* Command Header Includes */ /* Written by Ken Goldman */ /* IBM Thomas J. Watson Research Center */ /* $Id: Commands.h 1594 2020-03-26 22:15:48Z kgoldman $ */ /* */ /* Licenses and Notices */ /* */ /* 1. Copyright Licenses: */ /* */ /* - Trusted Computing Group (TCG) grants to the user of the source code in */ /* this specification (the "Source Code") a worldwide, irrevocable, */ /* nonexclusive, royalty free, copyright license to reproduce, create */ /* derivative works, distribute, display and perform the Source Code and */ /* derivative works thereof, and to grant others the rights granted herein. */ /* */ /* - The TCG grants to the user of the other parts of the specification */ /* (other than the Source Code) the rights to reproduce, distribute, */ /* display, and perform the specification solely for the purpose of */ /* developing products based on such documents. */ /* */ /* 2. Source Code Distribution Conditions: */ /* */ /* - Redistributions of Source Code must retain the above copyright licenses, */ /* this list of conditions and the following disclaimers. */ /* */ /* - Redistributions in binary form must reproduce the above copyright */ /* licenses, this list of conditions and the following disclaimers in the */ /* documentation and/or other materials provided with the distribution. */ /* */ /* 3. Disclaimers: */ /* */ /* - THE COPYRIGHT LICENSES SET FORTH ABOVE DO NOT REPRESENT ANY FORM OF */ /* LICENSE OR WAIVER, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, WITH */ /* RESPECT TO PATENT RIGHTS HELD BY TCG MEMBERS (OR OTHER THIRD PARTIES) */ /* THAT MAY BE NECESSARY TO IMPLEMENT THIS SPECIFICATION OR OTHERWISE. */ /* Contact TCG Administration (admin@trustedcomputinggroup.org) for */ /* information on specification licensing rights available through TCG */ /* membership agreements. */ /* */ /* - THIS SPECIFICATION IS PROVIDED "AS IS" WITH NO EXPRESS OR IMPLIED */ /* WARRANTIES WHATSOEVER, INCLUDING ANY WARRANTY OF MERCHANTABILITY OR */ /* FITNESS FOR A PARTICULAR PURPOSE, ACCURACY, COMPLETENESS, OR */ /* NONINFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS, OR ANY WARRANTY */ /* OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE. */ /* */ /* - Without limitation, TCG and its members and licensors disclaim all */ /* liability, including liability for infringement of any proprietary */ /* rights, relating to use of information in this specification and to the */ /* implementation of this specification, and TCG disclaims all liability for */ /* cost of procurement of substitute goods or services, lost profits, loss */ /* of use, loss of data or any incidental, consequential, direct, indirect, */ /* or special damages, whether under contract, tort, warranty or otherwise, */ /* arising in any way out of use or reliance upon this specification or any */ /* information herein. */ /* */ /* (c) Copyright IBM Corp. and others, 2016 - 2020 */ /* */ /********************************************************************************/ #ifndef COMMANDS_H #define COMMANDS_H #if CC_Startup #include "Startup_fp.h" #endif #if CC_Shutdown #include "Shutdown_fp.h" #endif /* Testing */ #if CC_SelfTest #include "SelfTest_fp.h" #endif #if CC_IncrementalSelfTest #include "IncrementalSelfTest_fp.h" #endif #if CC_GetTestResult #include "GetTestResult_fp.h" #endif /* Session Commands */ #if CC_StartAuthSession #include "StartAuthSession_fp.h" #endif #if CC_PolicyRestart #include "PolicyRestart_fp.h" #endif /* Object Commands */ #if CC_Create #include "Create_fp.h" #endif #if CC_Load #include "Load_fp.h" #endif #if CC_LoadExternal #include "LoadExternal_fp.h" #endif #if CC_ReadPublic #include "ReadPublic_fp.h" #endif #if CC_ActivateCredential #include "ActivateCredential_fp.h" #endif #if CC_MakeCredential #include "MakeCredential_fp.h" #endif #if CC_Unseal #include "Unseal_fp.h" #endif #if CC_ObjectChangeAuth #include "ObjectChangeAuth_fp.h" #endif #if CC_CreateLoaded #include "CreateLoaded_fp.h" #endif /* Duplication Commands */ #if CC_Duplicate #include "Duplicate_fp.h" #endif #if CC_Rewrap #include "Rewrap_fp.h" #endif #if CC_Import #include "Import_fp.h" #endif /* Asymmetric Primitives */ #if CC_RSA_Encrypt #include "RSA_Encrypt_fp.h" #endif #if CC_RSA_Decrypt #include "RSA_Decrypt_fp.h" #endif #if CC_ECDH_KeyGen #include "ECDH_KeyGen_fp.h" #endif #if CC_ECDH_ZGen #include "ECDH_ZGen_fp.h" #endif #if CC_ECC_Parameters #include "ECC_Parameters_fp.h" #endif #if CC_ZGen_2Phase #include "ZGen_2Phase_fp.h" #endif #if CC_ECC_Encrypt #include "ECC_Encrypt_fp.h" #endif #if CC_ECC_Decrypt #include "ECC_Decrypt_fp.h" #endif /* Symmetric Primitives */ #if CC_EncryptDecrypt #include "EncryptDecrypt_fp.h" #endif #if CC_EncryptDecrypt2 #include "EncryptDecrypt2_fp.h" #endif #if CC_Hash #include "Hash_fp.h" #endif #if CC_HMAC #include "HMAC_fp.h" #endif #if CC_MAC #include "MAC_fp.h" #endif /* Random Number Generator */ #if CC_GetRandom #include "GetRandom_fp.h" #endif #if CC_StirRandom #include "StirRandom_fp.h" #endif /* Hash/HMAC/Event Sequences */ #if CC_HMAC_Start #include "HMAC_Start_fp.h" #endif #if CC_MAC_Start #include "MAC_Start_fp.h" #endif #if CC_HashSequenceStart #include "HashSequenceStart_fp.h" #endif #if CC_SequenceUpdate #include "SequenceUpdate_fp.h" #endif #if CC_SequenceComplete #include "SequenceComplete_fp.h" #endif #if CC_EventSequenceComplete #include "EventSequenceComplete_fp.h" #endif /* Attestation Commands */ #if CC_Certify #include "Certify_fp.h" #endif #if CC_CertifyCreation #include "CertifyCreation_fp.h" #endif #if CC_CertifyX509 #include "CertifyX509_fp.h" #endif #if CC_Quote #include "Quote_fp.h" #endif #if CC_GetSessionAuditDigest #include "GetSessionAuditDigest_fp.h" #endif #if CC_GetCommandAuditDigest #include "GetCommandAuditDigest_fp.h" #endif #if CC_GetTime #include "GetTime_fp.h" #endif #ifdef TPM_CC_CertifyX509 #include "CertifyX509_fp.h" #endif /* Ephemeral EC Keys */ #if CC_Commit #include "Commit_fp.h" #endif #if CC_EC_Ephemeral #include "EC_Ephemeral_fp.h" #endif /* Signing and Signature Verification */ #if CC_VerifySignature #include "VerifySignature_fp.h" #endif #if CC_Sign #include "Sign_fp.h" #endif /* Command Audit */ #if CC_SetCommandCodeAuditStatus #include "SetCommandCodeAuditStatus_fp.h" #endif /* Integrity Collection (PCR) */ #if CC_PCR_Extend #include "PCR_Extend_fp.h" #endif #if CC_PCR_Event #include "PCR_Event_fp.h" #endif #if CC_PCR_Read #include "PCR_Read_fp.h" #endif #if CC_PCR_Allocate #include "PCR_Allocate_fp.h" #endif #if CC_PCR_SetAuthPolicy #include "PCR_SetAuthPolicy_fp.h" #endif #if CC_PCR_SetAuthValue #include "PCR_SetAuthValue_fp.h" #endif #if CC_PCR_Reset #include "PCR_Reset_fp.h" #endif /* Enhanced Authorization (EA) Commands */ #if CC_PolicySigned #include "PolicySigned_fp.h" #endif #if CC_PolicySecret #include "PolicySecret_fp.h" #endif #if CC_PolicyTicket #include "PolicyTicket_fp.h" #endif #if CC_PolicyOR #include "PolicyOR_fp.h" #endif #if CC_PolicyPCR #include "PolicyPCR_fp.h" #endif #if CC_PolicyLocality #include "PolicyLocality_fp.h" #endif #if CC_PolicyNV #include "PolicyNV_fp.h" #endif #if CC_PolicyCounterTimer #include "PolicyCounterTimer_fp.h" #endif #if CC_PolicyCommandCode #include "PolicyCommandCode_fp.h" #endif #if CC_PolicyPhysicalPresence #include "PolicyPhysicalPresence_fp.h" #endif #if CC_PolicyCpHash #include "PolicyCpHash_fp.h" #endif #if CC_PolicyNameHash #include "PolicyNameHash_fp.h" #endif #if CC_PolicyDuplicationSelect #include "PolicyDuplicationSelect_fp.h" #endif #if CC_PolicyAuthorize #include "PolicyAuthorize_fp.h" #endif #if CC_PolicyAuthValue #include "PolicyAuthValue_fp.h" #endif #if CC_PolicyPassword #include "PolicyPassword_fp.h" #endif #if CC_PolicyGetDigest #include "PolicyGetDigest_fp.h" #endif #if CC_PolicyNvWritten #include "PolicyNvWritten_fp.h" #endif #if CC_PolicyTemplate #include "PolicyTemplate_fp.h" #endif #if CC_PolicyAuthorizeNV #include "PolicyAuthorizeNV_fp.h" #endif #if CC_PolicyCapability #include "PolicyCapability_fp.h" #endif #if CC_PolicyParameters #include "PolicyParameters_fp.h" #endif /* Hierarchy Commands */ #if CC_CreatePrimary #include "CreatePrimary_fp.h" #endif #if CC_HierarchyControl #include "HierarchyControl_fp.h" #endif #if CC_SetPrimaryPolicy #include "SetPrimaryPolicy_fp.h" #endif #if CC_ChangePPS #include "ChangePPS_fp.h" #endif #if CC_ChangeEPS #include "ChangeEPS_fp.h" #endif #if CC_Clear #include "Clear_fp.h" #endif #if CC_ClearControl #include "ClearControl_fp.h" #endif #if CC_HierarchyChangeAuth #include "HierarchyChangeAuth_fp.h" #endif /* Dictionary Attack Functions */ #if CC_DictionaryAttackLockReset #include "DictionaryAttackLockReset_fp.h" #endif #if CC_DictionaryAttackParameters #include "DictionaryAttackParameters_fp.h" #endif /* Miscellaneous Management Functions */ #if CC_PP_Commands #include "PP_Commands_fp.h" #endif #if CC_SetAlgorithmSet #include "SetAlgorithmSet_fp.h" #endif /* Field Upgrade */ #if CC_FieldUpgradeStart #include "FieldUpgradeStart_fp.h" #endif #if CC_FieldUpgradeData #include "FieldUpgradeData_fp.h" #endif #if CC_FirmwareRead #include "FirmwareRead_fp.h" #endif /* Context Management */ #if CC_ContextSave #include "ContextSave_fp.h" #endif #if CC_ContextLoad #include "ContextLoad_fp.h" #endif #if CC_FlushContext #include "FlushContext_fp.h" #endif #if CC_EvictControl #include "EvictControl_fp.h" #endif /* Clocks and Timers */ #if CC_ReadClock #include "ReadClock_fp.h" #endif #if CC_ClockSet #include "ClockSet_fp.h" #endif #if CC_ClockRateAdjust #include "ClockRateAdjust_fp.h" #endif /* Capability Commands */ #if CC_GetCapability #include "GetCapability_fp.h" #endif #if CC_TestParms #include "TestParms_fp.h" #endif #if CC_NV_DefineSpace #include "NV_DefineSpace_fp.h" #endif #if CC_NV_UndefineSpace #include "NV_UndefineSpace_fp.h" #endif #if CC_NV_UndefineSpaceSpecial #include "NV_UndefineSpaceSpecial_fp.h" #endif #if CC_NV_ReadPublic #include "NV_ReadPublic_fp.h" #endif #if CC_NV_Write #include "NV_Write_fp.h" #endif #if CC_NV_Increment #include "NV_Increment_fp.h" #endif #if CC_NV_Extend #include "NV_Extend_fp.h" #endif #if CC_NV_SetBits #include "NV_SetBits_fp.h" #endif #if CC_NV_WriteLock #include "NV_WriteLock_fp.h" #endif #if CC_NV_GlobalWriteLock #include "NV_GlobalWriteLock_fp.h" #endif #if CC_NV_Read #include "NV_Read_fp.h" #endif #if CC_NV_ReadLock #include "NV_ReadLock_fp.h" #endif #if CC_NV_ChangeAuth #include "NV_ChangeAuth_fp.h" #endif #if CC_NV_Certify #include "NV_Certify_fp.h" #endif #if CC_NV_DefineSpace2 # include "NV_DefineSpace2_fp.h" #endif #if CC_NV_ReadPublic2 # include "NV_ReadPublic2_fp.h" #endif #if CC_SetCapability # include "SetCapability_fp.h" #endif /* Attached Components */ #if CC_AC_GetCapability #include "AC_GetCapability_fp.h" #endif #if CC_AC_Send #include "AC_Send_fp.h" #endif #if CC_Policy_AC_SendSelect #include "Policy_AC_SendSelect_fp.h" #endif /* Authenticated Countdown Timer */ #ifdef TPM_CC_ACT_SetTimeout #include "ACT_SetTimeout_fp.h" #endif /* Vendor Specific */ #if CC_Vendor_TCG_Test #include "Vendor_TCG_Test_fp.h" #endif /* Nuvoton Commands */ #ifdef TPM_NUVOTON #include "ntc2_fp.h" #endif #endif