27#ifndef MBEDTLS_CONFIG_H
29#include "platform/inc/platform_mbed.h"
35#if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && !defined(MBEDTLS_TEST_NULL_ENTROPY) && \
36 !defined(MBEDTLS_ENTROPY_NV_SEED)
39#if defined(MBEDTLS_USER_CONFIG_FILE)
40#include MBEDTLS_USER_CONFIG_FILE
44#define MBEDTLS_CONFIG_H
46#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
47#define _CRT_SECURE_NO_DEPRECATE 1
75#define MBEDTLS_HAVE_ASM
149#define MBEDTLS_HAVE_TIME
590#define MBEDTLS_AES_ROM_TABLES
628#define MBEDTLS_CIPHER_MODE_CBC
702#define MBEDTLS_CIPHER_PADDING_PKCS7
743#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES
763#define MBEDTLS_REMOVE_3DES_CIPHERSUITES
776#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
777#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
786#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
787#define MBEDTLS_ECP_DP_CURVE448_ENABLED
798#define MBEDTLS_ECP_NIST_OPTIM
873#define MBEDTLS_ECDH_LEGACY_CONTEXT
887#define MBEDTLS_ECDSA_DETERMINISTIC
909#define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
960#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
1071#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
1095#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
1191#define MBEDTLS_ERROR_STRERROR_DUMMY
1207#define MBEDTLS_FS_IO
1231#define MBEDTLS_NO_PLATFORM_ENTROPY
1321#define MBEDTLS_PK_RSA_ALT_SUPPORT
1332#define MBEDTLS_PKCS1_V15
1343#define MBEDTLS_PKCS1_V21
1399#define MBEDTLS_SELF_TEST
1451#define MBEDTLS_SSL_ALL_ALERT_MESSAGES
1465#define MBEDTLS_SSL_RECORD_CHECKING
1531#define MBEDTLS_SSL_CONTEXT_SERIALIZATION
1565#define MBEDTLS_SSL_ENCRYPT_THEN_MAC
1583#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET
1623#define MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
1670#define MBEDTLS_SSL_RENEGOTIATION
1702#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
1753#define MBEDTLS_SSL_PROTO_TLS1_2
1787#define MBEDTLS_SSL_PROTO_DTLS
1796#define MBEDTLS_SSL_ALPN
1811#define MBEDTLS_SSL_DTLS_ANTI_REPLAY
1829#define MBEDTLS_SSL_DTLS_HELLO_VERIFY
1876#define MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
1887#define MBEDTLS_SSL_DTLS_BADMAC_LIMIT
1901#define MBEDTLS_SSL_SESSION_TICKETS
1911#define MBEDTLS_SSL_EXPORT_KEYS
1922#define MBEDTLS_SSL_SERVER_NAME_INDICATION
2098#define MBEDTLS_VERSION_FEATURES
2153#define MBEDTLS_X509_CHECK_KEY_USAGE
2166#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE
2298#define MBEDTLS_AES_C
2340#define MBEDTLS_ASN1_PARSE_C
2354#define MBEDTLS_ASN1_WRITE_C
2366#define MBEDTLS_BASE64_C
2383#define MBEDTLS_BIGNUM_C
2513#define MBEDTLS_CCM_C
2525#define MBEDTLS_CERTS_C
2534#define MBEDTLS_CHACHA20_C
2545#define MBEDTLS_CHACHAPOLY_C
2557#define MBEDTLS_CIPHER_C
2570#define MBEDTLS_CMAC_C
2590#define MBEDTLS_CTR_DRBG_C
2604#define MBEDTLS_DEBUG_C
2670#define MBEDTLS_ECDH_C
2687#define MBEDTLS_ECDSA_C
2720#define MBEDTLS_ECP_C
2734#define MBEDTLS_ENTROPY_C
2746#define MBEDTLS_ERROR_C
2760#define MBEDTLS_GCM_C
2798#define MBEDTLS_HKDF_C
2812#define MBEDTLS_HMAC_DRBG_C
2951#define MBEDTLS_OID_C
2983#define MBEDTLS_PEM_PARSE_C
3030#define MBEDTLS_PK_PARSE_C
3044#define MBEDTLS_PK_WRITE_C
3111#define MBEDTLS_PLATFORM_C
3121#define MBEDTLS_POLY1305_C
3137#define MBEDTLS_PSA_CRYPTO_C
3208#define MBEDTLS_RSA_C
3230#define MBEDTLS_SHA1_C
3247#define MBEDTLS_SHA256_C
3262#define MBEDTLS_SHA512_C
3274#define MBEDTLS_SSL_CACHE_C
3284#define MBEDTLS_SSL_COOKIE_C
3296#define MBEDTLS_SSL_TICKET_C
3310#define MBEDTLS_SSL_CLI_C
3324#define MBEDTLS_SSL_SRV_C
3340#define MBEDTLS_SSL_TLS_C
3396#define MBEDTLS_VERSION_C
3413#define MBEDTLS_X509_USE_C
3429#define MBEDTLS_X509_CRT_PARSE_C
3443#define MBEDTLS_X509_CRL_PARSE_C
3527#define MBEDTLS_MPI_MAX_SIZE 512
3818#define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE
3875#if defined(MBEDTLS_USER_CONFIG_FILE)
3876#include MBEDTLS_USER_CONFIG_FILE
3879#if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
3888#if defined(MBEDTLS_TEST_NULL_ENTROPY)
3889#warning "MBEDTLS_TEST_NULL_ENTROPY has been enabled. This " \
3890 "configuration is not secure and is not suitable for production use"
3893#if defined(MBEDTLS_SSL_TLS_C) && !defined(MBEDTLS_TEST_NULL_ENTROPY) && \
3894 !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && !defined(MBEDTLS_ENTROPY_NV_SEED)
3895#error "No entropy source was found at build time, so TLS " \
3896 "functionality is not available"
3899#if defined(FEATURE_EXPERIMENTAL_API) && defined(FEATURE_PSA)
3900 #define MBEDTLS_PSA_HAS_ITS_IO
3901 #define MBEDTLS_USE_PSA_CRYPTO
Consistency checks for configuration options.
Minimal configuration of features that do not require an entropy source.
PSA crypto configuration options (set of defines)