TianoCore EDK2 master
Loading...
Searching...
No Matches
spdm_lib_config.h File Reference

Go to the source code of this file.

Macros

#define LIBSPDM_DEBUG_ENABLE   1
 
#define LIBSPDM_MAX_VERSION_COUNT   5
 
#define LIBSPDM_PSK_CONTEXT_LENGTH   LIBSPDM_MAX_HASH_SIZE
 
#define LIBSPDM_PSK_MAX_HINT_LENGTH   16
 
#define LIBSPDM_MAX_ROOT_CERT_SUPPORT   10
 
#define LIBSPDM_MAX_SESSION_COUNT   4
 
#define LIBSPDM_MAX_CERT_CHAIN_SIZE   0x1000
 
#define LIBSPDM_MAX_MEASUREMENT_RECORD_SIZE   0x1000
 
#define LIBSPDM_MAX_CERT_CHAIN_BLOCK_LEN   1024
 
#define LIBSPDM_RECORD_TRANSCRIPT_DATA_SUPPORT   0
 
#define LIBSPDM_RSA_SSA_2048_SUPPORT   1
 
#define LIBSPDM_RSA_SSA_3072_SUPPORT   1
 
#define LIBSPDM_RSA_SSA_4096_SUPPORT   1
 
#define LIBSPDM_RSA_PSS_2048_SUPPORT   0
 
#define LIBSPDM_RSA_PSS_3072_SUPPORT   0
 
#define LIBSPDM_RSA_PSS_4096_SUPPORT   0
 
#define LIBSPDM_ECDSA_P256_SUPPORT   1
 
#define LIBSPDM_ECDSA_P384_SUPPORT   1
 
#define LIBSPDM_ECDSA_P521_SUPPORT   1
 
#define LIBSPDM_SM2_DSA_P256_SUPPORT   0
 
#define LIBSPDM_EDDSA_ED25519_SUPPORT   0
 
#define LIBSPDM_EDDSA_ED448_SUPPORT   0
 
#define LIBSPDM_FFDHE_2048_SUPPORT   0
 
#define LIBSPDM_FFDHE_3072_SUPPORT   0
 
#define LIBSPDM_FFDHE_4096_SUPPORT   0
 
#define LIBSPDM_ECDHE_P256_SUPPORT   1
 
#define LIBSPDM_ECDHE_P384_SUPPORT   1
 
#define LIBSPDM_ECDHE_P521_SUPPORT   1
 
#define LIBSPDM_SM2_KEY_EXCHANGE_P256_SUPPORT   0
 
#define LIBSPDM_AEAD_AES_128_GCM_SUPPORT   1
 
#define LIBSPDM_AEAD_AES_256_GCM_SUPPORT   1
 
#define LIBSPDM_AEAD_CHACHA20_POLY1305_SUPPORT   0
 
#define LIBSPDM_AEAD_SM4_128_GCM_SUPPORT   0
 
#define LIBSPDM_SHA256_SUPPORT   1
 
#define LIBSPDM_SHA384_SUPPORT   1
 
#define LIBSPDM_SHA512_SUPPORT   0
 
#define LIBSPDM_SHA3_256_SUPPORT   0
 
#define LIBSPDM_SHA3_384_SUPPORT   0
 
#define LIBSPDM_SHA3_512_SUPPORT   0
 
#define LIBSPDM_SM3_256_SUPPORT   0
 
#define LIBSPDM_CERT_PARSE_SUPPORT   1
 
#define LIBSPDM_ENABLE_CAPABILITY_CERT_CAP   1
 
#define LIBSPDM_ENABLE_CAPABILITY_CHAL_CAP   1
 
#define LIBSPDM_ENABLE_CAPABILITY_MEAS_CAP   1
 
#define LIBSPDM_ENABLE_CAPABILITY_KEY_EX_CAP   0
 
#define LIBSPDM_ENABLE_CAPABILITY_PSK_EX_CAP   0
 
#define LIBSPDM_ENABLE_CAPABILITY_HBEAT_CAP   0
 
