mbed TLS v3.1.0
mbedtls_config.h
Go to the documentation of this file.
1 
10 /*
11  * Copyright The Mbed TLS Contributors
12  * SPDX-License-Identifier: Apache-2.0
13  *
14  * Licensed under the Apache License, Version 2.0 (the "License"); you may
15  * not use this file except in compliance with the License.
16  * You may obtain a copy of the License at
17  *
18  * http://www.apache.org/licenses/LICENSE-2.0
19  *
20  * Unless required by applicable law or agreed to in writing, software
21  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
22  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23  * See the License for the specific language governing permissions and
24  * limitations under the License.
25  */
26 
34 //#define MBEDTLS_CONFIG_VERSION 0x03000000
35 
60 #define MBEDTLS_HAVE_ASM
61 
88 #define MBEDTLS_NO_UDBL_DIVISION
89 
110 #define MBEDTLS_NO_64BIT_MULTIPLICATION
111 
119 #define MBEDTLS_HAVE_SSE2
120 
134 #define MBEDTLS_HAVE_TIME
135 
155 #define MBEDTLS_HAVE_TIME_DATE
156 
179 #define MBEDTLS_PLATFORM_MEMORY
180 
198 #define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
199 
223 #define MBEDTLS_PLATFORM_EXIT_ALT
224 #define MBEDTLS_PLATFORM_TIME_ALT
225 #define MBEDTLS_PLATFORM_FPRINTF_ALT
226 #define MBEDTLS_PLATFORM_PRINTF_ALT
227 #define MBEDTLS_PLATFORM_SNPRINTF_ALT
228 #define MBEDTLS_PLATFORM_VSNPRINTF_ALT
229 #define MBEDTLS_PLATFORM_NV_SEED_ALT
230 #define MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT
231 
245 #define MBEDTLS_DEPRECATED_WARNING
246 
257 #define MBEDTLS_DEPRECATED_REMOVED
258 
259 /* \} name SECTION: System support */
260 
280 #define MBEDTLS_TIMING_ALT
281 
307 #define MBEDTLS_AES_ALT
308 #define MBEDTLS_ARIA_ALT
309 #define MBEDTLS_CAMELLIA_ALT
310 #define MBEDTLS_CCM_ALT
311 #define MBEDTLS_CHACHA20_ALT
312 #define MBEDTLS_CHACHAPOLY_ALT
313 #define MBEDTLS_CMAC_ALT
314 #define MBEDTLS_DES_ALT
315 #define MBEDTLS_DHM_ALT
316 #define MBEDTLS_ECJPAKE_ALT
317 #define MBEDTLS_GCM_ALT
318 #define MBEDTLS_NIST_KW_ALT
319 #define MBEDTLS_MD5_ALT
320 #define MBEDTLS_POLY1305_ALT
321 #define MBEDTLS_RIPEMD160_ALT
322 #define MBEDTLS_RSA_ALT
323 #define MBEDTLS_SHA1_ALT
324 #define MBEDTLS_SHA256_ALT
325 #define MBEDTLS_SHA512_ALT
326 
327 /*
328  * When replacing the elliptic curve module, pleace consider, that it is
329  * implemented with two .c files:
330  * - ecp.c
331  * - ecp_curves.c
332  * You can replace them very much like all the other MBEDTLS__MODULE_NAME__ALT
333  * macros as described above. The only difference is that you have to make sure
334  * that you provide functionality for both .c files.
335  */
336 #define MBEDTLS_ECP_ALT
337 
375 #define MBEDTLS_MD5_PROCESS_ALT
376 #define MBEDTLS_RIPEMD160_PROCESS_ALT
377 #define MBEDTLS_SHA1_PROCESS_ALT
378 #define MBEDTLS_SHA256_PROCESS_ALT
379 #define MBEDTLS_SHA512_PROCESS_ALT
380 #define MBEDTLS_DES_SETKEY_ALT
381 #define MBEDTLS_DES_CRYPT_ECB_ALT
382 #define MBEDTLS_DES3_CRYPT_ECB_ALT
383 #define MBEDTLS_AES_SETKEY_ENC_ALT
384 #define MBEDTLS_AES_SETKEY_DEC_ALT
385 #define MBEDTLS_AES_ENCRYPT_ALT
386 #define MBEDTLS_AES_DECRYPT_ALT
387 #define MBEDTLS_ECDH_GEN_PUBLIC_ALT
388 #define MBEDTLS_ECDH_COMPUTE_SHARED_ALT
389 #define MBEDTLS_ECDSA_VERIFY_ALT
390 #define MBEDTLS_ECDSA_SIGN_ALT
391 #define MBEDTLS_ECDSA_GENKEY_ALT
392 
443 /* Required for all the functions in this section */
444 #define MBEDTLS_ECP_INTERNAL_ALT
445 /* Turn off software fallback for curves not supported in hardware */
446 #define MBEDTLS_ECP_NO_FALLBACK
447 /* Support for Weierstrass curves with Jacobi representation */
448 #define MBEDTLS_ECP_RANDOMIZE_JAC_ALT
449 #define MBEDTLS_ECP_ADD_MIXED_ALT
450 #define MBEDTLS_ECP_DOUBLE_JAC_ALT
451 #define MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT
452 #define MBEDTLS_ECP_NORMALIZE_JAC_ALT
453 /* Support for curves with Montgomery arithmetic */
454 #define MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT
455 #define MBEDTLS_ECP_RANDOMIZE_MXZ_ALT
456 #define MBEDTLS_ECP_NORMALIZE_MXZ_ALT
457 
470 #define MBEDTLS_ENTROPY_HARDWARE_ALT
471 
490 #define MBEDTLS_AES_ROM_TABLES
491 
512 #define MBEDTLS_AES_FEWER_TABLES
513 
521 #define MBEDTLS_CAMELLIA_SMALL_MEMORY
522 
544 #define MBEDTLS_CHECK_RETURN_WARNING
545 
551 #define MBEDTLS_CIPHER_MODE_CBC
552 
558 #define MBEDTLS_CIPHER_MODE_CFB
559 
565 #define MBEDTLS_CIPHER_MODE_CTR
566 
572 #define MBEDTLS_CIPHER_MODE_OFB
573 
579 #define MBEDTLS_CIPHER_MODE_XTS
580 
611 #define MBEDTLS_CIPHER_NULL_CIPHER
612 
624 #define MBEDTLS_CIPHER_PADDING_PKCS7
625 #define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
626 #define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
627 #define MBEDTLS_CIPHER_PADDING_ZEROS
628 
634 #define MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
635 
644 /* Short Weierstrass curves (supporting ECP, ECDH, ECDSA) */
645 #define MBEDTLS_ECP_DP_SECP192R1_ENABLED
646 #define MBEDTLS_ECP_DP_SECP224R1_ENABLED
647 #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
648 #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
649 #define MBEDTLS_ECP_DP_SECP521R1_ENABLED
650 #define MBEDTLS_ECP_DP_SECP192K1_ENABLED
651 #define MBEDTLS_ECP_DP_SECP224K1_ENABLED
652 #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
653 #define MBEDTLS_ECP_DP_BP256R1_ENABLED
654 #define MBEDTLS_ECP_DP_BP384R1_ENABLED
655 #define MBEDTLS_ECP_DP_BP512R1_ENABLED
656 /* Montgomery curves (supporting ECP) */
657 #define MBEDTLS_ECP_DP_CURVE25519_ENABLED
658 #define MBEDTLS_ECP_DP_CURVE448_ENABLED
659 
669 #define MBEDTLS_ECP_NIST_OPTIM
670 
693 #define MBEDTLS_ECP_RESTARTABLE
694 
707 #define MBEDTLS_ECDSA_DETERMINISTIC
708 
727 #define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
728 
756 #define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
757 
774 #define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
775 
797 #define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
798 
822 #define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
823 
854 #define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
855 
877 #define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
878 
899 #define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
900 
921 #define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
922 
943 #define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
944 
962 #define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
963 
976 #define MBEDTLS_PK_PARSE_EC_EXTENDED
977 
991 #define MBEDTLS_ERROR_STRERROR_DUMMY
992 
1000 #define MBEDTLS_GENPRIME
1001 
1007 #define MBEDTLS_FS_IO
1008 
1019 #define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
1020 
1030 #define MBEDTLS_NO_PLATFORM_ENTROPY
1031 
1046 #define MBEDTLS_ENTROPY_FORCE_SHA256
1047 
1074 #define MBEDTLS_ENTROPY_NV_SEED
1075 
1076 /* MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER
1077  *
1078  * Enable key identifiers that encode a key owner identifier.
1079  *
1080  * The owner of a key is identified by a value of type ::mbedtls_key_owner_id_t
1081  * which is currently hard-coded to be int32_t.
1082  *
1083  * Note that this option is meant for internal use only and may be removed
1084  * without notice. It is incompatible with MBEDTLS_USE_PSA_CRYPTO.
1085  */
1086 #define MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER
1087 
1099 #define MBEDTLS_MEMORY_DEBUG
1100 
1111 #define MBEDTLS_MEMORY_BACKTRACE
1112 
1120 #define MBEDTLS_PK_RSA_ALT_SUPPORT
1121 
1131 #define MBEDTLS_PKCS1_V15
1132 
1142 #define MBEDTLS_PKCS1_V21
1143 
1158 #define MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS
1159 
1174 #define MBEDTLS_PSA_CRYPTO_CLIENT
1175 
1185 #define MBEDTLS_PSA_CRYPTO_DRIVERS
1186 
1223 #define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
1224 
1237 #define MBEDTLS_PSA_CRYPTO_SPM
1238 
1250 #define MBEDTLS_PSA_INJECT_ENTROPY
1251 
1261 #define MBEDTLS_RSA_NO_CRT
1262 
1268 #define MBEDTLS_SELF_TEST
1269 
1284 #define MBEDTLS_SHA256_SMALLER
1285 
1294 #define MBEDTLS_SHA512_SMALLER
1295 
1308 #define MBEDTLS_SSL_ALL_ALERT_MESSAGES
1309 
1336 #define MBEDTLS_SSL_DTLS_CONNECTION_ID
1337 
1347 #define MBEDTLS_SSL_ASYNC_PRIVATE
1348 
1374 #define MBEDTLS_SSL_CONTEXT_SERIALIZATION
1375 
1390 #define MBEDTLS_SSL_DEBUG_ALL
1391 
1406 #define MBEDTLS_SSL_ENCRYPT_THEN_MAC
1407 
1422 #define MBEDTLS_SSL_EXTENDED_MASTER_SECRET
1423 
1444 #define MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
1445 
1466 #define MBEDTLS_SSL_RENEGOTIATION
1467 
1475 #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
1476 
1487 #define MBEDTLS_SSL_PROTO_TLS1_2
1488 
1502 #define MBEDTLS_SSL_PROTO_TLS1_3
1503 
1524 #define MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
1525 
1537 #define MBEDTLS_SSL_PROTO_DTLS
1538 
1546 #define MBEDTLS_SSL_ALPN
1547 
1561 #define MBEDTLS_SSL_DTLS_ANTI_REPLAY
1562 
1579 #define MBEDTLS_SSL_DTLS_HELLO_VERIFY
1580 
1610 #define MBEDTLS_SSL_DTLS_SRTP
1611 
1626 #define MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
1627 
1640 #define MBEDTLS_SSL_SESSION_TICKETS
1641 
1651 #define MBEDTLS_SSL_SERVER_NAME_INDICATION
1652 
1661 #define MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH
1662 
1678 #define MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN
1679 
1697 #define MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND
1698 
1717 #define MBEDTLS_TEST_HOOKS
1718 
1728 #define MBEDTLS_THREADING_ALT
1729 
1739 #define MBEDTLS_THREADING_PTHREAD
1740 
1764 #define MBEDTLS_USE_PSA_CRYPTO
1765 
1778 #define MBEDTLS_PSA_CRYPTO_CONFIG
1779 
1791 #define MBEDTLS_VERSION_FEATURES
1792 
1810 #define MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK
1811 
1821 #define MBEDTLS_X509_REMOVE_INFO
1822 
1831 #define MBEDTLS_X509_RSASSA_PSS_SUPPORT
1832 /* \} name SECTION: mbed TLS feature support */
1833 
1853 #define MBEDTLS_AESNI_C
1854 
1928 #define MBEDTLS_AES_C
1929 
1942 #define MBEDTLS_ASN1_PARSE_C
1943 
1956 #define MBEDTLS_ASN1_WRITE_C
1957 
1968 #define MBEDTLS_BASE64_C
1969 
1985 #define MBEDTLS_BIGNUM_C
1986 
2040 #define MBEDTLS_CAMELLIA_C
2041 
2092 #define MBEDTLS_ARIA_C
2093 
2106 #define MBEDTLS_CCM_C
2107 
2115 #define MBEDTLS_CHACHA20_C
2116 
2126 #define MBEDTLS_CHACHAPOLY_C
2127 
2138 #define MBEDTLS_CIPHER_C
2139 
2156 #define MBEDTLS_CMAC_C
2157 
2176 #define MBEDTLS_CTR_DRBG_C
2177 
2190 #define MBEDTLS_DEBUG_C
2191 
2206 #define MBEDTLS_DES_C
2207 
2227 #define MBEDTLS_DHM_C
2228 
2243 #define MBEDTLS_ECDH_C
2244 
2260 #define MBEDTLS_ECDSA_C
2261 
2279 #define MBEDTLS_ECJPAKE_C
2280 
2293 #define MBEDTLS_ECP_C
2294 
2307 #define MBEDTLS_ENTROPY_C
2308 
2319 #define MBEDTLS_ERROR_C
2320 
2333 #define MBEDTLS_GCM_C
2334 
2348 #define MBEDTLS_HKDF_C
2349 
2362 #define MBEDTLS_HMAC_DRBG_C
2363 
2375 #define MBEDTLS_NIST_KW_C
2376 
2387 #define MBEDTLS_MD_C
2388 
2408 #define MBEDTLS_MD5_C
2409 
2424 #define MBEDTLS_MEMORY_BUFFER_ALLOC_C
2425 
2443 #define MBEDTLS_NET_C
2444 
2466 #define MBEDTLS_OID_C
2467 
2480 #define MBEDTLS_PADLOCK_C
2481 
2498 #define MBEDTLS_PEM_PARSE_C
2499 
2514 #define MBEDTLS_PEM_WRITE_C
2515 
2530 #define MBEDTLS_PK_C
2531 
2545 #define MBEDTLS_PK_PARSE_C
2546 
2559 #define MBEDTLS_PK_WRITE_C
2560 
2572 #define MBEDTLS_PKCS5_C
2573 
2587 #define MBEDTLS_PKCS12_C
2588 
2607 #define MBEDTLS_PLATFORM_C
2608 
2617 #define MBEDTLS_POLY1305_C
2618 
2631 #define MBEDTLS_PSA_CRYPTO_C
2632 
2647 #define MBEDTLS_PSA_CRYPTO_SE_C
2648 
2660 #define MBEDTLS_PSA_CRYPTO_STORAGE_C
2661 
2672 #define MBEDTLS_PSA_ITS_FILE_C
2673 
2683 #define MBEDTLS_RIPEMD160_C
2684 
2702 #define MBEDTLS_RSA_C
2703 
2724 #define MBEDTLS_SHA1_C
2725 
2740 #define MBEDTLS_SHA224_C
2741 
2760 #define MBEDTLS_SHA256_C
2761 
2776 #define MBEDTLS_SHA384_C
2777 
2791 #define MBEDTLS_SHA512_C
2792 
2803 #define MBEDTLS_SSL_CACHE_C
2804 
2813 #define MBEDTLS_SSL_COOKIE_C
2814 
2825 #define MBEDTLS_SSL_TICKET_C
2826 
2839 #define MBEDTLS_SSL_CLI_C
2840 
2853 #define MBEDTLS_SSL_SRV_C
2854 
2869 #define MBEDTLS_SSL_TLS_C
2870 
2891 #define MBEDTLS_THREADING_C
2892 
2911 #define MBEDTLS_TIMING_C
2912 
2922 #define MBEDTLS_VERSION_C
2923 
2939 #define MBEDTLS_X509_USE_C
2940 
2955 #define MBEDTLS_X509_CRT_PARSE_C
2956 
2969 #define MBEDTLS_X509_CRL_PARSE_C
2970 
2983 #define MBEDTLS_X509_CSR_PARSE_C
2984 
2996 #define MBEDTLS_X509_CREATE_C
2997 
3009 #define MBEDTLS_X509_CRT_WRITE_C
3010 
3022 #define MBEDTLS_X509_CSR_WRITE_C
3023 
3024 /* \} name SECTION: mbed TLS modules */
3025 
3041 /* MPI / BIGNUM options */
3042 //#define MBEDTLS_MPI_WINDOW_SIZE 6 /**< Maximum window size used. */
3043 //#define MBEDTLS_MPI_MAX_SIZE 1024 /**< Maximum number of bytes for usable MPIs. */
3044 
3045 /* CTR_DRBG options */
3046 //#define MBEDTLS_CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default (48 with SHA-512, 32 with SHA-256) */
3047 //#define MBEDTLS_CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
3048 //#define MBEDTLS_CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
3049 //#define MBEDTLS_CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
3050 //#define MBEDTLS_CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
3051 
3052 /* HMAC_DRBG options */
3053 //#define MBEDTLS_HMAC_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
3054 //#define MBEDTLS_HMAC_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
3055 //#define MBEDTLS_HMAC_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
3056 //#define MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
3057 
3058 /* ECP options */
3059 //#define MBEDTLS_ECP_WINDOW_SIZE 4 /**< Maximum window size used */
3060 //#define MBEDTLS_ECP_FIXED_POINT_OPTIM 1 /**< Enable fixed-point speed-up */
3061 
3062 /* Entropy options */
3063 //#define MBEDTLS_ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
3064 //#define MBEDTLS_ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
3065 //#define MBEDTLS_ENTROPY_MIN_HARDWARE 32 /**< Default minimum number of bytes required for the hardware entropy source mbedtls_hardware_poll() before entropy is released */
3066 
3067 /* Memory buffer allocator options */
3068 //#define MBEDTLS_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */
3069 
3070 /* Platform options */
3071 //#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. */
3072 //#define MBEDTLS_PLATFORM_STD_CALLOC calloc /**< Default allocator to use, can be undefined */
3073 //#define MBEDTLS_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */
3074 //#define MBEDTLS_PLATFORM_STD_EXIT exit /**< Default exit to use, can be undefined */
3075 //#define MBEDTLS_PLATFORM_STD_TIME time /**< Default time to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3076 //#define MBEDTLS_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */
3077 //#define MBEDTLS_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */
3078 /* Note: your snprintf must correctly zero-terminate the buffer! */
3079 //#define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< Default snprintf to use, can be undefined */
3080 //#define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS 0 /**< Default exit value to use, can be undefined */
3081 //#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE 1 /**< Default exit value to use, can be undefined */
3082 //#define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
3083 //#define MBEDTLS_PLATFORM_STD_NV_SEED_WRITE mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
3084 //#define MBEDTLS_PLATFORM_STD_NV_SEED_FILE "seedfile" /**< Seed file to read/write with default implementation */
3085 
3086 /* To Use Function Macros MBEDTLS_PLATFORM_C must be enabled */
3087 /* MBEDTLS_PLATFORM_XXX_MACRO and MBEDTLS_PLATFORM_XXX_ALT cannot both be defined */
3088 //#define MBEDTLS_PLATFORM_CALLOC_MACRO calloc /**< Default allocator macro to use, can be undefined */
3089 //#define MBEDTLS_PLATFORM_FREE_MACRO free /**< Default free macro to use, can be undefined */
3090 //#define MBEDTLS_PLATFORM_EXIT_MACRO exit /**< Default exit macro to use, can be undefined */
3091 //#define MBEDTLS_PLATFORM_TIME_MACRO time /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3092 //#define MBEDTLS_PLATFORM_TIME_TYPE_MACRO time_t /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3093 //#define MBEDTLS_PLATFORM_FPRINTF_MACRO fprintf /**< Default fprintf macro to use, can be undefined */
3094 //#define MBEDTLS_PLATFORM_PRINTF_MACRO printf /**< Default printf macro to use, can be undefined */
3095 /* Note: your snprintf must correctly zero-terminate the buffer! */
3096 //#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf /**< Default snprintf macro to use, can be undefined */
3097 //#define MBEDTLS_PLATFORM_VSNPRINTF_MACRO vsnprintf /**< Default vsnprintf macro to use, can be undefined */
3098 //#define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
3099 //#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
3100 
3114 //#define MBEDTLS_CHECK_RETURN __attribute__((__warn_unused_result__))
3115 
3122 //#define MBEDTLS_IGNORE_RETURN( result ) ((void) !(result))
3123 
3124 /* PSA options */
3135 //#define MBEDTLS_PSA_HMAC_DRBG_MD_TYPE MBEDTLS_MD_SHA256
3136 
3146 //#define MBEDTLS_PSA_KEY_SLOT_COUNT 32
3147 
3148 /* SSL Cache options */
3149 //#define MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
3150 //#define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
3151 
3152 /* SSL options */
3153 
3173 //#define MBEDTLS_SSL_IN_CONTENT_LEN 16384
3174 
3180 //#define MBEDTLS_SSL_CID_IN_LEN_MAX 32
3181 
3187 //#define MBEDTLS_SSL_CID_OUT_LEN_MAX 32
3188 
3203 //#define MBEDTLS_SSL_CID_TLS1_3_PADDING_GRANULARITY 16
3204 
3223 //#define MBEDTLS_SSL_OUT_CONTENT_LEN 16384
3224 
3240 //#define MBEDTLS_SSL_DTLS_MAX_BUFFERING 32768
3241 
3242 //#define MBEDTLS_PSK_MAX_LEN 32 /**< Max size of TLS pre-shared keys, in bytes (default 256 bits) */
3243 //#define MBEDTLS_SSL_COOKIE_TIMEOUT 60 /**< Default expiration delay of DTLS cookies, in seconds if HAVE_TIME, or in number of cookies issued */
3244 
3254 //#define MBEDTLS_TLS_EXT_CID 254
3255 
3268 //#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
3269 
3270 /* X509 options */
3271 //#define MBEDTLS_X509_MAX_INTERMEDIATE_CA 8 /**< Maximum number of intermediate CAs in a verification chain. */
3272 //#define MBEDTLS_X509_MAX_FILE_PATH_LEN 512 /**< Maximum length of a path/filename string in bytes including the null terminator character ('\0'). */
3273 
3292 //#define MBEDTLS_PLATFORM_ZEROIZE_ALT
3293 
3311 //#define MBEDTLS_PLATFORM_GMTIME_R_ALT
3312 
3320 //#define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
3321 
3322 /* \} name SECTION: Customisation configuration options */