Loading...
Searching...
No Matches
Go to the documentation of this file.
10#ifndef SPDM_LIB_CONFIG_H
11#define SPDM_LIB_CONFIG_H
20#ifndef LIBSPDM_DEBUG_ENABLE
21#define LIBSPDM_DEBUG_ENABLE 1
30#ifndef LIBSPDM_MAX_VERSION_COUNT
31#define LIBSPDM_MAX_VERSION_COUNT 5
38#ifndef LIBSPDM_PSK_CONTEXT_LENGTH
39#define LIBSPDM_PSK_CONTEXT_LENGTH LIBSPDM_MAX_HASH_SIZE
42#ifndef LIBSPDM_PSK_MAX_HINT_LENGTH
43#define LIBSPDM_PSK_MAX_HINT_LENGTH 16
50#ifndef LIBSPDM_MAX_ROOT_CERT_SUPPORT
51#define LIBSPDM_MAX_ROOT_CERT_SUPPORT 10
57#ifndef LIBSPDM_MAX_SESSION_COUNT
58#define LIBSPDM_MAX_SESSION_COUNT 4
64#ifndef LIBSPDM_MAX_CERT_CHAIN_SIZE
65#define LIBSPDM_MAX_CERT_CHAIN_SIZE 0x1000
67#ifndef LIBSPDM_MAX_MEASUREMENT_RECORD_SIZE
68#define LIBSPDM_MAX_MEASUREMENT_RECORD_SIZE 0x1000
75#ifndef LIBSPDM_MAX_CERT_CHAIN_BLOCK_LEN
76#define LIBSPDM_MAX_CERT_CHAIN_BLOCK_LEN 1024
85#ifndef LIBSPDM_RECORD_TRANSCRIPT_DATA_SUPPORT
86#define LIBSPDM_RECORD_TRANSCRIPT_DATA_SUPPORT 0
93#ifndef LIBSPDM_RSA_SSA_2048_SUPPORT
94#define LIBSPDM_RSA_SSA_2048_SUPPORT 1
96#ifndef LIBSPDM_RSA_SSA_3072_SUPPORT
97#define LIBSPDM_RSA_SSA_3072_SUPPORT 1
99#ifndef LIBSPDM_RSA_SSA_4096_SUPPORT
100#define LIBSPDM_RSA_SSA_4096_SUPPORT 1
103#ifndef LIBSPDM_RSA_PSS_2048_SUPPORT
104#define LIBSPDM_RSA_PSS_2048_SUPPORT 0
106#ifndef LIBSPDM_RSA_PSS_3072_SUPPORT
107#define LIBSPDM_RSA_PSS_3072_SUPPORT 0
109#ifndef LIBSPDM_RSA_PSS_4096_SUPPORT
110#define LIBSPDM_RSA_PSS_4096_SUPPORT 0
113#ifndef LIBSPDM_ECDSA_P256_SUPPORT
114#define LIBSPDM_ECDSA_P256_SUPPORT 1
116#ifndef LIBSPDM_ECDSA_P384_SUPPORT
117#define LIBSPDM_ECDSA_P384_SUPPORT 1
119#ifndef LIBSPDM_ECDSA_P521_SUPPORT
120#define LIBSPDM_ECDSA_P521_SUPPORT 1
123#ifndef LIBSPDM_SM2_DSA_P256_SUPPORT
124#define LIBSPDM_SM2_DSA_P256_SUPPORT 0
127#ifndef LIBSPDM_EDDSA_ED25519_SUPPORT
128#define LIBSPDM_EDDSA_ED25519_SUPPORT 0
130#ifndef LIBSPDM_EDDSA_ED448_SUPPORT
131#define LIBSPDM_EDDSA_ED448_SUPPORT 0
134#ifndef LIBSPDM_FFDHE_2048_SUPPORT
135#define LIBSPDM_FFDHE_2048_SUPPORT 0
137#ifndef LIBSPDM_FFDHE_3072_SUPPORT
138#define LIBSPDM_FFDHE_3072_SUPPORT 0
140#ifndef LIBSPDM_FFDHE_4096_SUPPORT
141#define LIBSPDM_FFDHE_4096_SUPPORT 0
144#ifndef LIBSPDM_ECDHE_P256_SUPPORT
145#define LIBSPDM_ECDHE_P256_SUPPORT 1
147#ifndef LIBSPDM_ECDHE_P384_SUPPORT
148#define LIBSPDM_ECDHE_P384_SUPPORT 1
150#ifndef LIBSPDM_ECDHE_P521_SUPPORT
151#define LIBSPDM_ECDHE_P521_SUPPORT 1
154#ifndef LIBSPDM_SM2_KEY_EXCHANGE_P256_SUPPORT
155#define LIBSPDM_SM2_KEY_EXCHANGE_P256_SUPPORT 0
158#ifndef LIBSPDM_AEAD_AES_128_GCM_SUPPORT
159#define LIBSPDM_AEAD_AES_128_GCM_SUPPORT 1
161#ifndef LIBSPDM_AEAD_AES_256_GCM_SUPPORT
162#define LIBSPDM_AEAD_AES_256_GCM_SUPPORT 1
165#ifndef LIBSPDM_AEAD_CHACHA20_POLY1305_SUPPORT
166#define LIBSPDM_AEAD_CHACHA20_POLY1305_SUPPORT 0
169#ifndef LIBSPDM_AEAD_SM4_128_GCM_SUPPORT
170#define LIBSPDM_AEAD_SM4_128_GCM_SUPPORT 0
173#ifndef LIBSPDM_SHA256_SUPPORT
174#define LIBSPDM_SHA256_SUPPORT 1
176#ifndef LIBSPDM_SHA384_SUPPORT
177#define LIBSPDM_SHA384_SUPPORT 1
179#ifndef LIBSPDM_SHA512_SUPPORT
180#define LIBSPDM_SHA512_SUPPORT 0
183#ifndef LIBSPDM_SHA3_256_SUPPORT
184#define LIBSPDM_SHA3_256_SUPPORT 0
186#ifndef LIBSPDM_SHA3_384_SUPPORT
187#define LIBSPDM_SHA3_384_SUPPORT 0
189#ifndef LIBSPDM_SHA3_512_SUPPORT
190#define LIBSPDM_SHA3_512_SUPPORT 0
193#ifndef LIBSPDM_SM3_256_SUPPORT
194#define LIBSPDM_SM3_256_SUPPORT 0
198#ifndef LIBSPDM_CERT_PARSE_SUPPORT
199#define LIBSPDM_CERT_PARSE_SUPPORT 1
227#ifndef LIBSPDM_ENABLE_CAPABILITY_CERT_CAP
228#define LIBSPDM_ENABLE_CAPABILITY_CERT_CAP 1
230#ifndef LIBSPDM_ENABLE_CAPABILITY_CHAL_CAP
231#define LIBSPDM_ENABLE_CAPABILITY_CHAL_CAP 1
233#ifndef LIBSPDM_ENABLE_CAPABILITY_MEAS_CAP
234#define LIBSPDM_ENABLE_CAPABILITY_MEAS_CAP 1
237#ifndef LIBSPDM_ENABLE_CAPABILITY_KEY_EX_CAP
238#define LIBSPDM_ENABLE_CAPABILITY_KEY_EX_CAP 0
240#ifndef LIBSPDM_ENABLE_CAPABILITY_PSK_EX_CAP
241#define LIBSPDM_ENABLE_CAPABILITY_PSK_EX_CAP 0
244#ifndef LIBSPDM_ENABLE_CAPABILITY_HBEAT_CAP
245#define LIBSPDM_ENABLE_CAPABILITY_HBEAT_CAP 0
248#ifndef LIBSPDM_ENABLE_CAPABILITY_MUT_AUTH_CAP
249#define LIBSPDM_ENABLE_CAPABILITY_MUT_AUTH_CAP 0
252#ifndef LIBSPDM_ENABLE_CAPABILITY_ENCAP_CAP
253#define LIBSPDM_ENABLE_CAPABILITY_ENCAP_CAP 0
256#ifndef LIBSPDM_ENABLE_CAPABILITY_CSR_CAP
257#define LIBSPDM_ENABLE_CAPABILITY_CSR_CAP 0
260#ifndef LIBSPDM_ENABLE_CAPABILITY_SET_CERT_CAP
261#define LIBSPDM_ENABLE_CAPABILITY_SET_CERT_CAP 0
264#ifndef LIBSPDM_ENABLE_CAPABILITY_CHUNK_CAP
265#define LIBSPDM_ENABLE_CAPABILITY_CHUNK_CAP 0
272#ifndef LIBSPDM_SEND_GET_CERTIFICATE_SUPPORT
273#define LIBSPDM_SEND_GET_CERTIFICATE_SUPPORT 1
280#ifndef LIBSPDM_SEND_CHALLENGE_SUPPORT
281#define LIBSPDM_SEND_CHALLENGE_SUPPORT 1
297#ifndef LIBSPDM_RESPOND_IF_READY_SUPPORT
298#define LIBSPDM_RESPOND_IF_READY_SUPPORT 1
380#ifndef LIBSPDM_ENABLE_MSG_LOG
381#define LIBSPDM_ENABLE_MSG_LOG 1
385#ifndef LIBSPDM_CHECK_MACRO
386#define LIBSPDM_CHECK_MACRO 0
390#ifndef LIBSPDM_CHECK_SPDM_CONTEXT
391#define LIBSPDM_CHECK_SPDM_CONTEXT 1