#define LIBSPDM_ENABLE_CAPABILITY_MUT_AUTH_CAP   0
 
#define LIBSPDM_ENABLE_CAPABILITY_ENCAP_CAP   0
 
#define LIBSPDM_ENABLE_CAPABILITY_CSR_CAP   0
 
#define LIBSPDM_ENABLE_CAPABILITY_SET_CERT_CAP   0
 
#define LIBSPDM_ENABLE_CAPABILITY_CHUNK_CAP   0
 
#define LIBSPDM_SEND_GET_CERTIFICATE_SUPPORT   1
 
#define LIBSPDM_SEND_CHALLENGE_SUPPORT   1
 
#define LIBSPDM_RESPOND_IF_READY_SUPPORT   1
 
#define LIBSPDM_ENABLE_MSG_LOG   1
 
#define LIBSPDM_CHECK_MACRO   0
 
#define LIBSPDM_CHECK_SPDM_CONTEXT   1
 

Detailed Description

EDKII Device Security library for SPDM device. It follows the SPDM Specification.

Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file spdm_lib_config.h.

Macro Definition Documentation

◆ LIBSPDM_AEAD_AES_128_GCM_SUPPORT

#define LIBSPDM_AEAD_AES_128_GCM_SUPPORT   1

Definition at line 159 of file spdm_lib_config.h.

◆ LIBSPDM_AEAD_AES_256_GCM_SUPPORT

#define LIBSPDM_AEAD_AES_256_GCM_SUPPORT   1

Definition at line 162 of file spdm_lib_config.h.

◆ LIBSPDM_AEAD_CHACHA20_POLY1305_SUPPORT

#define LIBSPDM_AEAD_CHACHA20_POLY1305_SUPPORT   0

Definition at line 166 of file spdm_lib_config.h.

◆ LIBSPDM_AEAD_SM4_128_GCM_SUPPORT

#define LIBSPDM_AEAD_SM4_128_GCM_SUPPORT   0

Definition at line 170 of file spdm_lib_config.h.

◆ LIBSPDM_CERT_PARSE_SUPPORT

#define LIBSPDM_CERT_PARSE_SUPPORT   1

Definition at line 199 of file spdm_lib_config.h.

◆ LIBSPDM_CHECK_MACRO

#define LIBSPDM_CHECK_MACRO   0

Definition at line 386 of file spdm_lib_config.h.

◆ LIBSPDM_CHECK_SPDM_CONTEXT

#define LIBSPDM_CHECK_SPDM_CONTEXT   1

Definition at line 391 of file spdm_lib_config.h.

◆ LIBSPDM_DEBUG_ENABLE

#define LIBSPDM_DEBUG_ENABLE   1

Definition at line 21 of file spdm_lib_config.h.

◆ LIBSPDM_ECDHE_P256_SUPPORT

#define LIBSPDM_ECDHE_P256_SUPPORT   1

Definition at line 145 of file spdm_lib_config.h.

◆ LIBSPDM_ECDHE_P384_SUPPORT

#define LIBSPDM_ECDHE_P384_SUPPORT   1

Definition at line 148 of file spdm_lib_config.h.

◆ LIBSPDM_ECDHE_P521_SUPPORT

#define LIBSPDM_ECDHE_P521_SUPPORT   1

Definition at line 151 of file spdm_lib_config.h.

◆ LIBSPDM_ECDSA_P256_SUPPORT

#define LIBSPDM_ECDSA_P256_SUPPORT   1

Definition at line 114 of file spdm_lib_config.h.

◆ LIBSPDM_ECDSA_P384_SUPPORT

#define LIBSPDM_ECDSA_P384_SUPPORT   1

Definition at line 117 of file spdm_lib_config.h.

◆ LIBSPDM_ECDSA_P521_SUPPORT

#define LIBSPDM_ECDSA_P521_SUPPORT   1

Definition at line 120 of file spdm_lib_config.h.

◆ LIBSPDM_EDDSA_ED25519_SUPPORT

#define LIBSPDM_EDDSA_ED25519_SUPPORT   0

