28 #ifndef MBEDTLS_CONFIG_H 29 #define MBEDTLS_CONFIG_H 31 #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) 32 #define _CRT_SECURE_NO_DEPRECATE 1 56 #define MBEDTLS_HAVE_ASM 86 #define MBEDTLS_NO_UDBL_DIVISION 97 #define MBEDTLS_HAVE_SSE2 113 #define MBEDTLS_HAVE_TIME 125 #define MBEDTLS_HAVE_TIME_DATE 150 #define MBEDTLS_PLATFORM_MEMORY 171 #define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS 198 #define MBEDTLS_PLATFORM_EXIT_ALT 199 #define MBEDTLS_PLATFORM_TIME_ALT 200 #define MBEDTLS_PLATFORM_FPRINTF_ALT 201 #define MBEDTLS_PLATFORM_PRINTF_ALT 202 #define MBEDTLS_PLATFORM_SNPRINTF_ALT 203 #define MBEDTLS_PLATFORM_NV_SEED_ALT 204 #define MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT 221 #define MBEDTLS_DEPRECATED_WARNING 235 #define MBEDTLS_DEPRECATED_REMOVED 260 #define MBEDTLS_TIMING_ALT 283 #define MBEDTLS_AES_ALT 284 #define MBEDTLS_ARC4_ALT 285 #define MBEDTLS_BLOWFISH_ALT 286 #define MBEDTLS_CAMELLIA_ALT 287 #define MBEDTLS_DES_ALT 288 #define MBEDTLS_XTEA_ALT 289 #define MBEDTLS_MD2_ALT 290 #define MBEDTLS_MD4_ALT 291 #define MBEDTLS_MD5_ALT 292 #define MBEDTLS_RIPEMD160_ALT 293 #define MBEDTLS_SHA1_ALT 294 #define MBEDTLS_SHA256_ALT 295 #define MBEDTLS_SHA512_ALT 307 #define MBEDTLS_ECP_ALT 340 #define MBEDTLS_MD2_PROCESS_ALT 341 #define MBEDTLS_MD4_PROCESS_ALT 342 #define MBEDTLS_MD5_PROCESS_ALT 343 #define MBEDTLS_RIPEMD160_PROCESS_ALT 344 #define MBEDTLS_SHA1_PROCESS_ALT 345 #define MBEDTLS_SHA256_PROCESS_ALT 346 #define MBEDTLS_SHA512_PROCESS_ALT 347 #define MBEDTLS_DES_SETKEY_ALT 348 #define MBEDTLS_DES_CRYPT_ECB_ALT 349 #define MBEDTLS_DES3_CRYPT_ECB_ALT 350 #define MBEDTLS_AES_SETKEY_ENC_ALT 351 #define MBEDTLS_AES_SETKEY_DEC_ALT 352 #define MBEDTLS_AES_ENCRYPT_ALT 353 #define MBEDTLS_AES_DECRYPT_ALT 398 #define MBEDTLS_ECP_INTERNAL_ALT 402 #define MBEDTLS_ECP_RANDOMIZE_JAC_ALT 403 #define MBEDTLS_ECP_ADD_MIXED_ALT 404 #define MBEDTLS_ECP_DOUBLE_JAC_ALT 405 #define MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT 406 #define MBEDTLS_ECP_NORMALIZE_JAC_ALT 410 #define MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT 411 #define MBEDTLS_ECP_RANDOMIZE_MXZ_ALT 412 #define MBEDTLS_ECP_NORMALIZE_MXZ_ALT 431 #define MBEDTLS_TEST_NULL_ENTROPY 446 #define MBEDTLS_ENTROPY_HARDWARE_ALT 457 #define MBEDTLS_AES_ROM_TABLES 468 #define MBEDTLS_CAMELLIA_SMALL_MEMORY 476 #define MBEDTLS_CIPHER_MODE_CBC 483 #define MBEDTLS_CIPHER_MODE_CFB 490 #define MBEDTLS_CIPHER_MODE_CTR 524 #define MBEDTLS_CIPHER_NULL_CIPHER 538 #define MBEDTLS_CIPHER_PADDING_PKCS7 539 #define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS 540 #define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN 541 #define MBEDTLS_CIPHER_PADDING_ZEROS 557 #define MBEDTLS_ENABLE_WEAK_CIPHERSUITES 571 #define MBEDTLS_REMOVE_ARC4_CIPHERSUITES 581 #define MBEDTLS_ECP_DP_SECP192R1_ENABLED 582 #define MBEDTLS_ECP_DP_SECP224R1_ENABLED 583 #define MBEDTLS_ECP_DP_SECP256R1_ENABLED 584 #define MBEDTLS_ECP_DP_SECP384R1_ENABLED 585 #define MBEDTLS_ECP_DP_SECP521R1_ENABLED 586 #define MBEDTLS_ECP_DP_SECP192K1_ENABLED 587 #define MBEDTLS_ECP_DP_SECP224K1_ENABLED 588 #define MBEDTLS_ECP_DP_SECP256K1_ENABLED 589 #define MBEDTLS_ECP_DP_BP256R1_ENABLED 590 #define MBEDTLS_ECP_DP_BP384R1_ENABLED 591 #define MBEDTLS_ECP_DP_BP512R1_ENABLED 592 #define MBEDTLS_ECP_DP_CURVE25519_ENABLED 603 #define MBEDTLS_ECP_NIST_OPTIM 617 #define MBEDTLS_ECDSA_DETERMINISTIC 639 #define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED 663 #define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED 683 #define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED 708 #define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED 736 #define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED 762 #define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED 787 #define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED 811 #define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED 835 #define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED 859 #define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED 879 #define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED 894 #define MBEDTLS_PK_PARSE_EC_EXTENDED 909 #define MBEDTLS_ERROR_STRERROR_DUMMY 918 #define MBEDTLS_GENPRIME 925 #define MBEDTLS_FS_IO 939 #define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES 952 #define MBEDTLS_NO_PLATFORM_ENTROPY 970 #define MBEDTLS_ENTROPY_FORCE_SHA256 1000 #define MBEDTLS_ENTROPY_NV_SEED 1015 #define MBEDTLS_MEMORY_DEBUG 1029 #define MBEDTLS_MEMORY_BACKTRACE 1039 #define MBEDTLS_PK_RSA_ALT_SUPPORT 1050 #define MBEDTLS_PKCS1_V15 1061 #define MBEDTLS_PKCS1_V21 1072 #define MBEDTLS_RSA_NO_CRT 1080 #define MBEDTLS_SELF_TEST 1097 #define MBEDTLS_SHA256_SMALLER 1112 #define MBEDTLS_SSL_ALL_ALERT_MESSAGES 1129 #define MBEDTLS_SSL_DEBUG_ALL 1148 #define MBEDTLS_SSL_ENCRYPT_THEN_MAC 1166 #define MBEDTLS_SSL_EXTENDED_MASTER_SECRET 1183 #define MBEDTLS_SSL_FALLBACK_SCSV 1194 #define MBEDTLS_SSL_HW_RECORD_ACCEL 1207 #define MBEDTLS_SSL_CBC_RECORD_SPLITTING 1222 #define MBEDTLS_SSL_RENEGOTIATION 1233 #define MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO 1245 #define MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE 1255 #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH 1268 #define MBEDTLS_SSL_PROTO_SSL3 1281 #define MBEDTLS_SSL_PROTO_TLS1 1293 #define MBEDTLS_SSL_PROTO_TLS1_1 1305 #define MBEDTLS_SSL_PROTO_TLS1_2 1320 #define MBEDTLS_SSL_PROTO_DTLS 1329 #define MBEDTLS_SSL_ALPN 1344 #define MBEDTLS_SSL_DTLS_ANTI_REPLAY 1362 #define MBEDTLS_SSL_DTLS_HELLO_VERIFY 1378 #define MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE 1389 #define MBEDTLS_SSL_DTLS_BADMAC_LIMIT 1403 #define MBEDTLS_SSL_SESSION_TICKETS 1413 #define MBEDTLS_SSL_EXPORT_KEYS 1424 #define MBEDTLS_SSL_SERVER_NAME_INDICATION 1433 #define MBEDTLS_SSL_TRUNCATED_HMAC 1445 #define MBEDTLS_THREADING_ALT 1458 #define MBEDTLS_THREADING_PTHREAD 1472 #define MBEDTLS_VERSION_FEATURES 1483 #define MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 1497 #define MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION 1512 #define MBEDTLS_X509_CHECK_KEY_USAGE 1525 #define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE 1535 #define MBEDTLS_X509_RSASSA_PSS_SUPPORT 1558 #define MBEDTLS_ZLIB_SUPPORT 1581 #define MBEDTLS_AESNI_C 1656 #define MBEDTLS_AES_C 1679 #define MBEDTLS_ARC4_C 1693 #define MBEDTLS_ASN1_PARSE_C 1707 #define MBEDTLS_ASN1_WRITE_C 1719 #define MBEDTLS_BASE64_C 1735 #define MBEDTLS_BIGNUM_C 1744 #define MBEDTLS_BLOWFISH_C 1799 #define MBEDTLS_CAMELLIA_C 1813 #define MBEDTLS_CCM_C 1825 #define MBEDTLS_CERTS_C 1837 #define MBEDTLS_CIPHER_C 1851 #define MBEDTLS_CMAC_C 1866 #define MBEDTLS_CTR_DRBG_C 1880 #define MBEDTLS_DEBUG_C 1906 #define MBEDTLS_DES_C 1920 #define MBEDTLS_DHM_C 1936 #define MBEDTLS_ECDH_C 1951 #define MBEDTLS_ECDSA_C 1971 #define MBEDTLS_ECJPAKE_C 1986 #define MBEDTLS_ECP_C 2000 #define MBEDTLS_ENTROPY_C 2012 #define MBEDTLS_ERROR_C 2026 #define MBEDTLS_GCM_C 2050 #define MBEDTLS_HAVEGE_C 2065 #define MBEDTLS_HMAC_DRBG_C 2077 #define MBEDTLS_MD_C 2090 #define MBEDTLS_MD2_C 2104 #define MBEDTLS_MD4_C 2120 #define MBEDTLS_MD5_C 2137 #define MBEDTLS_MEMORY_BUFFER_ALLOC_C 2157 #define MBEDTLS_NET_C 2180 #define MBEDTLS_OID_C 2194 #define MBEDTLS_PADLOCK_C 2212 #define MBEDTLS_PEM_PARSE_C 2228 #define MBEDTLS_PEM_WRITE_C 2244 #define MBEDTLS_PK_C 2259 #define MBEDTLS_PK_PARSE_C 2273 #define MBEDTLS_PK_WRITE_C 2286 #define MBEDTLS_PKCS5_C 2302 #define MBEDTLS_PKCS11_C 2319 #define MBEDTLS_PKCS12_C 2339 #define MBEDTLS_PLATFORM_C 2350 #define MBEDTLS_RIPEMD160_C 2368 #define MBEDTLS_RSA_C 2385 #define MBEDTLS_SHA1_C 2402 #define MBEDTLS_SHA256_C 2417 #define MBEDTLS_SHA512_C 2429 #define MBEDTLS_SSL_CACHE_C 2439 #define MBEDTLS_SSL_COOKIE_C 2451 #define MBEDTLS_SSL_TICKET_C 2465 #define MBEDTLS_SSL_CLI_C 2479 #define MBEDTLS_SSL_SRV_C 2495 #define MBEDTLS_SSL_TLS_C 2518 #define MBEDTLS_THREADING_C 2542 #define MBEDTLS_TIMING_C 2553 #define MBEDTLS_VERSION_C 2570 #define MBEDTLS_X509_USE_C 2586 #define MBEDTLS_X509_CRT_PARSE_C 2600 #define MBEDTLS_X509_CRL_PARSE_C 2614 #define MBEDTLS_X509_CSR_PARSE_C 2627 #define MBEDTLS_X509_CREATE_C 2640 #define MBEDTLS_X509_CRT_WRITE_C 2653 #define MBEDTLS_X509_CSR_WRITE_C 2663 #define MBEDTLS_XTEA_C 2684 #define MBEDTLS_MPI_WINDOW_SIZE 6 2685 #define MBEDTLS_MPI_MAX_SIZE 1024 2690 #define MBEDTLS_CTR_DRBG_ENTROPY_LEN 48 2691 #define MBEDTLS_CTR_DRBG_RESEED_INTERVAL 10000 2692 #define MBEDTLS_CTR_DRBG_MAX_INPUT 256 2693 #define MBEDTLS_CTR_DRBG_MAX_REQUEST 1024 2694 #define MBEDTLS_CTR_DRBG_MAX_SEED_INPUT 384 2699 #define MBEDTLS_HMAC_DRBG_RESEED_INTERVAL 10000 2700 #define MBEDTLS_HMAC_DRBG_MAX_INPUT 256 2701 #define MBEDTLS_HMAC_DRBG_MAX_REQUEST 1024 2702 #define MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT 384 2707 #define MBEDTLS_ECP_MAX_BITS 521 2708 #define MBEDTLS_ECP_WINDOW_SIZE 6 2709 #define MBEDTLS_ECP_FIXED_POINT_OPTIM 1 2714 #define MBEDTLS_ENTROPY_MAX_SOURCES 20 2715 #define MBEDTLS_ENTROPY_MAX_GATHER 128 2716 #define MBEDTLS_ENTROPY_MIN_HARDWARE 32 2721 #define MBEDTLS_MEMORY_ALIGN_MULTIPLE 4 2726 #define MBEDTLS_PLATFORM_STD_MEM_HDR <stdlib.h> 2727 #define MBEDTLS_PLATFORM_STD_CALLOC calloc 2728 #define MBEDTLS_PLATFORM_STD_FREE free 2729 #define MBEDTLS_PLATFORM_STD_EXIT exit 2730 #define MBEDTLS_PLATFORM_STD_TIME time 2731 #define MBEDTLS_PLATFORM_STD_FPRINTF fprintf 2732 #define MBEDTLS_PLATFORM_STD_PRINTF printf 2734 #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf 2735 #define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS 0 2736 #define MBEDTLS_PLATFORM_STD_EXIT_FAILURE 1 2737 #define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read 2738 #define MBEDTLS_PLATFORM_STD_NV_SEED_WRITE mbedtls_platform_std_nv_seed_write 2739 #define MBEDTLS_PLATFORM_STD_NV_SEED_FILE "seedfile" 2745 #define MBEDTLS_PLATFORM_CALLOC_MACRO calloc 2746 #define MBEDTLS_PLATFORM_FREE_MACRO free 2747 #define MBEDTLS_PLATFORM_EXIT_MACRO exit 2748 #define MBEDTLS_PLATFORM_TIME_MACRO time 2749 #define MBEDTLS_PLATFORM_TIME_TYPE_MACRO time_t 2750 #define MBEDTLS_PLATFORM_FPRINTF_MACRO fprintf 2751 #define MBEDTLS_PLATFORM_PRINTF_MACRO printf 2753 #define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf 2754 #define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbedtls_platform_std_nv_seed_read 2755 #define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbedtls_platform_std_nv_seed_write 2760 #define MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT 86400 2761 #define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 2766 #define MBEDTLS_SSL_MAX_CONTENT_LEN 16384 2767 #define MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME 86400 2768 #define MBEDTLS_PSK_MAX_LEN 32 2769 #define MBEDTLS_SSL_COOKIE_TIMEOUT 60 2785 #define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 2790 #define MBEDTLS_X509_MAX_INTERMEDIATE_CA 8 2791 #define MBEDTLS_X509_MAX_FILE_PATH_LEN 512 2802 #define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES 2814 #define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE 2820 #define YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE "mbedtls/target_config.h" 2823 #if defined(TARGET_LIKE_MBED) && defined(YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE) 2824 #include YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE 2834 #if defined(YOTTA_CFG_MBEDTLS_USER_CONFIG_FILE) 2835 #include YOTTA_CFG_MBEDTLS_USER_CONFIG_FILE 2836 #elif defined(MBEDTLS_USER_CONFIG_FILE) 2837 #include MBEDTLS_USER_CONFIG_FILE Consistency checks for configuration options.