iPXE
|
TPM2.0 Specification data structures (Trusted Platform Module Library Specification, Family "2.0", Level 00, Revision 00.96, @http://www.trustedcomputinggroup.org/resources/tpm_library_specification) More...
#include <ipxe/efi/IndustryStandard/Tpm12.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (BSD2_PATENT) | |
TPM2.0 Specification data structures (Trusted Platform Module Library Specification, Family "2.0", Level 00, Revision 00.96, @http://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
Definition in file Tpm20.h.
#define MAX_RSA_KEY_BYTES ((MAX_RSA_KEY_BITS + 7) / 8) |
#define MAX_ECC_KEY_BYTES ((MAX_ECC_KEY_BITS + 7) / 8) |
#define MAX_AES_KEY_BYTES ((MAX_AES_KEY_BITS + 7) / 8) |
#define MAX_SM4_KEY_BYTES ((MAX_SM4_KEY_BITS + 7) / 8) |
#define MAX_SYM_KEY_BITS MAX_AES_KEY_BITS |
#define MAX_SYM_KEY_BYTES MAX_AES_KEY_BYTES |
#define MAX_SYM_BLOCK_SIZE MAX_AES_BLOCK_SIZE_BYTES |
#define PCR_SELECT_MIN ((PLATFORM_PCR + 7) / 8) |
#define PCR_SELECT_MAX ((IMPLEMENTATION_PCR + 7) / 8) |
#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 PROOF_SIZE CONTEXT_INTEGRITY_HASH_SIZE |
#define MAX_ORDERLY_COUNT ((1 << ORDERLY_BITS) - 1) |
#define ALG_ID_FIRST TPM_ALG_FIRST |
#define ALG_ID_LAST TPM_ALG_LAST |
#define PRIVATE_VENDOR_SPECIFIC_BYTES ((MAX_RSA_KEY_BYTES / 2) * ( 3 + CRT_FORMAT_RSA * 2)) |
#define MAX_CAP_DATA (MAX_CAP_BUFFER - sizeof(TPM_CAP) - sizeof(UINT32)) |
#define MAX_CAP_ALGS (MAX_CAP_DATA / sizeof(TPMS_ALG_PROPERTY)) |
#define MAX_CAP_HANDLES (MAX_CAP_DATA / sizeof(TPM_HANDLE)) |
#define MAX_CAP_CC (MAX_CAP_DATA / sizeof(TPM_CC)) |
#define MAX_TPM_PROPERTIES (MAX_CAP_DATA / sizeof(TPMS_TAGGED_PROPERTY)) |
#define MAX_PCR_PROPERTIES (MAX_CAP_DATA / sizeof(TPMS_TAGGED_PCR_SELECT)) |
#define MAX_ECC_CURVES (MAX_CAP_DATA / sizeof(TPM_ECC_CURVE)) |
#define TPM_GENERATED_VALUE (TPM_GENERATED)(0xff544347) |
#define TPM_ALG_ERROR (TPM_ALG_ID)(0x0000) |
#define TPM_ALG_FIRST (TPM_ALG_ID)(0x0001) |
#define TPM_ALG_SHA1 (TPM_ALG_ID)(0x0004) |
#define TPM_ALG_AES (TPM_ALG_ID)(0x0006) |
#define TPM_ALG_KEYEDHASH (TPM_ALG_ID)(0x0008) |
#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_NULL (TPM_ALG_ID)(0x0010) |
#define TPM_ALG_SM3_256 (TPM_ALG_ID)(0x0012) |
#define TPM_ALG_SM4 (TPM_ALG_ID)(0x0013) |
#define TPM_ALG_RSASSA (TPM_ALG_ID)(0x0014) |
#define TPM_ALG_RSAES (TPM_ALG_ID)(0x0015) |
#define TPM_ALG_RSAPSS (TPM_ALG_ID)(0x0016) |
#define TPM_ALG_OAEP (TPM_ALG_ID)(0x0017) |
#define TPM_ALG_ECDSA (TPM_ALG_ID)(0x0018) |
#define TPM_ALG_ECDH (TPM_ALG_ID)(0x0019) |
#define TPM_ALG_ECDAA (TPM_ALG_ID)(0x001A) |
#define TPM_ALG_SM2 (TPM_ALG_ID)(0x001B) |
#define TPM_ALG_ECSCHNORR (TPM_ALG_ID)(0x001C) |
#define TPM_ALG_ECMQV (TPM_ALG_ID)(0x001D) |
#define TPM_ALG_KDF1_SP800_56a (TPM_ALG_ID)(0x0020) |
#define TPM_ALG_KDF2 (TPM_ALG_ID)(0x0021) |
#define TPM_ALG_KDF1_SP800_108 (TPM_ALG_ID)(0x0022) |
#define TPM_ALG_ECC (TPM_ALG_ID)(0x0023) |
#define TPM_ALG_SYMCIPHER (TPM_ALG_ID)(0x0025) |
#define TPM_ALG_CTR (TPM_ALG_ID)(0x0040) |
#define TPM_ALG_OFB (TPM_ALG_ID)(0x0041) |
#define TPM_ALG_CBC (TPM_ALG_ID)(0x0042) |
#define TPM_ALG_CFB (TPM_ALG_ID)(0x0043) |
#define TPM_ALG_ECB (TPM_ALG_ID)(0x0044) |
#define TPM_ALG_LAST (TPM_ALG_ID)(0x0044) |
#define TPM_ECC_NONE (TPM_ECC_CURVE)(0x0000) |
#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_BN_P256 (TPM_ECC_CURVE)(0x0010) |
#define TPM_ECC_BN_P638 (TPM_ECC_CURVE)(0x0011) |
#define TPM_ECC_SM2_P256 (TPM_ECC_CURVE)(0x0020) |
#define TPM_CC_DictionaryAttackLockReset (TPM_CC)(0x00000139) |
#define TPM_CC_DictionaryAttackParameters (TPM_CC)(0x0000013A) |
#define TPM_CC_SetCommandCodeAuditStatus (TPM_CC)(0x00000140) |
#define TPM_CLOCK_COARSE_SLOWER (TPM_CLOCK_ADJUST)(-3) |
#define TPM_CLOCK_MEDIUM_SLOWER (TPM_CLOCK_ADJUST)(-2) |
#define TPM_CLOCK_FINE_SLOWER (TPM_CLOCK_ADJUST)(-1) |
#define TPM_CLOCK_NO_CHANGE (TPM_CLOCK_ADJUST)(0) |
#define TPM_CLOCK_FINE_FASTER (TPM_CLOCK_ADJUST)(1) |
#define TPM_CLOCK_MEDIUM_FASTER (TPM_CLOCK_ADJUST)(2) |
#define TPM_CLOCK_COARSE_FASTER (TPM_CLOCK_ADJUST)(3) |
#define TPM_PT_PCR_FIRST (TPM_PT_PCR)(0x00000000) |
#define TPM_PT_PCR_SAVE (TPM_PT_PCR)(0x00000000) |
#define TPM_PT_PCR_EXTEND_L0 (TPM_PT_PCR)(0x00000001) |
#define TPM_PT_PCR_RESET_L0 (TPM_PT_PCR)(0x00000002) |
#define TPM_PT_PCR_EXTEND_L1 (TPM_PT_PCR)(0x00000003) |
#define TPM_PT_PCR_RESET_L1 (TPM_PT_PCR)(0x00000004) |
#define TPM_PT_PCR_EXTEND_L2 (TPM_PT_PCR)(0x00000005) |
#define TPM_PT_PCR_RESET_L2 (TPM_PT_PCR)(0x00000006) |
#define TPM_PT_PCR_EXTEND_L3 (TPM_PT_PCR)(0x00000007) |
#define TPM_PT_PCR_RESET_L3 (TPM_PT_PCR)(0x00000008) |
#define TPM_PT_PCR_EXTEND_L4 (TPM_PT_PCR)(0x00000009) |
#define TPM_PT_PCR_RESET_L4 (TPM_PT_PCR)(0x0000000A) |
#define TPM_PT_PCR_NO_INCREMENT (TPM_PT_PCR)(0x00000011) |
#define TPM_PT_PCR_DRTM_RESET (TPM_PT_PCR)(0x00000012) |
#define TPM_PT_PCR_POLICY (TPM_PT_PCR)(0x00000013) |
#define TPM_PT_PCR_AUTH (TPM_PT_PCR)(0x00000014) |
#define TPM_PT_PCR_LAST (TPM_PT_PCR)(0x00000014) |
#define HR_HMAC_SESSION (TPM_HC)((TPM_HC)TPM_HT_HMAC_SESSION << HR_SHIFT) |
#define HR_POLICY_SESSION (TPM_HC)((TPM_HC)TPM_HT_POLICY_SESSION << HR_SHIFT) |
#define HR_TRANSIENT (TPM_HC)((TPM_HC)TPM_HT_TRANSIENT << HR_SHIFT) |
#define HR_PERSISTENT (TPM_HC)((TPM_HC)TPM_HT_PERSISTENT << HR_SHIFT) |
#define HR_NV_INDEX (TPM_HC)((TPM_HC)TPM_HT_NV_INDEX << HR_SHIFT) |
#define HR_PERMANENT (TPM_HC)((TPM_HC)TPM_HT_PERMANENT << HR_SHIFT) |
#define PCR_LAST (TPM_HC)(PCR_FIRST + IMPLEMENTATION_PCR - 1) |
#define HMAC_SESSION_FIRST (TPM_HC)(HR_HMAC_SESSION + 0) |
#define HMAC_SESSION_LAST (TPM_HC)(HMAC_SESSION_FIRST + MAX_ACTIVE_SESSIONS - 1) |
#define LOADED_SESSION_FIRST (TPM_HC)(HMAC_SESSION_FIRST) |
#define LOADED_SESSION_LAST (TPM_HC)(HMAC_SESSION_LAST) |
#define POLICY_SESSION_FIRST (TPM_HC)(HR_POLICY_SESSION + 0) |
#define POLICY_SESSION_LAST (TPM_HC)(POLICY_SESSION_FIRST + MAX_ACTIVE_SESSIONS - 1) |
#define TRANSIENT_FIRST (TPM_HC)(HR_TRANSIENT + 0) |
#define ACTIVE_SESSION_FIRST (TPM_HC)(POLICY_SESSION_FIRST) |
#define ACTIVE_SESSION_LAST (TPM_HC)(POLICY_SESSION_LAST) |
#define TRANSIENT_LAST (TPM_HC)(TRANSIENT_FIRST+MAX_LOADED_OBJECTS - 1) |
#define PERSISTENT_FIRST (TPM_HC)(HR_PERSISTENT + 0) |
#define PERSISTENT_LAST (TPM_HC)(PERSISTENT_FIRST + 0x00FFFFFF) |
#define PLATFORM_PERSISTENT (TPM_HC)(PERSISTENT_FIRST + 0x00800000) |
#define NV_INDEX_FIRST (TPM_HC)(HR_NV_INDEX + 0) |
#define NV_INDEX_LAST (TPM_HC)(NV_INDEX_FIRST + 0x00FFFFFF) |
#define PERMANENT_FIRST (TPM_HC)(TPM_RH_FIRST) |
#define PERMANENT_LAST (TPM_HC)(TPM_RH_LAST) |
typedef UINT16 CONTEXT_SLOT |
typedef UINT64 CONTEXT_COUNTER |
typedef UINT32 TPM_AUTHORIZATION_SIZE |
typedef UINT32 TPM_PARAMETER_SIZE |
typedef UINT16 TPM_KEY_SIZE |
typedef UINT16 TPM_KEY_BITS |
typedef UINT32 TPM_GENERATED |
typedef UINT16 TPM_ALG_ID |
typedef UINT16 TPM_ECC_CURVE |
typedef INT8 TPM_CLOCK_ADJUST |
typedef UINT32 TPM_PT_PCR |
typedef TPM_HANDLE TPM_HC |
typedef BYTE TPMI_YES_NO |
typedef TPM_HANDLE TPMI_DH_OBJECT |
typedef TPM_HANDLE TPMI_DH_PERSISTENT |
typedef TPM_HANDLE TPMI_DH_ENTITY |
typedef TPM_HANDLE TPMI_DH_PCR |
typedef TPM_HANDLE TPMI_SH_AUTH_SESSION |
typedef TPM_HANDLE TPMI_SH_HMAC |
typedef TPM_HANDLE TPMI_SH_POLICY |
typedef TPM_HANDLE TPMI_DH_CONTEXT |
typedef TPM_HANDLE TPMI_RH_HIERARCHY |
typedef TPM_HANDLE TPMI_RH_HIERARCHY_AUTH |
typedef TPM_HANDLE TPMI_RH_PLATFORM |
typedef TPM_HANDLE TPMI_RH_OWNER |
typedef TPM_HANDLE TPMI_RH_ENDORSEMENT |
typedef TPM_HANDLE TPMI_RH_PROVISION |
typedef TPM_HANDLE TPMI_RH_CLEAR |
typedef TPM_HANDLE TPMI_RH_NV_AUTH |
typedef TPM_HANDLE TPMI_RH_LOCKOUT |
typedef TPM_HANDLE TPMI_RH_NV_INDEX |
typedef TPM_ALG_ID TPMI_ALG_HASH |
typedef TPM_ALG_ID TPMI_ALG_ASYM |
typedef TPM_ALG_ID TPMI_ALG_SYM |
typedef TPM_ALG_ID TPMI_ALG_SYM_OBJECT |
typedef TPM_ALG_ID TPMI_ALG_SYM_MODE |
typedef TPM_ALG_ID TPMI_ALG_KDF |
typedef TPM_ALG_ID TPMI_ALG_SIG_SCHEME |
typedef TPM_ALG_ID TPMI_ECC_KEY_EXCHANGE |
typedef TPM_ST TPMI_ST_COMMAND_TAG |
typedef TPM2B_DIGEST TPM2B_NONCE |
typedef TPM2B_DIGEST TPM2B_AUTH |
typedef TPM2B_DIGEST TPM2B_OPERAND |
typedef TPM_ST TPMI_ST_ATTEST |
typedef TPM_KEY_BITS TPMI_AES_KEY_BITS |
typedef TPM_KEY_BITS TPMI_SM4_KEY_BITS |
typedef TPM_ALG_ID TPMI_ALG_KEYEDHASH_SCHEME |
typedef TPMS_SCHEME_SIGHASH TPMS_SCHEME_HMAC |
typedef TPMS_SCHEME_SIGHASH TPMS_SCHEME_ECDSA |
typedef TPMS_SCHEME_SIGHASH TPMS_SCHEME_SM2 |
typedef TPM_ALG_ID TPMI_ALG_ASYM_SCHEME |
typedef TPM_ALG_ID TPMI_ALG_RSA_SCHEME |
typedef TPM_ALG_ID TPMI_ALG_RSA_DECRYPT |
typedef TPM_KEY_BITS TPMI_RSA_KEY_BITS |
typedef TPM_ALG_ID TPMI_ALG_ECC_SCHEME |
typedef TPM_ECC_CURVE TPMI_ECC_CURVE |
typedef TPM_ALG_ID TPMI_ALG_PUBLIC |
FILE_LICENCE | ( | BSD2_PATENT | ) |