Definition at line 128 of file spdm_lib_config.h.

◆ LIBSPDM_EDDSA_ED448_SUPPORT

#define LIBSPDM_EDDSA_ED448_SUPPORT   0

Definition at line 131 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_CERT_CAP

#define LIBSPDM_ENABLE_CAPABILITY_CERT_CAP   1

Definition at line 228 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_CHAL_CAP

#define LIBSPDM_ENABLE_CAPABILITY_CHAL_CAP   1

Definition at line 231 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_CHUNK_CAP

#define LIBSPDM_ENABLE_CAPABILITY_CHUNK_CAP   0

Definition at line 265 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_CSR_CAP

#define LIBSPDM_ENABLE_CAPABILITY_CSR_CAP   0

Definition at line 257 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_ENCAP_CAP

#define LIBSPDM_ENABLE_CAPABILITY_ENCAP_CAP   0

Definition at line 253 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_HBEAT_CAP

#define LIBSPDM_ENABLE_CAPABILITY_HBEAT_CAP   0

Definition at line 245 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_KEY_EX_CAP

#define LIBSPDM_ENABLE_CAPABILITY_KEY_EX_CAP   0

Definition at line 238 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_MEAS_CAP

#define LIBSPDM_ENABLE_CAPABILITY_MEAS_CAP   1

Definition at line 234 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_MUT_AUTH_CAP

#define LIBSPDM_ENABLE_CAPABILITY_MUT_AUTH_CAP   0

Definition at line 249 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_PSK_EX_CAP

#define LIBSPDM_ENABLE_CAPABILITY_PSK_EX_CAP   0

Definition at line 241 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_CAPABILITY_SET_CERT_CAP

#define LIBSPDM_ENABLE_CAPABILITY_SET_CERT_CAP   0

Definition at line 261 of file spdm_lib_config.h.

◆ LIBSPDM_ENABLE_MSG_LOG

#define LIBSPDM_ENABLE_MSG_LOG   1

Definition at line 381 of file spdm_lib_config.h.

◆ LIBSPDM_FFDHE_2048_SUPPORT

#define LIBSPDM_FFDHE_2048_SUPPORT   0

Definition at line 135 of file spdm_lib_config.h.

◆ LIBSPDM_FFDHE_3072_SUPPORT

#define LIBSPDM_FFDHE_3072_SUPPORT   0

Definition at line 138 of file spdm_lib_config.h.

◆ LIBSPDM_FFDHE_4096_SUPPORT

#define LIBSPDM_FFDHE_4096_SUPPORT   0

Definition at line 141 of file spdm_lib_config.h.

◆ LIBSPDM_MAX_CERT_CHAIN_BLOCK_LEN

#define LIBSPDM_MAX_CERT_CHAIN_BLOCK_LEN   1024

Definition at line 76 of file spdm_lib_config.h.

◆ LIBSPDM_MAX_CERT_CHAIN_SIZE

#define LIBSPDM_MAX_CERT_CHAIN_SIZE   0x1000

Definition at line 65 of file spdm_lib_config.h.

◆ LIBSPDM_MAX_MEASUREMENT_RECORD_SIZE

#define LIBSPDM_MAX_MEASUREMENT_RECORD_SIZE   0x1000

Definition at line 68 of file spdm_lib_config.h.

◆ LIBSPDM_MAX_ROOT_CERT_SUPPORT

#define LIBSPDM_MAX_ROOT_CERT_SUPPORT   10

Definition at line 51 of file spdm_lib_config.h.

◆ LIBSPDM_MAX_SESSION_COUNT

#define LIBSPDM_MAX_SESSION_COUNT   4

Definition at line 58 of file spdm_lib_config.h.

◆ LIBSPDM_MAX_VERSION_COUNT

#define LIBSPDM_MAX_VERSION_COUNT   5

Definition at line 31 of file spdm_lib_config.h.

◆ LIBSPDM_PSK_CONTEXT_LENGTH

#define LIBSPDM_PSK_CONTEXT_LENGTH   LIBSPDM_MAX_HASH_SIZE

