TianoCore EDK2 master
Loading...
Searching...
No Matches
mbedtls_config.h
Go to the documentation of this file.
1
16// #define MBEDTLS_CONFIG_VERSION 0x03000000
17
42#define MBEDTLS_HAVE_ASM
43
70#define MBEDTLS_NO_UDBL_DIVISION
71
92// #define MBEDTLS_NO_64BIT_MULTIPLICATION
93
101// #define MBEDTLS_HAVE_SSE2
102
121#define MBEDTLS_HAVE_TIME
122
142// #define MBEDTLS_HAVE_TIME_DATE
143
166#define MBEDTLS_PLATFORM_MEMORY
167
185#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
186
210// #define MBEDTLS_PLATFORM_SETBUF_ALT
211// #define MBEDTLS_PLATFORM_EXIT_ALT
212// #define MBEDTLS_PLATFORM_TIME_ALT
213#define MBEDTLS_PLATFORM_FPRINTF_ALT
214// #define MBEDTLS_PLATFORM_PRINTF_ALT
215// #define MBEDTLS_PLATFORM_SNPRINTF_ALT
216// #define MBEDTLS_PLATFORM_VSNPRINTF_ALT
217// #define MBEDTLS_PLATFORM_NV_SEED_ALT
218// #define MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT
219
233// #define MBEDTLS_DEPRECATED_WARNING
234
245// #define MBEDTLS_DEPRECATED_REMOVED
246
268// #define MBEDTLS_TIMING_ALT
269
295// #define MBEDTLS_AES_ALT
296// #define MBEDTLS_ARIA_ALT
297// #define MBEDTLS_CAMELLIA_ALT
298// #define MBEDTLS_CCM_ALT
299// #define MBEDTLS_CHACHA20_ALT
300// #define MBEDTLS_CHACHAPOLY_ALT
301// #define MBEDTLS_CMAC_ALT
302// #define MBEDTLS_DES_ALT
303// #define MBEDTLS_DHM_ALT
304// #define MBEDTLS_ECJPAKE_ALT
305// #define MBEDTLS_GCM_ALT
306// #define MBEDTLS_NIST_KW_ALT
307// #define MBEDTLS_MD5_ALT
308// #define MBEDTLS_POLY1305_ALT
309// #define MBEDTLS_RIPEMD160_ALT
310// #define MBEDTLS_RSA_ALT
311// #define MBEDTLS_SHA1_ALT
312// #define MBEDTLS_SHA256_ALT
313// #define MBEDTLS_SHA512_ALT
314
315/*
316 * When replacing the elliptic curve module, please consider, that it is
317 * implemented with two .c files:
318 * - ecp.c
319 * - ecp_curves.c
320 * You can replace them very much like all the other MBEDTLS__MODULE_NAME__ALT
321 * macros as described above. The only difference is that you have to make sure
322 * that you provide functionality for both .c files.
323 */
324// #define MBEDTLS_ECP_ALT
325
363// #define MBEDTLS_MD5_PROCESS_ALT
364// #define MBEDTLS_RIPEMD160_PROCESS_ALT
365// #define MBEDTLS_SHA1_PROCESS_ALT
366// #define MBEDTLS_SHA256_PROCESS_ALT
367// #define MBEDTLS_SHA512_PROCESS_ALT
368// #define MBEDTLS_DES_SETKEY_ALT
369// #define MBEDTLS_DES_CRYPT_ECB_ALT
370// #define MBEDTLS_DES3_CRYPT_ECB_ALT
371// #define MBEDTLS_AES_SETKEY_ENC_ALT
372// #define MBEDTLS_AES_SETKEY_DEC_ALT
373// #define MBEDTLS_AES_ENCRYPT_ALT
374// #define MBEDTLS_AES_DECRYPT_ALT
375// #define MBEDTLS_ECDH_GEN_PUBLIC_ALT
376// #define MBEDTLS_ECDH_COMPUTE_SHARED_ALT
377// #define MBEDTLS_ECDSA_VERIFY_ALT
378// #define MBEDTLS_ECDSA_SIGN_ALT
379// #define MBEDTLS_ECDSA_GENKEY_ALT
380
431/* Required for all the functions in this section */
432// #define MBEDTLS_ECP_INTERNAL_ALT
433/* Turn off software fallback for curves not supported in hardware */
434// #define MBEDTLS_ECP_NO_FALLBACK
435/* Support for Weierstrass curves with Jacobi representation */
436// #define MBEDTLS_ECP_RANDOMIZE_JAC_ALT
437// #define MBEDTLS_ECP_ADD_MIXED_ALT
438// #define MBEDTLS_ECP_DOUBLE_JAC_ALT
439// #define MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT
440// #define MBEDTLS_ECP_NORMALIZE_JAC_ALT
441/* Support for curves with Montgomery arithmetic */
442// #define MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT
443// #define MBEDTLS_ECP_RANDOMIZE_MXZ_ALT
444// #define MBEDTLS_ECP_NORMALIZE_MXZ_ALT
445
458// #define MBEDTLS_ENTROPY_HARDWARE_ALT
459
478// #define MBEDTLS_AES_ROM_TABLES
479
500// #define MBEDTLS_AES_FEWER_TABLES
501
509// #define MBEDTLS_CAMELLIA_SMALL_MEMORY
510
532// #define MBEDTLS_CHECK_RETURN_WARNING
533
539#define MBEDTLS_CIPHER_MODE_CBC
540
546// #define MBEDTLS_CIPHER_MODE_CFB
547
553// #define MBEDTLS_CIPHER_MODE_CTR
554
560// #define MBEDTLS_CIPHER_MODE_OFB
561
567// #define MBEDTLS_CIPHER_MODE_XTS
568
599// #define MBEDTLS_CIPHER_NULL_CIPHER
600
612// #define MBEDTLS_CIPHER_PADDING_PKCS7
613// #define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
614// #define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
615// #define MBEDTLS_CIPHER_PADDING_ZEROS
616
622// #define MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
623
632/* Short Weierstrass curves (supporting ECP, ECDH, ECDSA) */
633// #define MBEDTLS_ECP_DP_SECP192R1_ENABLED
634// #define MBEDTLS_ECP_DP_SECP224R1_ENABLED
635#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
636#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
637#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
638// #define MBEDTLS_ECP_DP_SECP192K1_ENABLED
639// #define MBEDTLS_ECP_DP_SECP224K1_ENABLED
640// #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
641// #define MBEDTLS_ECP_DP_BP256R1_ENABLED
642// #define MBEDTLS_ECP_DP_BP384R1_ENABLED
643// #define MBEDTLS_ECP_DP_BP512R1_ENABLED
644/* Montgomery curves (supporting ECP) */
645#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
646#define MBEDTLS_ECP_DP_CURVE448_ENABLED
647
657#define MBEDTLS_ECP_NIST_OPTIM
658
681#define MBEDTLS_ECP_RESTARTABLE
682
695// #define MBEDTLS_ECDSA_DETERMINISTIC
696
715#define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
716
744#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
745
762#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
763
785#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
786
810#define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
811
842#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
843
865#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
866
887#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
888
909#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
910
931#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
932
950// #define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
951
964// #define MBEDTLS_PK_PARSE_EC_EXTENDED
965
979#define MBEDTLS_ERROR_STRERROR_DUMMY
980
988#define MBEDTLS_GENPRIME
989
995// #define MBEDTLS_FS_IO
996
1007// #define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
1008
1018// #define MBEDTLS_NO_PLATFORM_ENTROPY
1019
1034// #define MBEDTLS_ENTROPY_FORCE_SHA256
1035
1062// #define MBEDTLS_ENTROPY_NV_SEED
1063
1064/* MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER
1065 *
1066 * Enable key identifiers that encode a key owner identifier.
1067 *
1068 * The owner of a key is identified by a value of type ::mbedtls_key_owner_id_t
1069 * which is currently hard-coded to be int32_t.
1070 *
1071 * Note that this option is meant for internal use only and may be removed
1072 * without notice.
1073 */
1074// #define MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER
1075
1087// #define MBEDTLS_MEMORY_DEBUG
1088
1099// #define MBEDTLS_MEMORY_BACKTRACE
1100
1108// #define MBEDTLS_PK_RSA_ALT_SUPPORT
1109
1119#define MBEDTLS_PKCS1_V15
1120
1138#define MBEDTLS_PKCS1_V21
1139
1154// #define MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS
1155
1170// #define MBEDTLS_PSA_CRYPTO_CLIENT
1171
1182// #define MBEDTLS_PSA_CRYPTO_DRIVERS
1183
1220// #define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
1221
1234// #define MBEDTLS_PSA_CRYPTO_SPM
1235
1247// #define MBEDTLS_PSA_INJECT_ENTROPY
1248
1258// #define MBEDTLS_RSA_NO_CRT
1259
1265// #define MBEDTLS_SELF_TEST
1266
1281#define MBEDTLS_SHA256_SMALLER
1282
1291#define MBEDTLS_SHA512_SMALLER
1292
1305#define MBEDTLS_SSL_ALL_ALERT_MESSAGES
1306
1329#define MBEDTLS_SSL_DTLS_CONNECTION_ID
1330
1351#define MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT 0
1352
1362// #define MBEDTLS_SSL_ASYNC_PRIVATE
1363
1391#define MBEDTLS_SSL_CONTEXT_SERIALIZATION
1392
1407// #define MBEDTLS_SSL_DEBUG_ALL
1408
1423#define MBEDTLS_SSL_ENCRYPT_THEN_MAC
1424
1439#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET
1440
1463#define MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
1464
1485#define MBEDTLS_SSL_RENEGOTIATION
1486
1494#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
1495
1512#define MBEDTLS_SSL_PROTO_TLS1_2
1513
1535// #define MBEDTLS_SSL_PROTO_TLS1_3
1536
1557// #define MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
1558
1569#define MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
1570
1584#define MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
1585
1598#define MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
1599
1618#define MBEDTLS_SSL_TLS1_3_TICKET_AGE_TOLERANCE 6000
1619
1627#define MBEDTLS_SSL_TLS1_3_TICKET_NONCE_LENGTH 32
1628
1637#define MBEDTLS_SSL_TLS1_3_DEFAULT_NEW_SESSION_TICKETS 1
1638
1655// #define MBEDTLS_SSL_EARLY_DATA
1656
1672#define MBEDTLS_SSL_MAX_EARLY_DATA_SIZE 1024
1673
1685#define MBEDTLS_SSL_PROTO_DTLS
1686
1694#define MBEDTLS_SSL_ALPN
1695
1709// #define MBEDTLS_SSL_DTLS_ANTI_REPLAY
1710
1727// #define MBEDTLS_SSL_DTLS_HELLO_VERIFY
1728
1758// #define MBEDTLS_SSL_DTLS_SRTP
1759
1774// #define MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
1775
1788#define MBEDTLS_SSL_SESSION_TICKETS
1789
1799#define MBEDTLS_SSL_SERVER_NAME_INDICATION
1800
1809// #define MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH
1810
1826// #define MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN
1827
1845// #define MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND
1846
1865// #define MBEDTLS_TEST_HOOKS
1866
1876// #define MBEDTLS_THREADING_ALT
1877
1887// #define MBEDTLS_THREADING_PTHREAD
1888
1911// #define MBEDTLS_USE_PSA_CRYPTO
1912
1936// #define MBEDTLS_PSA_CRYPTO_CONFIG
1937
1949// #define MBEDTLS_VERSION_FEATURES
1950
1968// #define MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK
1969
1979// #define MBEDTLS_X509_REMOVE_INFO
1980
1989#define MBEDTLS_X509_RSASSA_PSS_SUPPORT
2011// #define MBEDTLS_AESNI_C
2012
2086#define MBEDTLS_AES_C
2087
2100#define MBEDTLS_ASN1_PARSE_C
2101
2114#define MBEDTLS_ASN1_WRITE_C
2115
2126#define MBEDTLS_BASE64_C
2127
2146#define MBEDTLS_BIGNUM_C
2147
2201// #define MBEDTLS_CAMELLIA_C
2202
2253// #define MBEDTLS_ARIA_C
2254
2268// #define MBEDTLS_CCM_C
2269
2277#define MBEDTLS_CHACHA20_C
2278
2288#define MBEDTLS_CHACHAPOLY_C
2289
2310#define MBEDTLS_CIPHER_C
2311
2328// #define MBEDTLS_CMAC_C
2329
2348#define MBEDTLS_CTR_DRBG_C
2349
2363// #define MBEDTLS_DEBUG_C
2364
2379// #define MBEDTLS_DES_C
2380
2401#define MBEDTLS_DHM_C
2402
2419#define MBEDTLS_ECDH_C
2420
2436#define MBEDTLS_ECDSA_C
2437
2463// #define MBEDTLS_ECJPAKE_C
2464
2477#define MBEDTLS_ECP_C
2478
2491#define MBEDTLS_ENTROPY_C
2492
2503#define MBEDTLS_ERROR_C
2504
2518#define MBEDTLS_GCM_C
2519
2533#define MBEDTLS_HKDF_C
2534
2547#define MBEDTLS_HMAC_DRBG_C
2548
2561// #define MBEDTLS_LMS_C
2562
2573// #define MBEDTLS_LMS_PRIVATE
2574
2586// #define MBEDTLS_NIST_KW_C
2587
2618#define MBEDTLS_MD_C
2619
2639#define MBEDTLS_MD5_C
2640
2655// #define MBEDTLS_MEMORY_BUFFER_ALLOC_C
2656
2674#define MBEDTLS_NET_C
2675
2697#define MBEDTLS_OID_C
2698
2711// #define MBEDTLS_PADLOCK_C
2712
2729#define MBEDTLS_PEM_PARSE_C
2730
2745#define MBEDTLS_PEM_WRITE_C
2746
2763#define MBEDTLS_PK_C
2764
2778#define MBEDTLS_PK_PARSE_C
2779
2792#define MBEDTLS_PK_WRITE_C
2793
2813#define MBEDTLS_PKCS5_C
2814
2833#define MBEDTLS_PKCS7_C
2834
2857// #define MBEDTLS_PKCS12_C
2858
2877#define MBEDTLS_PLATFORM_C
2878
2887#define MBEDTLS_POLY1305_C
2888
2902// #define MBEDTLS_PSA_CRYPTO_C
2903
2918// #define MBEDTLS_PSA_CRYPTO_SE_C
2919
2931// #define MBEDTLS_PSA_CRYPTO_STORAGE_C
2932
2943// #define MBEDTLS_PSA_ITS_FILE_C
2944
2954// #define MBEDTLS_RIPEMD160_C
2955
2974#define MBEDTLS_RSA_C
2975
2993#define MBEDTLS_SHA1_C
2994
3009#define MBEDTLS_SHA224_C
3010
3029#define MBEDTLS_SHA256_C
3030
3054// #define MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT
3055
3079// #define MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY
3080
3097#define MBEDTLS_SHA384_C
3098
3112#define MBEDTLS_SHA512_C
3113
3139// #define MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT
3140
3166// #define MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY
3167
3178#define MBEDTLS_SSL_CACHE_C
3179
3188#define MBEDTLS_SSL_COOKIE_C
3189
3201#define MBEDTLS_SSL_TICKET_C
3202
3215#define MBEDTLS_SSL_CLI_C
3216
3229#define MBEDTLS_SSL_SRV_C
3230
3245#define MBEDTLS_SSL_TLS_C
3246
3267// #define MBEDTLS_THREADING_C
3268
3291// #define MBEDTLS_TIMING_C
3292
3302#define MBEDTLS_VERSION_C
3303
3322#define MBEDTLS_X509_USE_C
3323
3338#define MBEDTLS_X509_CRT_PARSE_C
3339
3352#define MBEDTLS_X509_CRL_PARSE_C
3353
3366#define MBEDTLS_X509_CSR_PARSE_C
3367
3383#define MBEDTLS_X509_CREATE_C
3384
3396#define MBEDTLS_X509_CRT_WRITE_C
3397
3409#define MBEDTLS_X509_CSR_WRITE_C
3410
3439// #define MBEDTLS_CONFIG_FILE "mbedtls/mbedtls_config.h"
3440
3456// #define MBEDTLS_USER_CONFIG_FILE "/dev/null"
3457
3474// #define MBEDTLS_PSA_CRYPTO_CONFIG_FILE "psa/crypto_config.h"
3475
3491// #define MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE "/dev/null"
3492
3506/* The Doxygen documentation here is used when a user comments out a
3507 * setting and runs doxygen themselves. On the other hand, when we typeset
3508 * the full documentation including disabled settings, the documentation
3509 * in specific modules' header files is used if present. When editing this
3510 * file, make sure that each option is documented in exactly one place,
3511 * plus optionally a same-line Doxygen comment here if there is a Doxygen
3512 * comment in the specific module. */
3513
3514/* MPI / BIGNUM options */
3515// #define MBEDTLS_MPI_WINDOW_SIZE 6 /**< Maximum window size used. */
3516// #define MBEDTLS_MPI_MAX_SIZE 1024 /**< Maximum number of bytes for usable MPIs. */
3517
3518/* CTR_DRBG options */
3519// #define MBEDTLS_CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default (48 with SHA-512, 32 with SHA-256) */
3520// #define MBEDTLS_CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
3521// #define MBEDTLS_CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
3522// #define MBEDTLS_CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
3523// #define MBEDTLS_CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
3524
3525/* HMAC_DRBG options */
3526// #define MBEDTLS_HMAC_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
3527// #define MBEDTLS_HMAC_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
3528// #define MBEDTLS_HMAC_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
3529// #define MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
3530
3531/* ECP options */
3532// #define MBEDTLS_ECP_WINDOW_SIZE 4 /**< Maximum window size used */
3533// #define MBEDTLS_ECP_FIXED_POINT_OPTIM 1 /**< Enable fixed-point speed-up */
3534
3535/* Entropy options */
3536// #define MBEDTLS_ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
3537// #define MBEDTLS_ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
3538// #define MBEDTLS_ENTROPY_MIN_HARDWARE 32 /**< Default minimum number of bytes required for the hardware entropy source mbedtls_hardware_poll() before entropy is released */
3539
3540/* Memory buffer allocator options */
3541// #define MBEDTLS_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */
3542
3543/* Platform options */
3544// #define MBEDTLS_PLATFORM_STD_MEM_HDR <stdlib.h> /**< Header to include if MBEDTLS_PLATFORM_NO_STD_FUNCTIONS is defined. Don't define if no header is needed. */
3545// #define MBEDTLS_PLATFORM_STD_CALLOC calloc /**< Default allocator to use, can be undefined */
3546// #define MBEDTLS_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */
3547// #define MBEDTLS_PLATFORM_STD_SETBUF setbuf /**< Default setbuf to use, can be undefined */
3548// #define MBEDTLS_PLATFORM_STD_EXIT exit /**< Default exit to use, can be undefined */
3549// #define MBEDTLS_PLATFORM_STD_TIME time /**< Default time to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3550// #define MBEDTLS_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */
3551// #define MBEDTLS_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */
3552/* Note: your snprintf must correctly zero-terminate the buffer! */
3553// #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< Default snprintf to use, can be undefined */
3554// #define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS 0 /**< Default exit value to use, can be undefined */
3555// #define MBEDTLS_PLATFORM_STD_EXIT_FAILURE 1 /**< Default exit value to use, can be undefined */
3556// #define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
3557// #define MBEDTLS_PLATFORM_STD_NV_SEED_WRITE mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
3558// #define MBEDTLS_PLATFORM_STD_NV_SEED_FILE "seedfile" /**< Seed file to read/write with default implementation */
3559
3560/* To Use Function Macros MBEDTLS_PLATFORM_C must be enabled */
3561/* MBEDTLS_PLATFORM_XXX_MACRO and MBEDTLS_PLATFORM_XXX_ALT cannot both be defined */
3562// #define MBEDTLS_PLATFORM_CALLOC_MACRO calloc /**< Default allocator macro to use, can be undefined */
3563// #define MBEDTLS_PLATFORM_FREE_MACRO free /**< Default free macro to use, can be undefined */
3564// #define MBEDTLS_PLATFORM_EXIT_MACRO exit /**< Default exit macro to use, can be undefined */
3565// #define MBEDTLS_PLATFORM_SETBUF_MACRO setbuf /**< Default setbuf macro to use, can be undefined */
3566// #define MBEDTLS_PLATFORM_TIME_MACRO time /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3567// #define MBEDTLS_PLATFORM_TIME_TYPE_MACRO time_t /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3568// #define MBEDTLS_PLATFORM_FPRINTF_MACRO fprintf /**< Default fprintf macro to use, can be undefined */
3569// #define MBEDTLS_PLATFORM_PRINTF_MACRO printf /**< Default printf macro to use, can be undefined */
3570/* Note: your snprintf must correctly zero-terminate the buffer! */
3571// #define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf /**< Default snprintf macro to use, can be undefined */
3572// #define MBEDTLS_PLATFORM_VSNPRINTF_MACRO vsnprintf /**< Default vsnprintf macro to use, can be undefined */
3573// #define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
3574// #define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
3575
3576extern int
3577my_printf (
3578 const char *fmt,
3579 ...
3580 );
3581
3582#define MBEDTLS_PLATFORM_PRINTF_MACRO my_printf
3583
3584extern int
3585my_snprintf (
3586 char *str,
3587 long long size,
3588 const char *format,
3589 ...
3590 );
3591
3592#define MBEDTLS_PLATFORM_SNPRINTF_MACRO my_snprintf
3593
3594#define MBEDTLS_PLATFORM_MEMORY
3595#include <stddef.h>
3596extern void *
3597mbedtls_calloc (
3598 size_t n,
3599 size_t size
3600 );
3601
3602extern void
3603mbedtls_free (
3604 void *ptr
3605 );
3606
3607#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_calloc
3608#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_free
3609
3623// #define MBEDTLS_CHECK_RETURN __attribute__((__warn_unused_result__))
3624
3631// #define MBEDTLS_IGNORE_RETURN( result ) ((void) !(result))
3632
3633/* PSA options */
3634
3645// #define MBEDTLS_PSA_HMAC_DRBG_MD_TYPE MBEDTLS_MD_SHA256
3646
3656// #define MBEDTLS_PSA_KEY_SLOT_COUNT 32
3657
3658/* SSL Cache options */
3659// #define MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
3660// #define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
3661
3662/* SSL options */
3663
3683// #define MBEDTLS_SSL_IN_CONTENT_LEN 16384
3684
3690// #define MBEDTLS_SSL_CID_IN_LEN_MAX 32
3691
3697// #define MBEDTLS_SSL_CID_OUT_LEN_MAX 32
3698
3713// #define MBEDTLS_SSL_CID_TLS1_3_PADDING_GRANULARITY 16
3714
3733// #define MBEDTLS_SSL_OUT_CONTENT_LEN 16384
3734
3750// #define MBEDTLS_SSL_DTLS_MAX_BUFFERING 32768
3751
3752// #define MBEDTLS_PSK_MAX_LEN 32 /**< Max size of TLS pre-shared keys, in bytes (default 256 bits) */
3753// #define MBEDTLS_SSL_COOKIE_TIMEOUT 60 /**< Default expiration delay of DTLS cookies, in seconds if HAVE_TIME, or in number of cookies issued */
3754
3767// #define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
3768
3769/* X509 options */
3770// #define MBEDTLS_X509_MAX_INTERMEDIATE_CA 8 /**< Maximum number of intermediate CAs in a verification chain. */
3771// #define MBEDTLS_X509_MAX_FILE_PATH_LEN 512 /**< Maximum length of a path/filename string in bytes including the null terminator character ('\0'). */
3772
3791// #define MBEDTLS_PLATFORM_ZEROIZE_ALT
3792
3810// #define MBEDTLS_PLATFORM_GMTIME_R_ALT
3811
3819// #define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
3820
3823#define MBEDTLS_ALLOW_PRIVATE_ACCESS