MdePkg[all]
1.08
|
TPM2.0 Specification data structures (Trusted Platform Module Library Specification, Family "2.0", Level 00, Revision 00.96, ://www.trustedcomputinggroup.org/resources/tpm_library_specification)
Check http://trustedcomputinggroup.org for latest specification updates.
Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
#define ACTIVE_SESSION_FIRST (TPM_HC)(POLICY_SESSION_FIRST) |
#define ACTIVE_SESSION_LAST (TPM_HC)(POLICY_SESSION_LAST) |
#define ALG_ID_FIRST TPM_ALG_FIRST |
#define ALG_ID_LAST TPM_ALG_LAST |
#define BUFFER_ALIGNMENT 4 |
#define CLEAR 0 |
#define CONTEXT_ENCRYPT_ALG TPM_ALG_AES |
#define CONTEXT_ENCRYPT_KEY_BITS MAX_SYM_KEY_BITS |
#define CONTEXT_ENCRYPT_KEY_BYTES ((CONTEXT_ENCRYPT_KEY_BITS + 7) / 8) |
#define CONTEXT_INTEGRITY_HASH_ALG TPM_ALG_SHA256 |
#define CONTEXT_INTEGRITY_HASH_SIZE SHA256_DIGEST_SIZE |
#define CRT_FORMAT_RSA YES |
#define DRTM_PCR 17 |
#define HASH_ALG_SHA1 0x00000001 |
#define HASH_ALG_SHA256 0x00000002 |
#define HASH_ALG_SHA384 0x00000004 |
#define HASH_ALG_SHA512 0x00000008 |
#define HASH_ALG_SM3_256 0x00000010 |
#define HASH_COUNT 5 |
#define HMAC_SESSION_FIRST (TPM_HC)(HR_HMAC_SESSION + 0) |
#define HMAC_SESSION_LAST (TPM_HC)(HMAC_SESSION_FIRST + MAX_ACTIVE_SESSIONS - 1) |
#define HR_HANDLE_MASK (TPM_HC)(0x00FFFFFF) |
#define HR_HMAC_SESSION (TPM_HC)((TPM_HC)TPM_HT_HMAC_SESSION << HR_SHIFT) |
#define HR_NV_INDEX (TPM_HC)((TPM_HC)TPM_HT_NV_INDEX << HR_SHIFT) |
#define HR_PCR (TPM_HC)((TPM_HC)TPM_HT_PCR << HR_SHIFT) |
#define HR_PERMANENT (TPM_HC)((TPM_HC)TPM_HT_PERMANENT << HR_SHIFT) |
#define HR_PERSISTENT (TPM_HC)((TPM_HC)TPM_HT_PERSISTENT << HR_SHIFT) |
#define HR_POLICY_SESSION (TPM_HC)((TPM_HC)TPM_HT_POLICY_SESSION << HR_SHIFT) |
#define HR_RANGE_MASK (TPM_HC)(0xFF000000) |
#define HR_SHIFT (TPM_HC)(24) |
#define HR_TRANSIENT (TPM_HC)((TPM_HC)TPM_HT_TRANSIENT << HR_SHIFT) |
#define IMPLEMENTATION_PCR 24 |
#define LOADED_SESSION_FIRST (TPM_HC)(HMAC_SESSION_FIRST) |
#define LOADED_SESSION_LAST (TPM_HC)(HMAC_SESSION_LAST) |
#define MAX_ACTIVE_SESSIONS 64 |
#define MAX_AES_BLOCK_SIZE_BYTES 16 |
#define MAX_AES_KEY_BITS 128 |
#define MAX_AES_KEY_BYTES ((MAX_AES_KEY_BITS + 7) / 8) |
#define MAX_ALG_LIST_SIZE 64 |
#define MAX_CAP_ALGS (MAX_CAP_DATA / sizeof(TPMS_ALG_PROPERTY)) |
#define MAX_CAP_BUFFER 1024 |
#define MAX_CAP_CC (MAX_CAP_DATA / sizeof(TPM_CC)) |
#define MAX_CAP_DATA (MAX_CAP_BUFFER - sizeof(TPM_CAP) - sizeof(UINT32)) |
#define MAX_CAP_HANDLES (MAX_CAP_DATA / sizeof(TPM_HANDLE)) |
#define MAX_COMMAND_SIZE 4096 |
#define MAX_CONTEXT_SIZE 4000 |
#define MAX_DIGEST_BUFFER 1024 |
#define MAX_ECC_CURVES (MAX_CAP_DATA / sizeof(TPM_ECC_CURVE)) |
#define MAX_ECC_KEY_BITS 256 |
#define MAX_ECC_KEY_BYTES ((MAX_ECC_KEY_BITS + 7) / 8) |
#define MAX_HANDLE_NUM 3 |
#define MAX_LOADED_OBJECTS 3 |
#define MAX_LOADED_SESSIONS 3 |
#define MAX_NV_INDEX_SIZE 1024 |
#define MAX_ORDERLY_COUNT ((1 << ORDERLY_BITS) - 1) |
#define MAX_PCR_PROPERTIES (MAX_CAP_DATA / sizeof(TPMS_TAGGED_PCR_SELECT)) |
#define MAX_RESPONSE_SIZE 4096 |
#define MAX_RNG_ENTROPY_SIZE 64 |
#define MAX_RSA_KEY_BITS 2048 |
#define MAX_RSA_KEY_BYTES ((MAX_RSA_KEY_BITS + 7) / 8) |
#define MAX_SESSION_NUM 3 |
#define MAX_SESSION_NUMBER 3 |
#define MAX_SM4_BLOCK_SIZE_BYTES 16 |
#define MAX_SM4_KEY_BITS 128 |
#define MAX_SM4_KEY_BYTES ((MAX_SM4_KEY_BITS + 7) / 8) |
#define MAX_SYM_BLOCK_SIZE MAX_AES_BLOCK_SIZE_BYTES |
#define MAX_SYM_DATA 128 |
#define MAX_SYM_KEY_BITS MAX_AES_KEY_BITS |
#define MAX_SYM_KEY_BYTES MAX_AES_KEY_BYTES |
#define MAX_TPM_PROPERTIES (MAX_CAP_DATA / sizeof(TPMS_TAGGED_PROPERTY)) |
#define MIN_EVICT_OBJECTS 2 |
#define NO 0 |
#define NUM_AUTHVALUE_PCR_GROUP 1 |
#define NUM_LOCALITIES 5 |
#define NUM_POLICY_PCR 1 |
#define NUM_POLICY_PCR_GROUP 1 |
#define NUM_STATIC_PCR 16 |
#define NV_CLOCK_UPDATE_INTERVAL 12 |
#define NV_INDEX_FIRST (TPM_HC)(HR_NV_INDEX + 0) |
#define NV_INDEX_LAST (TPM_HC)(NV_INDEX_FIRST + 0x00FFFFFF) |
#define NV_MEMORY_SIZE 16384 |
#define ORDERLY_BITS 8 |
#define PCR_LAST (TPM_HC)(PCR_FIRST + IMPLEMENTATION_PCR - 1) |
#define PCR_SELECT_MAX ((IMPLEMENTATION_PCR + 7) / 8) |
#define PCR_SELECT_MIN ((PLATFORM_PCR + 7) / 8) |
#define PERMANENT_FIRST (TPM_HC)(TPM_RH_FIRST) |
#define PERMANENT_LAST (TPM_HC)(TPM_RH_LAST) |
#define PERSISTENT_FIRST (TPM_HC)(HR_PERSISTENT + 0) |
#define PERSISTENT_LAST (TPM_HC)(PERSISTENT_FIRST + 0x00FFFFFF) |
#define PLATFORM_PCR 24 |
#define PLATFORM_PERSISTENT (TPM_HC)(PERSISTENT_FIRST + 0x00800000) |
#define POLICY_SESSION_FIRST (TPM_HC)(HR_POLICY_SESSION + 0) |
#define POLICY_SESSION_LAST (TPM_HC)(POLICY_SESSION_FIRST + MAX_ACTIVE_SESSIONS - 1) |
#define PRIMARY_SEED_SIZE 32 |
#define PRIVATE_VENDOR_SPECIFIC_BYTES ((MAX_RSA_KEY_BYTES / 2) * ( 3 + CRT_FORMAT_RSA * 2)) |
#define PROOF_SIZE CONTEXT_INTEGRITY_HASH_SIZE |
#define PT_GROUP (TPM_PT)(0x00000100) |
#define RAM_INDEX_SPACE 512 |
#define RC_FMT1 (TPM_RC)(0x080) |
#define RC_VER1 (TPM_RC)(0x100) |
#define RC_WARN (TPM_RC)(0x900) |
#define RSA_DEFAULT_PUBLIC_EXPONENT 0x00010001 |
#define SET 1 |
#define SHA1_BLOCK_SIZE 64 |
#define SHA1_DIGEST_SIZE 20 |
#define SHA256_BLOCK_SIZE 64 |
#define SHA256_DIGEST_SIZE 32 |
#define SHA384_BLOCK_SIZE 128 |
#define SHA384_DIGEST_SIZE 48 |
#define SHA512_BLOCK_SIZE 128 |
#define SHA512_DIGEST_SIZE 64 |
#define SM3_256_BLOCK_SIZE 64 |
#define SM3_256_DIGEST_SIZE 32 |
#define TIMER_PRESCALE 100000 |
#define TPM_ALG_AES (TPM_ALG_ID)(0x0006) |
#define TPM_ALG_CBC (TPM_ALG_ID)(0x0042) |
#define TPM_ALG_CFB (TPM_ALG_ID)(0x0043) |
#define TPM_ALG_CTR (TPM_ALG_ID)(0x0040) |
#define TPM_ALG_ECB (TPM_ALG_ID)(0x0044) |
#define TPM_ALG_ECC (TPM_ALG_ID)(0x0023) |
#define TPM_ALG_ECDAA (TPM_ALG_ID)(0x001A) |
#define TPM_ALG_ECDH (TPM_ALG_ID)(0x0019) |
#define TPM_ALG_ECDSA (TPM_ALG_ID)(0x0018) |
#define TPM_ALG_ECMQV (TPM_ALG_ID)(0x001D) |
#define TPM_ALG_ECSCHNORR (TPM_ALG_ID)(0x001C) |
#define TPM_ALG_ERROR (TPM_ALG_ID)(0x0000) |
#define TPM_ALG_FIRST (TPM_ALG_ID)(0x0001) |
#define TPM_ALG_KDF1_SP800_108 (TPM_ALG_ID)(0x0022) |
#define TPM_ALG_KDF1_SP800_56a (TPM_ALG_ID)(0x0020) |
#define TPM_ALG_KDF2 (TPM_ALG_ID)(0x0021) |
#define TPM_ALG_KEYEDHASH (TPM_ALG_ID)(0x0008) |
#define TPM_ALG_LAST (TPM_ALG_ID)(0x0044) |
#define TPM_ALG_NULL (TPM_ALG_ID)(0x0010) |
#define TPM_ALG_OAEP (TPM_ALG_ID)(0x0017) |
#define TPM_ALG_OFB (TPM_ALG_ID)(0x0041) |
#define TPM_ALG_RSAES (TPM_ALG_ID)(0x0015) |
#define TPM_ALG_RSAPSS (TPM_ALG_ID)(0x0016) |
#define TPM_ALG_RSASSA (TPM_ALG_ID)(0x0014) |
#define TPM_ALG_SHA1 (TPM_ALG_ID)(0x0004) |
#define TPM_ALG_SHA256 (TPM_ALG_ID)(0x000B) |
#define TPM_ALG_SHA384 (TPM_ALG_ID)(0x000C) |
#define TPM_ALG_SHA512 (TPM_ALG_ID)(0x000D) |
#define TPM_ALG_SM2 (TPM_ALG_ID)(0x001B) |
#define TPM_ALG_SM3_256 (TPM_ALG_ID)(0x0012) |
#define TPM_ALG_SM4 (TPM_ALG_ID)(0x0013) |
#define TPM_ALG_SYMCIPHER (TPM_ALG_ID)(0x0025) |
#define TPM_CAP_ALGS (TPM_CAP)(0x00000000) |
#define TPM_CAP_AUDIT_COMMANDS (TPM_CAP)(0x00000004) |
#define TPM_CAP_COMMANDS (TPM_CAP)(0x00000002) |
#define TPM_CAP_ECC_CURVES (TPM_CAP)(0x00000008) |
#define TPM_CAP_FIRST (TPM_CAP)(0x00000000) |
#define TPM_CAP_HANDLES (TPM_CAP)(0x00000001) |
#define TPM_CAP_LAST (TPM_CAP)(0x00000008) |
#define TPM_CAP_PCR_PROPERTIES (TPM_CAP)(0x00000007) |
#define TPM_CAP_PCRS (TPM_CAP)(0x00000005) |
#define TPM_CAP_PP_COMMANDS (TPM_CAP)(0x00000003) |
#define TPM_CAP_TPM_PROPERTIES (TPM_CAP)(0x00000006) |
#define TPM_CAP_VENDOR_PROPERTY (TPM_CAP)(0x00000100) |
#define TPM_CC_ActivateCredential (TPM_CC)(0x00000147) |
#define TPM_CC_Certify (TPM_CC)(0x00000148) |
#define TPM_CC_CertifyCreation (TPM_CC)(0x0000014A) |
#define TPM_CC_ChangeEPS (TPM_CC)(0x00000124) |
#define TPM_CC_ChangePPS (TPM_CC)(0x00000125) |
#define TPM_CC_Clear (TPM_CC)(0x00000126) |
#define TPM_CC_ClearControl (TPM_CC)(0x00000127) |
#define TPM_CC_ClockRateAdjust (TPM_CC)(0x00000130) |
#define TPM_CC_ClockSet (TPM_CC)(0x00000128) |
#define TPM_CC_Commit (TPM_CC)(0x0000018B) |
#define TPM_CC_ContextLoad (TPM_CC)(0x00000161) |
#define TPM_CC_ContextSave (TPM_CC)(0x00000162) |
#define TPM_CC_Create (TPM_CC)(0x00000153) |
#define TPM_CC_CreatePrimary (TPM_CC)(0x00000131) |
#define TPM_CC_DictionaryAttackLockReset (TPM_CC)(0x00000139) |
#define TPM_CC_DictionaryAttackParameters (TPM_CC)(0x0000013A) |
#define TPM_CC_Duplicate (TPM_CC)(0x0000014B) |
#define TPM_CC_EC_Ephemeral (TPM_CC)(0x0000018E) |
#define TPM_CC_ECC_Parameters (TPM_CC)(0x00000178) |
#define TPM_CC_ECDH_KeyGen (TPM_CC)(0x00000163) |
#define TPM_CC_ECDH_ZGen (TPM_CC)(0x00000154) |
#define TPM_CC_EncryptDecrypt (TPM_CC)(0x00000164) |
#define TPM_CC_EventSequenceComplete (TPM_CC)(0x00000185) |
#define TPM_CC_EvictControl (TPM_CC)(0x00000120) |
#define TPM_CC_FieldUpgradeData (TPM_CC)(0x00000141) |
#define TPM_CC_FieldUpgradeStart (TPM_CC)(0x0000012F) |
#define TPM_CC_FirmwareRead (TPM_CC)(0x00000179) |
#define TPM_CC_FIRST (TPM_CC)(0x0000011F) |
#define TPM_CC_FlushContext (TPM_CC)(0x00000165) |
#define TPM_CC_GetCapability (TPM_CC)(0x0000017A) |
#define TPM_CC_GetCommandAuditDigest (TPM_CC)(0x00000133) |
#define TPM_CC_GetRandom (TPM_CC)(0x0000017B) |
#define TPM_CC_GetSessionAuditDigest (TPM_CC)(0x0000014D) |
#define TPM_CC_GetTestResult (TPM_CC)(0x0000017C) |
#define TPM_CC_GetTime (TPM_CC)(0x0000014C) |
#define TPM_CC_Hash (TPM_CC)(0x0000017D) |
#define TPM_CC_HashSequenceStart (TPM_CC)(0x00000186) |
#define TPM_CC_HierarchyChangeAuth (TPM_CC)(0x00000129) |
#define TPM_CC_HierarchyControl (TPM_CC)(0x00000121) |
#define TPM_CC_HMAC (TPM_CC)(0x00000155) |
#define TPM_CC_HMAC_Start (TPM_CC)(0x0000015B) |
#define TPM_CC_Import (TPM_CC)(0x00000156) |
#define TPM_CC_IncrementalSelfTest (TPM_CC)(0x00000142) |
#define TPM_CC_LAST (TPM_CC)(0x0000018E) |
#define TPM_CC_Load (TPM_CC)(0x00000157) |
#define TPM_CC_LoadExternal (TPM_CC)(0x00000167) |
#define TPM_CC_MakeCredential (TPM_CC)(0x00000168) |
#define TPM_CC_NV_Certify (TPM_CC)(0x00000184) |
#define TPM_CC_NV_ChangeAuth (TPM_CC)(0x0000013B) |
#define TPM_CC_NV_DefineSpace (TPM_CC)(0x0000012A) |
#define TPM_CC_NV_Extend (TPM_CC)(0x00000136) |
#define TPM_CC_NV_GlobalWriteLock (TPM_CC)(0x00000132) |
#define TPM_CC_NV_Increment (TPM_CC)(0x00000134) |
#define TPM_CC_NV_Read (TPM_CC)(0x0000014E) |
#define TPM_CC_NV_ReadLock (TPM_CC)(0x0000014F) |
#define TPM_CC_NV_ReadPublic (TPM_CC)(0x00000169) |
#define TPM_CC_NV_SetBits (TPM_CC)(0x00000135) |
#define TPM_CC_NV_UndefineSpace (TPM_CC)(0x00000122) |
#define TPM_CC_NV_UndefineSpaceSpecial (TPM_CC)(0x0000011F) |
#define TPM_CC_NV_Write (TPM_CC)(0x00000137) |
#define TPM_CC_NV_WriteLock (TPM_CC)(0x00000138) |
#define TPM_CC_ObjectChangeAuth (TPM_CC)(0x00000150) |
#define TPM_CC_PCR_Allocate (TPM_CC)(0x0000012B) |
#define TPM_CC_PCR_Event (TPM_CC)(0x0000013C) |
#define TPM_CC_PCR_Extend (TPM_CC)(0x00000182) |
#define TPM_CC_PCR_Read (TPM_CC)(0x0000017E) |
#define TPM_CC_PCR_Reset (TPM_CC)(0x0000013D) |
#define TPM_CC_PCR_SetAuthPolicy (TPM_CC)(0x0000012C) |
#define TPM_CC_PCR_SetAuthValue (TPM_CC)(0x00000183) |
#define TPM_CC_PolicyAuthorize (TPM_CC)(0x0000016A) |
#define TPM_CC_PolicyAuthValue (TPM_CC)(0x0000016B) |
#define TPM_CC_PolicyCommandCode (TPM_CC)(0x0000016C) |
#define TPM_CC_PolicyCounterTimer (TPM_CC)(0x0000016D) |
#define TPM_CC_PolicyCpHash (TPM_CC)(0x0000016E) |
#define TPM_CC_PolicyDuplicationSelect (TPM_CC)(0x00000188) |
#define TPM_CC_PolicyGetDigest (TPM_CC)(0x00000189) |
#define TPM_CC_PolicyLocality (TPM_CC)(0x0000016F) |
#define TPM_CC_PolicyNameHash (TPM_CC)(0x00000170) |
#define TPM_CC_PolicyNV (TPM_CC)(0x00000149) |
#define TPM_CC_PolicyOR (TPM_CC)(0x00000171) |
#define TPM_CC_PolicyPassword (TPM_CC)(0x0000018C) |
#define TPM_CC_PolicyPCR (TPM_CC)(0x0000017F) |
#define TPM_CC_PolicyPhysicalPresence (TPM_CC)(0x00000187) |
#define TPM_CC_PolicyRestart (TPM_CC)(0x00000180) |
#define TPM_CC_PolicySecret (TPM_CC)(0x00000151) |
#define TPM_CC_PolicySigned (TPM_CC)(0x00000160) |
#define TPM_CC_PolicyTicket (TPM_CC)(0x00000172) |
#define TPM_CC_PP_Commands (TPM_CC)(0x0000012D) |
#define TPM_CC_PP_FIRST (TPM_CC)(0x0000011F) |
#define TPM_CC_PP_LAST (TPM_CC)(0x00000132) |
#define TPM_CC_Quote (TPM_CC)(0x00000158) |
#define TPM_CC_ReadClock (TPM_CC)(0x00000181) |
#define TPM_CC_ReadPublic (TPM_CC)(0x00000173) |
#define TPM_CC_Rewrap (TPM_CC)(0x00000152) |
#define TPM_CC_RSA_Decrypt (TPM_CC)(0x00000159) |
#define TPM_CC_RSA_Encrypt (TPM_CC)(0x00000174) |
#define TPM_CC_SelfTest (TPM_CC)(0x00000143) |
#define TPM_CC_SequenceComplete (TPM_CC)(0x0000013E) |
#define TPM_CC_SequenceUpdate (TPM_CC)(0x0000015C) |
#define TPM_CC_SetAlgorithmSet (TPM_CC)(0x0000013F) |
#define TPM_CC_SetCommandCodeAuditStatus (TPM_CC)(0x00000140) |
#define TPM_CC_SetPrimaryPolicy (TPM_CC)(0x0000012E) |
#define TPM_CC_Shutdown (TPM_CC)(0x00000145) |
#define TPM_CC_Sign (TPM_CC)(0x0000015D) |
#define TPM_CC_StartAuthSession (TPM_CC)(0x00000176) |
#define TPM_CC_Startup (TPM_CC)(0x00000144) |
#define TPM_CC_StirRandom (TPM_CC)(0x00000146) |
#define TPM_CC_TestParms (TPM_CC)(0x0000018A) |
#define TPM_CC_Unseal (TPM_CC)(0x0000015E) |
#define TPM_CC_VerifySignature (TPM_CC)(0x00000177) |
#define TPM_CC_ZGen_2Phase (TPM_CC)(0x0000018D) |
#define TPM_CLOCK_COARSE_FASTER (TPM_CLOCK_ADJUST)(3) |
#define TPM_CLOCK_COARSE_SLOWER (TPM_CLOCK_ADJUST)(-3) |
#define TPM_CLOCK_FINE_FASTER (TPM_CLOCK_ADJUST)(1) |
#define TPM_CLOCK_FINE_SLOWER (TPM_CLOCK_ADJUST)(-1) |
#define TPM_CLOCK_MEDIUM_FASTER (TPM_CLOCK_ADJUST)(2) |
#define TPM_CLOCK_MEDIUM_SLOWER (TPM_CLOCK_ADJUST)(-2) |
#define TPM_CLOCK_NO_CHANGE (TPM_CLOCK_ADJUST)(0) |
#define TPM_ECC_BN_P256 (TPM_ECC_CURVE)(0x0010) |
#define TPM_ECC_BN_P638 (TPM_ECC_CURVE)(0x0011) |
#define TPM_ECC_NIST_P192 (TPM_ECC_CURVE)(0x0001) |
#define TPM_ECC_NIST_P224 (TPM_ECC_CURVE)(0x0002) |
#define TPM_ECC_NIST_P256 (TPM_ECC_CURVE)(0x0003) |
#define TPM_ECC_NIST_P384 (TPM_ECC_CURVE)(0x0004) |
#define TPM_ECC_NIST_P521 (TPM_ECC_CURVE)(0x0005) |
#define TPM_ECC_NONE (TPM_ECC_CURVE)(0x0000) |
#define TPM_ECC_SM2_P256 (TPM_ECC_CURVE)(0x0020) |
#define TPM_EO_BITCLEAR (TPM_EO)(0x000B) |
#define TPM_EO_BITSET (TPM_EO)(0x000A) |
#define TPM_EO_EQ (TPM_EO)(0x0000) |
#define TPM_EO_NEQ (TPM_EO)(0x0001) |
#define TPM_EO_SIGNED_GE (TPM_EO)(0x0006) |
#define TPM_EO_SIGNED_GT (TPM_EO)(0x0002) |
#define TPM_EO_SIGNED_LE (TPM_EO)(0x0008) |
#define TPM_EO_SIGNED_LT (TPM_EO)(0x0004) |
#define TPM_EO_UNSIGNED_GE (TPM_EO)(0x0007) |
#define TPM_EO_UNSIGNED_GT (TPM_EO)(0x0003) |
#define TPM_EO_UNSIGNED_LE (TPM_EO)(0x0009) |
#define TPM_EO_UNSIGNED_LT (TPM_EO)(0x0005) |
#define TPM_GENERATED_VALUE (TPM_GENERATED)(0xff544347) |
#define TPM_HT_ACTIVE_SESSION (TPM_HT)(0x03) |
#define TPM_HT_HMAC_SESSION (TPM_HT)(0x02) |
#define TPM_HT_LOADED_SESSION (TPM_HT)(0x02) |
#define TPM_HT_NV_INDEX (TPM_HT)(0x01) |
#define TPM_HT_PCR (TPM_HT)(0x00) |
#define TPM_HT_PERMANENT (TPM_HT)(0x40) |
#define TPM_HT_PERSISTENT (TPM_HT)(0x81) |
#define TPM_HT_POLICY_SESSION (TPM_HT)(0x03) |
#define TPM_HT_TRANSIENT (TPM_HT)(0x80) |
#define TPM_PS_AUTHENTICATION (TPM_PS)(0x00000008) |
#define TPM_PS_CELL_PHONE (TPM_PS)(0x00000003) |
#define TPM_PS_EMBEDDED (TPM_PS)(0x00000009) |
#define TPM_PS_HARDCOPY (TPM_PS)(0x0000000A) |
#define TPM_PS_INFRASTRUCTURE (TPM_PS)(0x0000000B) |
#define TPM_PS_MAIN (TPM_PS)(0x00000000) |
#define TPM_PS_MULTI_TENANT (TPM_PS)(0x0000000E) |
#define TPM_PS_PC (TPM_PS)(0x00000001) |
#define TPM_PS_PDA (TPM_PS)(0x00000002) |
#define TPM_PS_PERIPHERAL (TPM_PS)(0x00000005) |
#define TPM_PS_SERVER (TPM_PS)(0x00000004) |
#define TPM_PS_STORAGE (TPM_PS)(0x00000007) |
#define TPM_PS_TC (TPM_PS)(0x0000000F) |
#define TPM_PS_TNC (TPM_PS)(0x0000000D) |
#define TPM_PS_TSS (TPM_PS)(0x00000006) |
#define TPM_PS_VIRTUALIZATION (TPM_PS)(0x0000000C) |
#define TPM_PT_NONE (TPM_PT)(0x00000000) |
#define TPM_PT_PCR_AUTH (TPM_PT_PCR)(0x00000014) |
#define TPM_PT_PCR_DRTM_RESET (TPM_PT_PCR)(0x00000012) |
#define TPM_PT_PCR_EXTEND_L0 (TPM_PT_PCR)(0x00000001) |
#define TPM_PT_PCR_EXTEND_L1 (TPM_PT_PCR)(0x00000003) |
#define TPM_PT_PCR_EXTEND_L2 (TPM_PT_PCR)(0x00000005) |
#define TPM_PT_PCR_EXTEND_L3 (TPM_PT_PCR)(0x00000007) |
#define TPM_PT_PCR_EXTEND_L4 (TPM_PT_PCR)(0x00000009) |
#define TPM_PT_PCR_FIRST (TPM_PT_PCR)(0x00000000) |
#define TPM_PT_PCR_LAST (TPM_PT_PCR)(0x00000014) |
#define TPM_PT_PCR_NO_INCREMENT (TPM_PT_PCR)(0x00000011) |
#define TPM_PT_PCR_POLICY (TPM_PT_PCR)(0x00000013) |
#define TPM_PT_PCR_RESET_L0 (TPM_PT_PCR)(0x00000002) |
#define TPM_PT_PCR_RESET_L1 (TPM_PT_PCR)(0x00000004) |
#define TPM_PT_PCR_RESET_L2 (TPM_PT_PCR)(0x00000006) |
#define TPM_PT_PCR_RESET_L3 (TPM_PT_PCR)(0x00000008) |
#define TPM_PT_PCR_RESET_L4 (TPM_PT_PCR)(0x0000000A) |
#define TPM_PT_PCR_SAVE (TPM_PT_PCR)(0x00000000) |
#define TPM_RC_1 (TPM_RC)(0x100) |
#define TPM_RC_2 (TPM_RC)(0x200) |
#define TPM_RC_3 (TPM_RC)(0x300) |
#define TPM_RC_4 (TPM_RC)(0x400) |
#define TPM_RC_5 (TPM_RC)(0x500) |
#define TPM_RC_6 (TPM_RC)(0x600) |
#define TPM_RC_7 (TPM_RC)(0x700) |
#define TPM_RC_8 (TPM_RC)(0x800) |
#define TPM_RC_9 (TPM_RC)(0x900) |
#define TPM_RC_A (TPM_RC)(0xA00) |
#define TPM_RC_B (TPM_RC)(0xB00) |
#define TPM_RC_BAD_TAG (TPM_RC)(0x030) |
#define TPM_RC_C (TPM_RC)(0xC00) |
#define TPM_RC_D (TPM_RC)(0xD00) |
#define TPM_RC_E (TPM_RC)(0xE00) |
#define TPM_RC_F (TPM_RC)(0xF00) |
#define TPM_RC_H (TPM_RC)(0x000) |
#define TPM_RC_N_MASK (TPM_RC)(0xF00) |
#define TPM_RC_P (TPM_RC)(0x040) |
#define TPM_RC_S (TPM_RC)(0x800) |
#define TPM_RC_SUCCESS (TPM_RC)(0x000) |
#define TPM_RH_ADMIN (TPM_RH)(0x40000005) |
#define TPM_RH_AUTH_00 (TPM_RH)(0x40000010) |
#define TPM_RH_AUTH_FF (TPM_RH)(0x4000010F) |
#define TPM_RH_EK (TPM_RH)(0x40000006) |
#define TPM_RH_ENDORSEMENT (TPM_RH)(0x4000000B) |
#define TPM_RH_FIRST (TPM_RH)(0x40000000) |
#define TPM_RH_LAST (TPM_RH)(0x4000010F) |
#define TPM_RH_LOCKOUT (TPM_RH)(0x4000000A) |
#define TPM_RH_NULL (TPM_RH)(0x40000007) |
#define TPM_RH_OPERATOR (TPM_RH)(0x40000004) |
#define TPM_RH_OWNER (TPM_RH)(0x40000001) |
#define TPM_RH_PLATFORM (TPM_RH)(0x4000000C) |
#define TPM_RH_PLATFORM_NV (TPM_RH)(0x4000000D) |
#define TPM_RH_REVOKE (TPM_RH)(0x40000002) |
#define TPM_RH_SRK (TPM_RH)(0x40000000) |
#define TPM_RH_TRANSPORT (TPM_RH)(0x40000003) |
#define TPM_RH_UNASSIGNED (TPM_RH)(0x40000008) |
#define TPM_RS_PW (TPM_RH)(0x40000009) |
#define TPM_SE_HMAC (TPM_SE)(0x00) |
#define TPM_SE_POLICY (TPM_SE)(0x01) |
#define TPM_SE_TRIAL (TPM_SE)(0x03) |
#define TPM_ST_ATTEST_CERTIFY (TPM_ST)(0x8017) |
#define TPM_ST_ATTEST_COMMAND_AUDIT (TPM_ST)(0x8015) |
#define TPM_ST_ATTEST_CREATION (TPM_ST)(0x801A) |
#define TPM_ST_ATTEST_NV (TPM_ST)(0x8014) |
#define TPM_ST_ATTEST_QUOTE (TPM_ST)(0x8018) |
#define TPM_ST_ATTEST_SESSION_AUDIT (TPM_ST)(0x8016) |
#define TPM_ST_ATTEST_TIME (TPM_ST)(0x8019) |
#define TPM_ST_AUTH_SECRET (TPM_ST)(0x8023) |
#define TPM_ST_AUTH_SIGNED (TPM_ST)(0x8025) |
#define TPM_ST_CREATION (TPM_ST)(0x8021) |
#define TPM_ST_FU_MANIFEST (TPM_ST)(0x8029) |
#define TPM_ST_HASHCHECK (TPM_ST)(0x8024) |
#define TPM_ST_NO_SESSIONS (TPM_ST)(0x8001) |
#define TPM_ST_NULL (TPM_ST)(0X8000) |
#define TPM_ST_RSP_COMMAND (TPM_ST)(0x00C4) |
#define TPM_ST_SESSIONS (TPM_ST)(0x8002) |
#define TPM_ST_VERIFIED (TPM_ST)(0x8022) |
#define TPM_SU_CLEAR (TPM_SU)(0x0000) |
#define TPM_SU_STATE (TPM_SU)(0x0001) |
#define TRANSIENT_FIRST (TPM_HC)(HR_TRANSIENT + 0) |
#define TRANSIENT_LAST (TPM_HC)(TRANSIENT_FIRST+MAX_LOADED_OBJECTS - 1) |
#define YES 1 |
typedef UINT64 CONTEXT_COUNTER |
typedef UINT16 CONTEXT_SLOT |
typedef TPM2B_DIGEST TPM2B_AUTH |
typedef TPM2B_DIGEST TPM2B_NONCE |
typedef TPM2B_DIGEST TPM2B_OPERAND |
typedef UINT16 TPM_ALG_ID |
typedef UINT32 TPM_AUTHORIZATION_SIZE |
typedef INT8 TPM_CLOCK_ADJUST |
typedef UINT16 TPM_ECC_CURVE |
typedef UINT32 TPM_GENERATED |
typedef TPM_HANDLE TPM_HC |
typedef UINT16 TPM_KEY_BITS |
typedef UINT16 TPM_KEY_SIZE |
typedef UINT32 TPM_PARAMETER_SIZE |
typedef UINT32 TPM_PT_PCR |
typedef TPM_KEY_BITS TPMI_AES_KEY_BITS |
typedef TPM_ALG_ID TPMI_ALG_ASYM |
typedef TPM_ALG_ID TPMI_ALG_ASYM_SCHEME |
typedef TPM_ALG_ID TPMI_ALG_ECC_SCHEME |
typedef TPM_ALG_ID TPMI_ALG_HASH |
typedef TPM_ALG_ID TPMI_ALG_KDF |
typedef TPM_ALG_ID TPMI_ALG_KEYEDHASH_SCHEME |
typedef TPM_ALG_ID TPMI_ALG_PUBLIC |
typedef TPM_ALG_ID TPMI_ALG_RSA_DECRYPT |
typedef TPM_ALG_ID TPMI_ALG_RSA_SCHEME |
typedef TPM_ALG_ID TPMI_ALG_SIG_SCHEME |
typedef TPM_ALG_ID TPMI_ALG_SYM |
typedef TPM_ALG_ID TPMI_ALG_SYM_MODE |
typedef TPM_ALG_ID TPMI_ALG_SYM_OBJECT |
typedef TPM_HANDLE TPMI_DH_CONTEXT |
typedef TPM_HANDLE TPMI_DH_ENTITY |
typedef TPM_HANDLE TPMI_DH_OBJECT |
typedef TPM_HANDLE TPMI_DH_PCR |
typedef TPM_HANDLE TPMI_DH_PERSISTENT |
typedef TPM_ECC_CURVE TPMI_ECC_CURVE |
typedef TPM_ALG_ID TPMI_ECC_KEY_EXCHANGE |
typedef TPM_HANDLE TPMI_RH_CLEAR |
typedef TPM_HANDLE TPMI_RH_ENDORSEMENT |
typedef TPM_HANDLE TPMI_RH_HIERARCHY |
typedef TPM_HANDLE TPMI_RH_HIERARCHY_AUTH |
typedef TPM_HANDLE TPMI_RH_LOCKOUT |
typedef TPM_HANDLE TPMI_RH_NV_AUTH |
typedef TPM_HANDLE TPMI_RH_NV_INDEX |
typedef TPM_HANDLE TPMI_RH_OWNER |
typedef TPM_HANDLE TPMI_RH_PLATFORM |
typedef TPM_HANDLE TPMI_RH_PROVISION |
typedef TPM_KEY_BITS TPMI_RSA_KEY_BITS |
typedef TPM_HANDLE TPMI_SH_AUTH_SESSION |
typedef TPM_HANDLE TPMI_SH_HMAC |
typedef TPM_HANDLE TPMI_SH_POLICY |
typedef TPM_KEY_BITS TPMI_SM4_KEY_BITS |
typedef TPM_ST TPMI_ST_ATTEST |
typedef TPM_ST TPMI_ST_COMMAND_TAG |
typedef BYTE TPMI_YES_NO |
typedef TPMS_SCHEME_SIGHASH TPMS_SCHEME_ECDSA |
typedef TPMS_SCHEME_SIGHASH TPMS_SCHEME_HMAC |
typedef TPMS_SCHEME_SIGHASH TPMS_SCHEME_SM2 |