Definition at line 39 of file spdm_lib_config.h.

◆ LIBSPDM_PSK_MAX_HINT_LENGTH

#define LIBSPDM_PSK_MAX_HINT_LENGTH   16

Definition at line 43 of file spdm_lib_config.h.

◆ LIBSPDM_RECORD_TRANSCRIPT_DATA_SUPPORT

#define LIBSPDM_RECORD_TRANSCRIPT_DATA_SUPPORT   0

Definition at line 86 of file spdm_lib_config.h.

◆ LIBSPDM_RESPOND_IF_READY_SUPPORT

#define LIBSPDM_RESPOND_IF_READY_SUPPORT   1

Definition at line 298 of file spdm_lib_config.h.

◆ LIBSPDM_RSA_PSS_2048_SUPPORT

#define LIBSPDM_RSA_PSS_2048_SUPPORT   0

Definition at line 104 of file spdm_lib_config.h.

◆ LIBSPDM_RSA_PSS_3072_SUPPORT

#define LIBSPDM_RSA_PSS_3072_SUPPORT   0

Definition at line 107 of file spdm_lib_config.h.

◆ LIBSPDM_RSA_PSS_4096_SUPPORT

#define LIBSPDM_RSA_PSS_4096_SUPPORT   0

Definition at line 110 of file spdm_lib_config.h.

◆ LIBSPDM_RSA_SSA_2048_SUPPORT

#define LIBSPDM_RSA_SSA_2048_SUPPORT   1

Definition at line 94 of file spdm_lib_config.h.

◆ LIBSPDM_RSA_SSA_3072_SUPPORT

#define LIBSPDM_RSA_SSA_3072_SUPPORT   1

Definition at line 97 of file spdm_lib_config.h.

◆ LIBSPDM_RSA_SSA_4096_SUPPORT

#define LIBSPDM_RSA_SSA_4096_SUPPORT   1

Definition at line 100 of file spdm_lib_config.h.

◆ LIBSPDM_SEND_CHALLENGE_SUPPORT

#define LIBSPDM_SEND_CHALLENGE_SUPPORT   1

Definition at line 281 of file spdm_lib_config.h.

◆ LIBSPDM_SEND_GET_CERTIFICATE_SUPPORT

#define LIBSPDM_SEND_GET_CERTIFICATE_SUPPORT   1

Definition at line 273 of file spdm_lib_config.h.

◆ LIBSPDM_SHA256_SUPPORT

#define LIBSPDM_SHA256_SUPPORT   1

Definition at line 174 of file spdm_lib_config.h.

◆ LIBSPDM_SHA384_SUPPORT

#define LIBSPDM_SHA384_SUPPORT   1

Definition at line 177 of file spdm_lib_config.h.

◆ LIBSPDM_SHA3_256_SUPPORT

#define LIBSPDM_SHA3_256_SUPPORT   0

Definition at line 184 of file spdm_lib_config.h.

◆ LIBSPDM_SHA3_384_SUPPORT

#define LIBSPDM_SHA3_384_SUPPORT   0

Definition at line 187 of file spdm_lib_config.h.

◆ LIBSPDM_SHA3_512_SUPPORT

#define LIBSPDM_SHA3_512_SUPPORT   0

Definition at line 190 of file spdm_lib_config.h.

◆ LIBSPDM_SHA512_SUPPORT

#define LIBSPDM_SHA512_SUPPORT   0

Definition at line 180 of file spdm_lib_config.h.

◆ LIBSPDM_SM2_DSA_P256_SUPPORT

#define LIBSPDM_SM2_DSA_P256_SUPPORT   0

Definition at line 124 of file spdm_lib_config.h.

◆ LIBSPDM_SM2_KEY_EXCHANGE_P256_SUPPORT

#define LIBSPDM_SM2_KEY_EXCHANGE_P256_SUPPORT   0

Definition at line 155 of file spdm_lib_config.h.

◆ LIBSPDM_SM3_256_SUPPORT

#define LIBSPDM_SM3_256_SUPPORT   0

Definition at line 194 of file spdm_lib_config.h.