Go to the documentation of this file.
35 #ifndef NOOS_MBEDTLS_CONFIG_H
36 #define NOOS_MBEDTLS_CONFIG_H
48 #define MBEDTLS_DEBUG_C
49 #define MBEDTLS_ERROR_C
66 #define ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256
71 #define ENABLE_ECP_DP_SECP256R1_ENABLED
79 #define ENABLE_PEM_CERT
94 #define ENABLE_MEMORY_OPTIMIZATIONS
102 #define MBEDTLS_NO_PLATFORM_ENTROPY
104 #define MBEDTLS_SSL_TLS_C
106 #define MBEDTLS_SSL_CLI_C
112 #define MBEDTLS_SSL_CIPHERSUITES \
113 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,\
114 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,\
115 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,\
116 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,\
117 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
123 #ifdef MAX_CONTENT_LEN
124 #define MBEDTLS_SSL_MAX_CONTENT_LEN MAX_CONTENT_LEN
129 #define MBEDTLS_SSL_PROTO_TLS1_2
132 #if (defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384) || \
133 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_256_CBC_SHA) || \
134 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256) || \
135 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_CBC_SHA256) || \
136 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_CBC_SHA) )
139 #define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
144 #ifdef ENABLE_MEMORY_OPTIMIZATIONS
146 #define MBEDTLS_AES_ROM_TABLES
147 #define MBEDTLS_ECP_WINDOW_SIZE 2
151 #ifdef ENABLE_PEM_CERT
153 #define MBEDTLS_BASE64_C
154 #define MBEDTLS_PEM_PARSE_C
163 #ifdef MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
165 #define MBEDTLS_RSA_C
166 #define MBEDTLS_BIGNUM_C
167 #define MBEDTLS_OID_C
168 #define MBEDTLS_ECDH_C
169 #define MBEDTLS_ECP_C
171 #define MBEDTLS_PK_PARSE_C
172 #define MBEDTLS_PKCS1_V15
173 #define MBEDTLS_ASN1_PARSE_C
174 #define MBEDTLS_X509_USE_C
175 #define MBEDTLS_X509_CRT_PARSE_C
177 #ifdef ENABLE_ECP_DP_SECP256R1_ENABLED
178 #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
180 #ifdef ENABLE_ECP_DP_SECP384R1_ENABLED
181 #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
186 #ifdef MBEDTLS_SSL_TLS_C
188 #define MBEDTLS_CIPHER_C
191 #if (defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384) ||\
192 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_256_CBC_SHA) ||\
193 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_CBC_SHA) ||\
194 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256) ||\
195 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_CBC_SHA256) )
197 # define MBEDTLS_AES_C
199 # if (defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_256_CBC_SHA) || \
200 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_CBC_SHA) || \
201 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_CBC_SHA256) )
202 # define MBEDTLS_CIPHER_MODE_CBC
203 # if defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_CBC_SHA256)
204 # define MBEDTLS_SHA256_C
206 # if (defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_256_CBC_SHA) || \
207 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_CBC_SHA))
208 # define MBEDTLS_SHA1_C
212 # if (defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256) || \
213 defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384))
214 # define MBEDTLS_GCM_C
215 # if (defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256))
216 # define MBEDTLS_SHA256_C
218 # if (defined(ENABLE_CHIPERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384))
219 # define MBEDTLS_SHA512_C
225 #ifdef MBEDTLS_SSL_PROTO_TLS1_2
226 #if (!defined(MBEDTLS_SHA512_C) && !defined(MBEDTLS_SHA256_C) &&\
227 !defined(MBEDTLS_SHA1_C))
228 #define MBEDTLS_SHA256_C
233 #include "mbedtls/check_config.h"