Toyomasa Watarai / simple-mbed-cloud-client

Dependents:  

Committer:
MACRUM
Date:
Mon Jul 02 06:30:39 2018 +0000
Revision:
0:276e7a263c35
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MACRUM 0:276e7a263c35 1 /**
MACRUM 0:276e7a263c35 2 * \file config.h
MACRUM 0:276e7a263c35 3 *
MACRUM 0:276e7a263c35 4 * \brief Configuration options (set of defines)
MACRUM 0:276e7a263c35 5 *
MACRUM 0:276e7a263c35 6 * This set of compile-time options may be used to enable
MACRUM 0:276e7a263c35 7 * or disable features selectively, and reduce the global
MACRUM 0:276e7a263c35 8 * memory footprint.
MACRUM 0:276e7a263c35 9 *
MACRUM 0:276e7a263c35 10 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
MACRUM 0:276e7a263c35 11 * SPDX-License-Identifier: Apache-2.0
MACRUM 0:276e7a263c35 12 *
MACRUM 0:276e7a263c35 13 * Licensed under the Apache License, Version 2.0 (the "License"); you may
MACRUM 0:276e7a263c35 14 * not use this file except in compliance with the License.
MACRUM 0:276e7a263c35 15 * You may obtain a copy of the License at
MACRUM 0:276e7a263c35 16 *
MACRUM 0:276e7a263c35 17 * http://www.apache.org/licenses/LICENSE-2.0
MACRUM 0:276e7a263c35 18 *
MACRUM 0:276e7a263c35 19 * Unless required by applicable law or agreed to in writing, software
MACRUM 0:276e7a263c35 20 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
MACRUM 0:276e7a263c35 21 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
MACRUM 0:276e7a263c35 22 * See the License for the specific language governing permissions and
MACRUM 0:276e7a263c35 23 * limitations under the License.
MACRUM 0:276e7a263c35 24 *
MACRUM 0:276e7a263c35 25 * This file is part of mbed TLS (https://tls.mbed.org)
MACRUM 0:276e7a263c35 26 */
MACRUM 0:276e7a263c35 27
MACRUM 0:276e7a263c35 28 #ifndef MBEDTLS_CONFIG_H
MACRUM 0:276e7a263c35 29 #define MBEDTLS_CONFIG_H
MACRUM 0:276e7a263c35 30
MACRUM 0:276e7a263c35 31
MACRUM 0:276e7a263c35 32 #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
MACRUM 0:276e7a263c35 33 #define _CRT_SECURE_NO_DEPRECATE 1
MACRUM 0:276e7a263c35 34 #endif
MACRUM 0:276e7a263c35 35
MACRUM 0:276e7a263c35 36 /**
MACRUM 0:276e7a263c35 37 * \name SECTION: System support
MACRUM 0:276e7a263c35 38 *
MACRUM 0:276e7a263c35 39 * This section sets system specific settings.
MACRUM 0:276e7a263c35 40 * \{
MACRUM 0:276e7a263c35 41 */
MACRUM 0:276e7a263c35 42 #if 1 //Please set to 1 if you are using secure time
MACRUM 0:276e7a263c35 43 /**
MACRUM 0:276e7a263c35 44 * \def MBEDTLS_HAVE_ASM
MACRUM 0:276e7a263c35 45 *
MACRUM 0:276e7a263c35 46 * The compiler has support for asm().
MACRUM 0:276e7a263c35 47 *
MACRUM 0:276e7a263c35 48 * Requires support for asm() in compiler.
MACRUM 0:276e7a263c35 49 *
MACRUM 0:276e7a263c35 50 * Used in:
MACRUM 0:276e7a263c35 51 * library/timing.c
MACRUM 0:276e7a263c35 52 * library/padlock.c
MACRUM 0:276e7a263c35 53 * include/mbedtls/bn_mul.h
MACRUM 0:276e7a263c35 54 *
MACRUM 0:276e7a263c35 55 * Comment to disable the use of assembly code.
MACRUM 0:276e7a263c35 56 */
MACRUM 0:276e7a263c35 57 #define MBEDTLS_HAVE_ASM
MACRUM 0:276e7a263c35 58
MACRUM 0:276e7a263c35 59 /**
MACRUM 0:276e7a263c35 60 * \def MBEDTLS_HAVE_SSE2
MACRUM 0:276e7a263c35 61 *
MACRUM 0:276e7a263c35 62 * CPU supports SSE2 instruction set.
MACRUM 0:276e7a263c35 63 *
MACRUM 0:276e7a263c35 64 * Uncomment if the CPU supports SSE2 (IA-32 specific).
MACRUM 0:276e7a263c35 65 */
MACRUM 0:276e7a263c35 66 //#define MBEDTLS_HAVE_SSE2
MACRUM 0:276e7a263c35 67
MACRUM 0:276e7a263c35 68 /**
MACRUM 0:276e7a263c35 69 * \def MBEDTLS_HAVE_TIME
MACRUM 0:276e7a263c35 70 *
MACRUM 0:276e7a263c35 71 * System has time.h and time().
MACRUM 0:276e7a263c35 72 * The time does not need to be correct, only time differences are used,
MACRUM 0:276e7a263c35 73 * by contrast with MBEDTLS_HAVE_TIME_DATE
MACRUM 0:276e7a263c35 74 *
MACRUM 0:276e7a263c35 75 * Defining MBEDTLS_HAVE_TIME allows you to specify MBEDTLS_PLATFORM_TIME_ALT,
MACRUM 0:276e7a263c35 76 * MBEDTLS_PLATFORM_TIME_MACRO, MBEDTLS_PLATFORM_TIME_TYPE_MACRO and
MACRUM 0:276e7a263c35 77 * MBEDTLS_PLATFORM_STD_TIME.
MACRUM 0:276e7a263c35 78 *
MACRUM 0:276e7a263c35 79 * Comment if your system does not support time functions
MACRUM 0:276e7a263c35 80 */
MACRUM 0:276e7a263c35 81 #define MBEDTLS_HAVE_TIME
MACRUM 0:276e7a263c35 82
MACRUM 0:276e7a263c35 83 /**
MACRUM 0:276e7a263c35 84 * \def MBEDTLS_HAVE_TIME_DATE
MACRUM 0:276e7a263c35 85 *
MACRUM 0:276e7a263c35 86 * System has time.h and time(), gmtime() and the clock is correct.
MACRUM 0:276e7a263c35 87 * The time needs to be correct (not necesarily very accurate, but at least
MACRUM 0:276e7a263c35 88 * the date should be correct). This is used to verify the validity period of
MACRUM 0:276e7a263c35 89 * X.509 certificates.
MACRUM 0:276e7a263c35 90 *
MACRUM 0:276e7a263c35 91 * Comment if your system does not have a correct clock.
MACRUM 0:276e7a263c35 92 */
MACRUM 0:276e7a263c35 93 #define MBEDTLS_HAVE_TIME_DATE
MACRUM 0:276e7a263c35 94
MACRUM 0:276e7a263c35 95 /**
MACRUM 0:276e7a263c35 96 * \def MBEDTLS_PLATFORM_MEMORY
MACRUM 0:276e7a263c35 97 *
MACRUM 0:276e7a263c35 98 * Enable the memory allocation layer.
MACRUM 0:276e7a263c35 99 *
MACRUM 0:276e7a263c35 100 * By default mbed TLS uses the system-provided calloc() and free().
MACRUM 0:276e7a263c35 101 * This allows different allocators (self-implemented or provided) to be
MACRUM 0:276e7a263c35 102 * provided to the platform abstraction layer.
MACRUM 0:276e7a263c35 103 *
MACRUM 0:276e7a263c35 104 * Enabling MBEDTLS_PLATFORM_MEMORY without the
MACRUM 0:276e7a263c35 105 * MBEDTLS_PLATFORM_{FREE,CALLOC}_MACROs will provide
MACRUM 0:276e7a263c35 106 * "mbedtls_platform_set_calloc_free()" allowing you to set an alternative calloc() and
MACRUM 0:276e7a263c35 107 * free() function pointer at runtime.
MACRUM 0:276e7a263c35 108 *
MACRUM 0:276e7a263c35 109 * Enabling MBEDTLS_PLATFORM_MEMORY and specifying
MACRUM 0:276e7a263c35 110 * MBEDTLS_PLATFORM_{CALLOC,FREE}_MACROs will allow you to specify the
MACRUM 0:276e7a263c35 111 * alternate function at compile time.
MACRUM 0:276e7a263c35 112 *
MACRUM 0:276e7a263c35 113 * Requires: MBEDTLS_PLATFORM_C
MACRUM 0:276e7a263c35 114 *
MACRUM 0:276e7a263c35 115 * Enable this layer to allow use of alternative memory allocators.
MACRUM 0:276e7a263c35 116 */
MACRUM 0:276e7a263c35 117 //#define MBEDTLS_PLATFORM_MEMORY
MACRUM 0:276e7a263c35 118
MACRUM 0:276e7a263c35 119 /**
MACRUM 0:276e7a263c35 120 * \def MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
MACRUM 0:276e7a263c35 121 *
MACRUM 0:276e7a263c35 122 * Do not assign standard functions in the platform layer (e.g. calloc() to
MACRUM 0:276e7a263c35 123 * MBEDTLS_PLATFORM_STD_CALLOC and printf() to MBEDTLS_PLATFORM_STD_PRINTF)
MACRUM 0:276e7a263c35 124 *
MACRUM 0:276e7a263c35 125 * This makes sure there are no linking errors on platforms that do not support
MACRUM 0:276e7a263c35 126 * these functions. You will HAVE to provide alternatives, either at runtime
MACRUM 0:276e7a263c35 127 * via the platform_set_xxx() functions or at compile time by setting
MACRUM 0:276e7a263c35 128 * the MBEDTLS_PLATFORM_STD_XXX defines, or enabling a
MACRUM 0:276e7a263c35 129 * MBEDTLS_PLATFORM_XXX_MACRO.
MACRUM 0:276e7a263c35 130 *
MACRUM 0:276e7a263c35 131 * Requires: MBEDTLS_PLATFORM_C
MACRUM 0:276e7a263c35 132 *
MACRUM 0:276e7a263c35 133 * Uncomment to prevent default assignment of standard functions in the
MACRUM 0:276e7a263c35 134 * platform layer.
MACRUM 0:276e7a263c35 135 */
MACRUM 0:276e7a263c35 136 //#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
MACRUM 0:276e7a263c35 137
MACRUM 0:276e7a263c35 138 /**
MACRUM 0:276e7a263c35 139 * \def MBEDTLS_PLATFORM_EXIT_ALT
MACRUM 0:276e7a263c35 140 *
MACRUM 0:276e7a263c35 141 * MBEDTLS_PLATFORM_XXX_ALT: Uncomment a macro to let mbed TLS support the
MACRUM 0:276e7a263c35 142 * function in the platform abstraction layer.
MACRUM 0:276e7a263c35 143 *
MACRUM 0:276e7a263c35 144 * Example: In case you uncomment MBEDTLS_PLATFORM_PRINTF_ALT, mbed TLS will
MACRUM 0:276e7a263c35 145 * provide a function "mbedtls_platform_set_printf()" that allows you to set an
MACRUM 0:276e7a263c35 146 * alternative printf function pointer.
MACRUM 0:276e7a263c35 147 *
MACRUM 0:276e7a263c35 148 * All these define require MBEDTLS_PLATFORM_C to be defined!
MACRUM 0:276e7a263c35 149 *
MACRUM 0:276e7a263c35 150 * \note MBEDTLS_PLATFORM_SNPRINTF_ALT is required on Windows;
MACRUM 0:276e7a263c35 151 * it will be enabled automatically by check_config.h
MACRUM 0:276e7a263c35 152 *
MACRUM 0:276e7a263c35 153 * \warning MBEDTLS_PLATFORM_XXX_ALT cannot be defined at the same time as
MACRUM 0:276e7a263c35 154 * MBEDTLS_PLATFORM_XXX_MACRO!
MACRUM 0:276e7a263c35 155 *
MACRUM 0:276e7a263c35 156 * Requires: MBEDTLS_PLATFORM_TIME_ALT requires MBEDTLS_HAVE_TIME
MACRUM 0:276e7a263c35 157 *
MACRUM 0:276e7a263c35 158 * Uncomment a macro to enable alternate implementation of specific base
MACRUM 0:276e7a263c35 159 * platform function
MACRUM 0:276e7a263c35 160 */
MACRUM 0:276e7a263c35 161 #define MBEDTLS_PLATFORM_TIME_ALT
MACRUM 0:276e7a263c35 162 #endif //0
MACRUM 0:276e7a263c35 163 //#define MBEDTLS_PLATFORM_EXIT_ALT
MACRUM 0:276e7a263c35 164 //#define MBEDTLS_PLATFORM_FPRINTF_ALT
MACRUM 0:276e7a263c35 165 //#define MBEDTLS_PLATFORM_PRINTF_ALT
MACRUM 0:276e7a263c35 166 //#define MBEDTLS_PLATFORM_SNPRINTF_ALT
MACRUM 0:276e7a263c35 167 //#define MBEDTLS_PLATFORM_NV_SEED_ALT
MACRUM 0:276e7a263c35 168
MACRUM 0:276e7a263c35 169 /**
MACRUM 0:276e7a263c35 170 * \def MBEDTLS_DEPRECATED_WARNING
MACRUM 0:276e7a263c35 171 *
MACRUM 0:276e7a263c35 172 * Mark deprecated functions so that they generate a warning if used.
MACRUM 0:276e7a263c35 173 * Functions deprecated in one version will usually be removed in the next
MACRUM 0:276e7a263c35 174 * version. You can enable this to help you prepare the transition to a new
MACRUM 0:276e7a263c35 175 * major version by making sure your code is not using these functions.
MACRUM 0:276e7a263c35 176 *
MACRUM 0:276e7a263c35 177 * This only works with GCC and Clang. With other compilers, you may want to
MACRUM 0:276e7a263c35 178 * use MBEDTLS_DEPRECATED_REMOVED
MACRUM 0:276e7a263c35 179 *
MACRUM 0:276e7a263c35 180 * Uncomment to get warnings on using deprecated functions.
MACRUM 0:276e7a263c35 181 */
MACRUM 0:276e7a263c35 182 //#define MBEDTLS_DEPRECATED_WARNING
MACRUM 0:276e7a263c35 183
MACRUM 0:276e7a263c35 184 /**
MACRUM 0:276e7a263c35 185 * \def MBEDTLS_DEPRECATED_REMOVED
MACRUM 0:276e7a263c35 186 *
MACRUM 0:276e7a263c35 187 * Remove deprecated functions so that they generate an error if used.
MACRUM 0:276e7a263c35 188 * Functions deprecated in one version will usually be removed in the next
MACRUM 0:276e7a263c35 189 * version. You can enable this to help you prepare the transition to a new
MACRUM 0:276e7a263c35 190 * major version by making sure your code is not using these functions.
MACRUM 0:276e7a263c35 191 *
MACRUM 0:276e7a263c35 192 * Uncomment to get errors on using deprecated functions.
MACRUM 0:276e7a263c35 193 */
MACRUM 0:276e7a263c35 194 //#define MBEDTLS_DEPRECATED_REMOVED
MACRUM 0:276e7a263c35 195
MACRUM 0:276e7a263c35 196 /* \} name SECTION: System support */
MACRUM 0:276e7a263c35 197
MACRUM 0:276e7a263c35 198 /**
MACRUM 0:276e7a263c35 199 * \name SECTION: mbed TLS feature support
MACRUM 0:276e7a263c35 200 *
MACRUM 0:276e7a263c35 201 * This section sets support for features that are or are not needed
MACRUM 0:276e7a263c35 202 * within the modules that are enabled.
MACRUM 0:276e7a263c35 203 * \{
MACRUM 0:276e7a263c35 204 */
MACRUM 0:276e7a263c35 205
MACRUM 0:276e7a263c35 206 /**
MACRUM 0:276e7a263c35 207 * \def MBEDTLS_TIMING_ALT
MACRUM 0:276e7a263c35 208 *
MACRUM 0:276e7a263c35 209 * Uncomment to provide your own alternate implementation for mbedtls_timing_hardclock(),
MACRUM 0:276e7a263c35 210 * mbedtls_timing_get_timer(), mbedtls_set_alarm(), mbedtls_set/get_delay()
MACRUM 0:276e7a263c35 211 *
MACRUM 0:276e7a263c35 212 * Only works if you have MBEDTLS_TIMING_C enabled.
MACRUM 0:276e7a263c35 213 *
MACRUM 0:276e7a263c35 214 * You will need to provide a header "timing_alt.h" and an implementation at
MACRUM 0:276e7a263c35 215 * compile time.
MACRUM 0:276e7a263c35 216 */
MACRUM 0:276e7a263c35 217 //#define MBEDTLS_TIMING_ALT
MACRUM 0:276e7a263c35 218
MACRUM 0:276e7a263c35 219 /**
MACRUM 0:276e7a263c35 220 * \def MBEDTLS_AES_ALT
MACRUM 0:276e7a263c35 221 *
MACRUM 0:276e7a263c35 222 * MBEDTLS__MODULE_NAME__ALT: Uncomment a macro to let mbed TLS use your
MACRUM 0:276e7a263c35 223 * alternate core implementation of a symmetric crypto, an arithmetic or hash
MACRUM 0:276e7a263c35 224 * module (e.g. platform specific assembly optimized implementations). Keep
MACRUM 0:276e7a263c35 225 * in mind that the function prototypes should remain the same.
MACRUM 0:276e7a263c35 226 *
MACRUM 0:276e7a263c35 227 * This replaces the whole module. If you only want to replace one of the
MACRUM 0:276e7a263c35 228 * functions, use one of the MBEDTLS__FUNCTION_NAME__ALT flags.
MACRUM 0:276e7a263c35 229 *
MACRUM 0:276e7a263c35 230 * Example: In case you uncomment MBEDTLS_AES_ALT, mbed TLS will no longer
MACRUM 0:276e7a263c35 231 * provide the "struct mbedtls_aes_context" definition and omit the base
MACRUM 0:276e7a263c35 232 * function declarations and implementations. "aes_alt.h" will be included from
MACRUM 0:276e7a263c35 233 * "aes.h" to include the new function definitions.
MACRUM 0:276e7a263c35 234 *
MACRUM 0:276e7a263c35 235 * Uncomment a macro to enable alternate implementation of the corresponding
MACRUM 0:276e7a263c35 236 * module.
MACRUM 0:276e7a263c35 237 */
MACRUM 0:276e7a263c35 238 //#define MBEDTLS_AES_ALT
MACRUM 0:276e7a263c35 239 //#define MBEDTLS_ARC4_ALT
MACRUM 0:276e7a263c35 240 //#define MBEDTLS_BLOWFISH_ALT
MACRUM 0:276e7a263c35 241 //#define MBEDTLS_CAMELLIA_ALT
MACRUM 0:276e7a263c35 242 //#define MBEDTLS_DES_ALT
MACRUM 0:276e7a263c35 243 //#define MBEDTLS_XTEA_ALT
MACRUM 0:276e7a263c35 244 //#define MBEDTLS_MD2_ALT
MACRUM 0:276e7a263c35 245 //#define MBEDTLS_MD4_ALT
MACRUM 0:276e7a263c35 246 //#define MBEDTLS_MD5_ALT
MACRUM 0:276e7a263c35 247 //#define MBEDTLS_RIPEMD160_ALT
MACRUM 0:276e7a263c35 248 //#define MBEDTLS_SHA1_ALT
MACRUM 0:276e7a263c35 249 //#define MBEDTLS_SHA256_ALT
MACRUM 0:276e7a263c35 250 //#define MBEDTLS_SHA512_ALT
MACRUM 0:276e7a263c35 251 /*
MACRUM 0:276e7a263c35 252 * When replacing the elliptic curve module, pleace consider, that it is
MACRUM 0:276e7a263c35 253 * implemented with two .c files:
MACRUM 0:276e7a263c35 254 * - ecp.c
MACRUM 0:276e7a263c35 255 * - ecp_curves.c
MACRUM 0:276e7a263c35 256 * You can replace them very much like all the other MBEDTLS__MODULE_NAME__ALT
MACRUM 0:276e7a263c35 257 * macros as described above. The only difference is that you have to make sure
MACRUM 0:276e7a263c35 258 * that you provide functionality for both .c files.
MACRUM 0:276e7a263c35 259 */
MACRUM 0:276e7a263c35 260 //#define MBEDTLS_ECP_ALT
MACRUM 0:276e7a263c35 261
MACRUM 0:276e7a263c35 262 /**
MACRUM 0:276e7a263c35 263 * \def MBEDTLS_MD2_PROCESS_ALT
MACRUM 0:276e7a263c35 264 *
MACRUM 0:276e7a263c35 265 * MBEDTLS__FUNCTION_NAME__ALT: Uncomment a macro to let mbed TLS use you
MACRUM 0:276e7a263c35 266 * alternate core implementation of symmetric crypto or hash function. Keep in
MACRUM 0:276e7a263c35 267 * mind that function prototypes should remain the same.
MACRUM 0:276e7a263c35 268 *
MACRUM 0:276e7a263c35 269 * This replaces only one function. The header file from mbed TLS is still
MACRUM 0:276e7a263c35 270 * used, in contrast to the MBEDTLS__MODULE_NAME__ALT flags.
MACRUM 0:276e7a263c35 271 *
MACRUM 0:276e7a263c35 272 * Example: In case you uncomment MBEDTLS_SHA256_PROCESS_ALT, mbed TLS will
MACRUM 0:276e7a263c35 273 * no longer provide the mbedtls_sha1_process() function, but it will still provide
MACRUM 0:276e7a263c35 274 * the other function (using your mbedtls_sha1_process() function) and the definition
MACRUM 0:276e7a263c35 275 * of mbedtls_sha1_context, so your implementation of mbedtls_sha1_process must be compatible
MACRUM 0:276e7a263c35 276 * with this definition.
MACRUM 0:276e7a263c35 277 *
MACRUM 0:276e7a263c35 278 * Note: if you use the AES_xxx_ALT macros, then is is recommended to also set
MACRUM 0:276e7a263c35 279 * MBEDTLS_AES_ROM_TABLES in order to help the linker garbage-collect the AES
MACRUM 0:276e7a263c35 280 * tables.
MACRUM 0:276e7a263c35 281 *
MACRUM 0:276e7a263c35 282 * Uncomment a macro to enable alternate implementation of the corresponding
MACRUM 0:276e7a263c35 283 * function.
MACRUM 0:276e7a263c35 284 */
MACRUM 0:276e7a263c35 285 //#define MBEDTLS_MD2_PROCESS_ALT
MACRUM 0:276e7a263c35 286 //#define MBEDTLS_MD4_PROCESS_ALT
MACRUM 0:276e7a263c35 287 //#define MBEDTLS_MD5_PROCESS_ALT
MACRUM 0:276e7a263c35 288 //#define MBEDTLS_RIPEMD160_PROCESS_ALT
MACRUM 0:276e7a263c35 289 //#define MBEDTLS_SHA1_PROCESS_ALT
MACRUM 0:276e7a263c35 290 //#define MBEDTLS_SHA256_PROCESS_ALT
MACRUM 0:276e7a263c35 291 //#define MBEDTLS_SHA512_PROCESS_ALT
MACRUM 0:276e7a263c35 292 //#define MBEDTLS_DES_SETKEY_ALT
MACRUM 0:276e7a263c35 293 //#define MBEDTLS_DES_CRYPT_ECB_ALT
MACRUM 0:276e7a263c35 294 //#define MBEDTLS_DES3_CRYPT_ECB_ALT
MACRUM 0:276e7a263c35 295 //#define MBEDTLS_AES_SETKEY_ENC_ALT
MACRUM 0:276e7a263c35 296 //#define MBEDTLS_AES_SETKEY_DEC_ALT
MACRUM 0:276e7a263c35 297 //#define MBEDTLS_AES_ENCRYPT_ALT
MACRUM 0:276e7a263c35 298 //#define MBEDTLS_AES_DECRYPT_ALT
MACRUM 0:276e7a263c35 299
MACRUM 0:276e7a263c35 300 /**
MACRUM 0:276e7a263c35 301 * \def MBEDTLS_ECP_INTERNAL_ALT
MACRUM 0:276e7a263c35 302 *
MACRUM 0:276e7a263c35 303 * Expose a part of the internal interface of the Elliptic Curve Point module.
MACRUM 0:276e7a263c35 304 *
MACRUM 0:276e7a263c35 305 * MBEDTLS_ECP__FUNCTION_NAME__ALT: Uncomment a macro to let mbed TLS use your
MACRUM 0:276e7a263c35 306 * alternative core implementation of elliptic curve arithmetic. Keep in mind
MACRUM 0:276e7a263c35 307 * that function prototypes should remain the same.
MACRUM 0:276e7a263c35 308 *
MACRUM 0:276e7a263c35 309 * This partially replaces one function. The header file from mbed TLS is still
MACRUM 0:276e7a263c35 310 * used, in contrast to the MBEDTLS_ECP_ALT flag. The original implementation
MACRUM 0:276e7a263c35 311 * is still present and it is used for group structures not supported by the
MACRUM 0:276e7a263c35 312 * alternative.
MACRUM 0:276e7a263c35 313 *
MACRUM 0:276e7a263c35 314 * Any of these options become available by defining MBEDTLS_ECP_INTERNAL_ALT
MACRUM 0:276e7a263c35 315 * and implementing the following functions:
MACRUM 0:276e7a263c35 316 * unsigned char mbedtls_internal_ecp_grp_capable(
MACRUM 0:276e7a263c35 317 * const mbedtls_ecp_group *grp )
MACRUM 0:276e7a263c35 318 * int mbedtls_internal_ecp_init( const mbedtls_ecp_group *grp )
MACRUM 0:276e7a263c35 319 * void mbedtls_internal_ecp_deinit( const mbedtls_ecp_group *grp )
MACRUM 0:276e7a263c35 320 * The mbedtls_internal_ecp_grp_capable function should return 1 if the
MACRUM 0:276e7a263c35 321 * replacement functions implement arithmetic for the given group and 0
MACRUM 0:276e7a263c35 322 * otherwise.
MACRUM 0:276e7a263c35 323 * The functions mbedtls_internal_ecp_init and mbedtls_internal_ecp_deinit are
MACRUM 0:276e7a263c35 324 * called before and after each point operation and provide an opportunity to
MACRUM 0:276e7a263c35 325 * implement optimized set up and tear down instructions.
MACRUM 0:276e7a263c35 326 *
MACRUM 0:276e7a263c35 327 * Example: In case you uncomment MBEDTLS_ECP_INTERNAL_ALT and
MACRUM 0:276e7a263c35 328 * MBEDTLS_ECP_DOUBLE_JAC_ALT, mbed TLS will still provide the ecp_double_jac
MACRUM 0:276e7a263c35 329 * function, but will use your mbedtls_internal_ecp_double_jac if the group is
MACRUM 0:276e7a263c35 330 * supported (your mbedtls_internal_ecp_grp_capable function returns 1 when
MACRUM 0:276e7a263c35 331 * receives it as an argument). If the group is not supported then the original
MACRUM 0:276e7a263c35 332 * implementation is used. The other functions and the definition of
MACRUM 0:276e7a263c35 333 * mbedtls_ecp_group and mbedtls_ecp_point will not change, so your
MACRUM 0:276e7a263c35 334 * implementation of mbedtls_internal_ecp_double_jac and
MACRUM 0:276e7a263c35 335 * mbedtls_internal_ecp_grp_capable must be compatible with this definition.
MACRUM 0:276e7a263c35 336 *
MACRUM 0:276e7a263c35 337 * Uncomment a macro to enable alternate implementation of the corresponding
MACRUM 0:276e7a263c35 338 * function.
MACRUM 0:276e7a263c35 339 */
MACRUM 0:276e7a263c35 340 /* Required for all the functions in this section */
MACRUM 0:276e7a263c35 341 //#define MBEDTLS_ECP_INTERNAL_ALT
MACRUM 0:276e7a263c35 342 /* Support for Weierstrass curves with Jacobi representation */
MACRUM 0:276e7a263c35 343 //#define MBEDTLS_ECP_RANDOMIZE_JAC_ALT
MACRUM 0:276e7a263c35 344 //#define MBEDTLS_ECP_ADD_MIXED_ALT
MACRUM 0:276e7a263c35 345 //#define MBEDTLS_ECP_DOUBLE_JAC_ALT
MACRUM 0:276e7a263c35 346 //#define MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT
MACRUM 0:276e7a263c35 347 //#define MBEDTLS_ECP_NORMALIZE_JAC_ALT
MACRUM 0:276e7a263c35 348 /* Support for curves with Montgomery arithmetic */
MACRUM 0:276e7a263c35 349 //#define MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT
MACRUM 0:276e7a263c35 350 //#define MBEDTLS_ECP_RANDOMIZE_MXZ_ALT
MACRUM 0:276e7a263c35 351 //#define MBEDTLS_ECP_NORMALIZE_MXZ_ALT
MACRUM 0:276e7a263c35 352
MACRUM 0:276e7a263c35 353 /**
MACRUM 0:276e7a263c35 354 * \def MBEDTLS_TEST_NULL_ENTROPY
MACRUM 0:276e7a263c35 355 *
MACRUM 0:276e7a263c35 356 * Enables testing and use of mbed TLS without any configured entropy sources.
MACRUM 0:276e7a263c35 357 * This permits use of the library on platforms before an entropy source has
MACRUM 0:276e7a263c35 358 * been integrated (see for example the MBEDTLS_ENTROPY_HARDWARE_ALT or the
MACRUM 0:276e7a263c35 359 * MBEDTLS_ENTROPY_NV_SEED switches).
MACRUM 0:276e7a263c35 360 *
MACRUM 0:276e7a263c35 361 * WARNING! This switch MUST be disabled in production builds, and is suitable
MACRUM 0:276e7a263c35 362 * only for development.
MACRUM 0:276e7a263c35 363 * Enabling the switch negates any security provided by the library.
MACRUM 0:276e7a263c35 364 *
MACRUM 0:276e7a263c35 365 * Requires MBEDTLS_ENTROPY_C, MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
MACRUM 0:276e7a263c35 366 *
MACRUM 0:276e7a263c35 367 */
MACRUM 0:276e7a263c35 368 //#define MBEDTLS_TEST_NULL_ENTROPY
MACRUM 0:276e7a263c35 369
MACRUM 0:276e7a263c35 370 /**
MACRUM 0:276e7a263c35 371 * \def MBEDTLS_ENTROPY_HARDWARE_ALT
MACRUM 0:276e7a263c35 372 *
MACRUM 0:276e7a263c35 373 * Uncomment this macro to let mbed TLS use your own implementation of a
MACRUM 0:276e7a263c35 374 * hardware entropy collector.
MACRUM 0:276e7a263c35 375 *
MACRUM 0:276e7a263c35 376 * Your function must be called \c mbedtls_hardware_poll(), have the same
MACRUM 0:276e7a263c35 377 * prototype as declared in entropy_poll.h, and accept NULL as first argument.
MACRUM 0:276e7a263c35 378 *
MACRUM 0:276e7a263c35 379 * Uncomment to use your own hardware entropy collector.
MACRUM 0:276e7a263c35 380 */
MACRUM 0:276e7a263c35 381 //#define MBEDTLS_ENTROPY_HARDWARE_ALT
MACRUM 0:276e7a263c35 382
MACRUM 0:276e7a263c35 383 /**
MACRUM 0:276e7a263c35 384 * \def MBEDTLS_AES_ROM_TABLES
MACRUM 0:276e7a263c35 385 *
MACRUM 0:276e7a263c35 386 * Store the AES tables in ROM.
MACRUM 0:276e7a263c35 387 *
MACRUM 0:276e7a263c35 388 * Uncomment this macro to store the AES tables in ROM.
MACRUM 0:276e7a263c35 389 */
MACRUM 0:276e7a263c35 390 //#define MBEDTLS_AES_ROM_TABLES
MACRUM 0:276e7a263c35 391
MACRUM 0:276e7a263c35 392 /**
MACRUM 0:276e7a263c35 393 * \def MBEDTLS_CAMELLIA_SMALL_MEMORY
MACRUM 0:276e7a263c35 394 *
MACRUM 0:276e7a263c35 395 * Use less ROM for the Camellia implementation (saves about 768 bytes).
MACRUM 0:276e7a263c35 396 *
MACRUM 0:276e7a263c35 397 * Uncomment this macro to use less memory for Camellia.
MACRUM 0:276e7a263c35 398 */
MACRUM 0:276e7a263c35 399 //#define MBEDTLS_CAMELLIA_SMALL_MEMORY
MACRUM 0:276e7a263c35 400
MACRUM 0:276e7a263c35 401 /**
MACRUM 0:276e7a263c35 402 * \def MBEDTLS_CIPHER_MODE_CBC
MACRUM 0:276e7a263c35 403 *
MACRUM 0:276e7a263c35 404 * Enable Cipher Block Chaining mode (CBC) for symmetric ciphers.
MACRUM 0:276e7a263c35 405 */
MACRUM 0:276e7a263c35 406 #define MBEDTLS_CIPHER_MODE_CBC
MACRUM 0:276e7a263c35 407
MACRUM 0:276e7a263c35 408 /**
MACRUM 0:276e7a263c35 409 * \def MBEDTLS_CIPHER_MODE_CFB
MACRUM 0:276e7a263c35 410 *
MACRUM 0:276e7a263c35 411 * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
MACRUM 0:276e7a263c35 412 */
MACRUM 0:276e7a263c35 413 //#define MBEDTLS_CIPHER_MODE_CFB
MACRUM 0:276e7a263c35 414
MACRUM 0:276e7a263c35 415 /**
MACRUM 0:276e7a263c35 416 * \def MBEDTLS_CIPHER_MODE_CTR
MACRUM 0:276e7a263c35 417 *
MACRUM 0:276e7a263c35 418 * Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
MACRUM 0:276e7a263c35 419 */
MACRUM 0:276e7a263c35 420 #define MBEDTLS_CIPHER_MODE_CTR
MACRUM 0:276e7a263c35 421
MACRUM 0:276e7a263c35 422 /**
MACRUM 0:276e7a263c35 423 * \def MBEDTLS_CIPHER_NULL_CIPHER
MACRUM 0:276e7a263c35 424 *
MACRUM 0:276e7a263c35 425 * Enable NULL cipher.
MACRUM 0:276e7a263c35 426 * Warning: Only do so when you know what you are doing. This allows for
MACRUM 0:276e7a263c35 427 * encryption or channels without any security!
MACRUM 0:276e7a263c35 428 *
MACRUM 0:276e7a263c35 429 * Requires MBEDTLS_ENABLE_WEAK_CIPHERSUITES as well to enable
MACRUM 0:276e7a263c35 430 * the following ciphersuites:
MACRUM 0:276e7a263c35 431 * MBEDTLS_TLS_ECDH_ECDSA_WITH_NULL_SHA
MACRUM 0:276e7a263c35 432 * MBEDTLS_TLS_ECDH_RSA_WITH_NULL_SHA
MACRUM 0:276e7a263c35 433 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_NULL_SHA
MACRUM 0:276e7a263c35 434 * MBEDTLS_TLS_ECDHE_RSA_WITH_NULL_SHA
MACRUM 0:276e7a263c35 435 * MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA384
MACRUM 0:276e7a263c35 436 * MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA256
MACRUM 0:276e7a263c35 437 * MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA
MACRUM 0:276e7a263c35 438 * MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA384
MACRUM 0:276e7a263c35 439 * MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA256
MACRUM 0:276e7a263c35 440 * MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA
MACRUM 0:276e7a263c35 441 * MBEDTLS_TLS_RSA_WITH_NULL_SHA256
MACRUM 0:276e7a263c35 442 * MBEDTLS_TLS_RSA_WITH_NULL_SHA
MACRUM 0:276e7a263c35 443 * MBEDTLS_TLS_RSA_WITH_NULL_MD5
MACRUM 0:276e7a263c35 444 * MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA384
MACRUM 0:276e7a263c35 445 * MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA256
MACRUM 0:276e7a263c35 446 * MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA
MACRUM 0:276e7a263c35 447 * MBEDTLS_TLS_PSK_WITH_NULL_SHA384
MACRUM 0:276e7a263c35 448 * MBEDTLS_TLS_PSK_WITH_NULL_SHA256
MACRUM 0:276e7a263c35 449 * MBEDTLS_TLS_PSK_WITH_NULL_SHA
MACRUM 0:276e7a263c35 450 *
MACRUM 0:276e7a263c35 451 * Uncomment this macro to enable the NULL cipher and ciphersuites
MACRUM 0:276e7a263c35 452 */
MACRUM 0:276e7a263c35 453 //#define MBEDTLS_CIPHER_NULL_CIPHER
MACRUM 0:276e7a263c35 454
MACRUM 0:276e7a263c35 455 /**
MACRUM 0:276e7a263c35 456 * \def MBEDTLS_CIPHER_PADDING_PKCS7
MACRUM 0:276e7a263c35 457 *
MACRUM 0:276e7a263c35 458 * MBEDTLS_CIPHER_PADDING_XXX: Uncomment or comment macros to add support for
MACRUM 0:276e7a263c35 459 * specific padding modes in the cipher layer with cipher modes that support
MACRUM 0:276e7a263c35 460 * padding (e.g. CBC)
MACRUM 0:276e7a263c35 461 *
MACRUM 0:276e7a263c35 462 * If you disable all padding modes, only full blocks can be used with CBC.
MACRUM 0:276e7a263c35 463 *
MACRUM 0:276e7a263c35 464 * Enable padding modes in the cipher layer.
MACRUM 0:276e7a263c35 465 */
MACRUM 0:276e7a263c35 466 #define MBEDTLS_CIPHER_PADDING_PKCS7
MACRUM 0:276e7a263c35 467 //#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
MACRUM 0:276e7a263c35 468 //#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
MACRUM 0:276e7a263c35 469 //#define MBEDTLS_CIPHER_PADDING_ZEROS
MACRUM 0:276e7a263c35 470
MACRUM 0:276e7a263c35 471 /**
MACRUM 0:276e7a263c35 472 * \def MBEDTLS_ENABLE_WEAK_CIPHERSUITES
MACRUM 0:276e7a263c35 473 *
MACRUM 0:276e7a263c35 474 * Enable weak ciphersuites in SSL / TLS.
MACRUM 0:276e7a263c35 475 * Warning: Only do so when you know what you are doing. This allows for
MACRUM 0:276e7a263c35 476 * channels with virtually no security at all!
MACRUM 0:276e7a263c35 477 *
MACRUM 0:276e7a263c35 478 * This enables the following ciphersuites:
MACRUM 0:276e7a263c35 479 * MBEDTLS_TLS_RSA_WITH_DES_CBC_SHA
MACRUM 0:276e7a263c35 480 * MBEDTLS_TLS_DHE_RSA_WITH_DES_CBC_SHA
MACRUM 0:276e7a263c35 481 *
MACRUM 0:276e7a263c35 482 * Uncomment this macro to enable weak ciphersuites
MACRUM 0:276e7a263c35 483 */
MACRUM 0:276e7a263c35 484 //#define MBEDTLS_ENABLE_WEAK_CIPHERSUITES
MACRUM 0:276e7a263c35 485
MACRUM 0:276e7a263c35 486 /**
MACRUM 0:276e7a263c35 487 * \def MBEDTLS_REMOVE_ARC4_CIPHERSUITES
MACRUM 0:276e7a263c35 488 *
MACRUM 0:276e7a263c35 489 * Remove RC4 ciphersuites by default in SSL / TLS.
MACRUM 0:276e7a263c35 490 * This flag removes the ciphersuites based on RC4 from the default list as
MACRUM 0:276e7a263c35 491 * returned by mbedtls_ssl_list_ciphersuites(). However, it is still possible to
MACRUM 0:276e7a263c35 492 * enable (some of) them with mbedtls_ssl_conf_ciphersuites() by including them
MACRUM 0:276e7a263c35 493 * explicitly.
MACRUM 0:276e7a263c35 494 *
MACRUM 0:276e7a263c35 495 * Uncomment this macro to remove RC4 ciphersuites by default.
MACRUM 0:276e7a263c35 496 */
MACRUM 0:276e7a263c35 497 #define MBEDTLS_REMOVE_ARC4_CIPHERSUITES
MACRUM 0:276e7a263c35 498
MACRUM 0:276e7a263c35 499 /**
MACRUM 0:276e7a263c35 500 * \def MBEDTLS_ECP_DP_SECP192R1_ENABLED
MACRUM 0:276e7a263c35 501 *
MACRUM 0:276e7a263c35 502 * MBEDTLS_ECP_XXXX_ENABLED: Enables specific curves within the Elliptic Curve
MACRUM 0:276e7a263c35 503 * module. By default all supported curves are enabled.
MACRUM 0:276e7a263c35 504 *
MACRUM 0:276e7a263c35 505 * Comment macros to disable the curve and functions for it
MACRUM 0:276e7a263c35 506 */
MACRUM 0:276e7a263c35 507 //#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
MACRUM 0:276e7a263c35 508 //#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
MACRUM 0:276e7a263c35 509 #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
MACRUM 0:276e7a263c35 510 //#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
MACRUM 0:276e7a263c35 511 //#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
MACRUM 0:276e7a263c35 512 //#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
MACRUM 0:276e7a263c35 513 //#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
MACRUM 0:276e7a263c35 514 //#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
MACRUM 0:276e7a263c35 515 //#define MBEDTLS_ECP_DP_BP256R1_ENABLED
MACRUM 0:276e7a263c35 516 //#define MBEDTLS_ECP_DP_BP384R1_ENABLED
MACRUM 0:276e7a263c35 517 //#define MBEDTLS_ECP_DP_BP512R1_ENABLED
MACRUM 0:276e7a263c35 518 //#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
MACRUM 0:276e7a263c35 519
MACRUM 0:276e7a263c35 520 /**
MACRUM 0:276e7a263c35 521 * \def MBEDTLS_ECP_NIST_OPTIM
MACRUM 0:276e7a263c35 522 *
MACRUM 0:276e7a263c35 523 * Enable specific 'modulo p' routines for each NIST prime.
MACRUM 0:276e7a263c35 524 * Depending on the prime and architecture, makes operations 4 to 8 times
MACRUM 0:276e7a263c35 525 * faster on the corresponding curve.
MACRUM 0:276e7a263c35 526 *
MACRUM 0:276e7a263c35 527 * Comment this macro to disable NIST curves optimisation.
MACRUM 0:276e7a263c35 528 */
MACRUM 0:276e7a263c35 529 #define MBEDTLS_ECP_NIST_OPTIM
MACRUM 0:276e7a263c35 530
MACRUM 0:276e7a263c35 531 /**
MACRUM 0:276e7a263c35 532 * \def MBEDTLS_ECDSA_DETERMINISTIC
MACRUM 0:276e7a263c35 533 *
MACRUM 0:276e7a263c35 534 * Enable deterministic ECDSA (RFC 6979).
MACRUM 0:276e7a263c35 535 * Standard ECDSA is "fragile" in the sense that lack of entropy when signing
MACRUM 0:276e7a263c35 536 * may result in a compromise of the long-term signing key. This is avoided by
MACRUM 0:276e7a263c35 537 * the deterministic variant.
MACRUM 0:276e7a263c35 538 *
MACRUM 0:276e7a263c35 539 * Requires: MBEDTLS_HMAC_DRBG_C
MACRUM 0:276e7a263c35 540 *
MACRUM 0:276e7a263c35 541 * Comment this macro to disable deterministic ECDSA.
MACRUM 0:276e7a263c35 542 */
MACRUM 0:276e7a263c35 543 #define MBEDTLS_ECDSA_DETERMINISTIC
MACRUM 0:276e7a263c35 544 /**
MACRUM 0:276e7a263c35 545 * \def MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
MACRUM 0:276e7a263c35 546 *
MACRUM 0:276e7a263c35 547 * Enable the PSK based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 548 *
MACRUM 0:276e7a263c35 549 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 550 * enabled as well):
MACRUM 0:276e7a263c35 551 * MBEDTLS_TLS_PSK_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 552 * MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 553 * MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 554 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 555 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 556 * MBEDTLS_TLS_PSK_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 557 * MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 558 * MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 559 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 560 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 561 * MBEDTLS_TLS_PSK_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 562 * MBEDTLS_TLS_PSK_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 563 */
MACRUM 0:276e7a263c35 564 //#define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
MACRUM 0:276e7a263c35 565
MACRUM 0:276e7a263c35 566 /**
MACRUM 0:276e7a263c35 567 * \def MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
MACRUM 0:276e7a263c35 568 *
MACRUM 0:276e7a263c35 569 * Enable the DHE-PSK based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 570 *
MACRUM 0:276e7a263c35 571 * Requires: MBEDTLS_DHM_C
MACRUM 0:276e7a263c35 572 *
MACRUM 0:276e7a263c35 573 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 574 * enabled as well):
MACRUM 0:276e7a263c35 575 * MBEDTLS_TLS_DHE_PSK_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 576 * MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 577 * MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 578 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 579 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 580 * MBEDTLS_TLS_DHE_PSK_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 581 * MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 582 * MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 583 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 584 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 585 * MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 586 * MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 587 */
MACRUM 0:276e7a263c35 588 //#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
MACRUM 0:276e7a263c35 589
MACRUM 0:276e7a263c35 590 /**
MACRUM 0:276e7a263c35 591 * \def MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
MACRUM 0:276e7a263c35 592 *
MACRUM 0:276e7a263c35 593 * Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 594 *
MACRUM 0:276e7a263c35 595 * Requires: MBEDTLS_ECDH_C
MACRUM 0:276e7a263c35 596 *
MACRUM 0:276e7a263c35 597 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 598 * enabled as well):
MACRUM 0:276e7a263c35 599 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 600 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 601 * MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 602 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 603 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 604 * MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 605 * MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 606 * MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 607 */
MACRUM 0:276e7a263c35 608 //#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
MACRUM 0:276e7a263c35 609
MACRUM 0:276e7a263c35 610 /**
MACRUM 0:276e7a263c35 611 * \def MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
MACRUM 0:276e7a263c35 612 *
MACRUM 0:276e7a263c35 613 * Enable the RSA-PSK based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 614 *
MACRUM 0:276e7a263c35 615 * Requires: MBEDTLS_RSA_C, MBEDTLS_PKCS1_V15,
MACRUM 0:276e7a263c35 616 * MBEDTLS_X509_CRT_PARSE_C
MACRUM 0:276e7a263c35 617 *
MACRUM 0:276e7a263c35 618 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 619 * enabled as well):
MACRUM 0:276e7a263c35 620 * MBEDTLS_TLS_RSA_PSK_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 621 * MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 622 * MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 623 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 624 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 625 * MBEDTLS_TLS_RSA_PSK_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 626 * MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 627 * MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 628 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 629 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 630 * MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 631 * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 632 */
MACRUM 0:276e7a263c35 633 //#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
MACRUM 0:276e7a263c35 634
MACRUM 0:276e7a263c35 635 /**
MACRUM 0:276e7a263c35 636 * \def MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
MACRUM 0:276e7a263c35 637 *
MACRUM 0:276e7a263c35 638 * Enable the RSA-only based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 639 *
MACRUM 0:276e7a263c35 640 * Requires: MBEDTLS_RSA_C, MBEDTLS_PKCS1_V15,
MACRUM 0:276e7a263c35 641 * MBEDTLS_X509_CRT_PARSE_C
MACRUM 0:276e7a263c35 642 *
MACRUM 0:276e7a263c35 643 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 644 * enabled as well):
MACRUM 0:276e7a263c35 645 * MBEDTLS_TLS_RSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 646 * MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA256
MACRUM 0:276e7a263c35 647 * MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 648 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 649 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256
MACRUM 0:276e7a263c35 650 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
MACRUM 0:276e7a263c35 651 * MBEDTLS_TLS_RSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 652 * MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 653 * MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 654 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 655 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 656 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
MACRUM 0:276e7a263c35 657 * MBEDTLS_TLS_RSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 658 * MBEDTLS_TLS_RSA_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 659 * MBEDTLS_TLS_RSA_WITH_RC4_128_MD5
MACRUM 0:276e7a263c35 660 */
MACRUM 0:276e7a263c35 661 //#define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
MACRUM 0:276e7a263c35 662
MACRUM 0:276e7a263c35 663 /**
MACRUM 0:276e7a263c35 664 * \def MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
MACRUM 0:276e7a263c35 665 *
MACRUM 0:276e7a263c35 666 * Enable the DHE-RSA based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 667 *
MACRUM 0:276e7a263c35 668 * Requires: MBEDTLS_DHM_C, MBEDTLS_RSA_C, MBEDTLS_PKCS1_V15,
MACRUM 0:276e7a263c35 669 * MBEDTLS_X509_CRT_PARSE_C
MACRUM 0:276e7a263c35 670 *
MACRUM 0:276e7a263c35 671 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 672 * enabled as well):
MACRUM 0:276e7a263c35 673 * MBEDTLS_TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 674 * MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
MACRUM 0:276e7a263c35 675 * MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 676 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 677 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
MACRUM 0:276e7a263c35 678 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
MACRUM 0:276e7a263c35 679 * MBEDTLS_TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 680 * MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 681 * MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 682 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 683 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 684 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
MACRUM 0:276e7a263c35 685 * MBEDTLS_TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 686 */
MACRUM 0:276e7a263c35 687 //#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
MACRUM 0:276e7a263c35 688
MACRUM 0:276e7a263c35 689 /**
MACRUM 0:276e7a263c35 690 * \def MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
MACRUM 0:276e7a263c35 691 *
MACRUM 0:276e7a263c35 692 * Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 693 *
MACRUM 0:276e7a263c35 694 * Requires: MBEDTLS_ECDH_C, MBEDTLS_RSA_C, MBEDTLS_PKCS1_V15,
MACRUM 0:276e7a263c35 695 * MBEDTLS_X509_CRT_PARSE_C
MACRUM 0:276e7a263c35 696 *
MACRUM 0:276e7a263c35 697 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 698 * enabled as well):
MACRUM 0:276e7a263c35 699 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 700 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 701 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 702 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 703 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 704 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 705 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 706 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 707 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 708 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 709 * MBEDTLS_TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 710 * MBEDTLS_TLS_ECDHE_RSA_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 711 */
MACRUM 0:276e7a263c35 712 //#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
MACRUM 0:276e7a263c35 713
MACRUM 0:276e7a263c35 714 /**
MACRUM 0:276e7a263c35 715 * \def MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
MACRUM 0:276e7a263c35 716 *
MACRUM 0:276e7a263c35 717 * Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 718 *
MACRUM 0:276e7a263c35 719 * Requires: MBEDTLS_ECDH_C, MBEDTLS_ECDSA_C, MBEDTLS_X509_CRT_PARSE_C,
MACRUM 0:276e7a263c35 720 *
MACRUM 0:276e7a263c35 721 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 722 * enabled as well):
MACRUM 0:276e7a263c35 723 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 724 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 725 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 726 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 727 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 728 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 729 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 730 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 731 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 732 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 733 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 734 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 735 */
MACRUM 0:276e7a263c35 736 #define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
MACRUM 0:276e7a263c35 737 /**
MACRUM 0:276e7a263c35 738 * \def MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
MACRUM 0:276e7a263c35 739 *
MACRUM 0:276e7a263c35 740 * Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 741 *
MACRUM 0:276e7a263c35 742 * Requires: MBEDTLS_ECDH_C, MBEDTLS_X509_CRT_PARSE_C
MACRUM 0:276e7a263c35 743 *
MACRUM 0:276e7a263c35 744 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 745 * enabled as well):
MACRUM 0:276e7a263c35 746 * MBEDTLS_TLS_ECDH_ECDSA_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 747 * MBEDTLS_TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 748 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 749 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 750 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 751 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 752 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 753 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 754 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 755 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 756 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 757 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 758 */
MACRUM 0:276e7a263c35 759 //#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
MACRUM 0:276e7a263c35 760
MACRUM 0:276e7a263c35 761 /**
MACRUM 0:276e7a263c35 762 * \def MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
MACRUM 0:276e7a263c35 763 *
MACRUM 0:276e7a263c35 764 * Enable the ECDH-RSA based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 765 *
MACRUM 0:276e7a263c35 766 * Requires: MBEDTLS_ECDH_C, MBEDTLS_X509_CRT_PARSE_C
MACRUM 0:276e7a263c35 767 *
MACRUM 0:276e7a263c35 768 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 769 * enabled as well):
MACRUM 0:276e7a263c35 770 * MBEDTLS_TLS_ECDH_RSA_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 771 * MBEDTLS_TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 772 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 773 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 774 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 775 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 776 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 777 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 778 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 779 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 780 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 781 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 782 */
MACRUM 0:276e7a263c35 783 //#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
MACRUM 0:276e7a263c35 784
MACRUM 0:276e7a263c35 785 /**
MACRUM 0:276e7a263c35 786 * \def MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
MACRUM 0:276e7a263c35 787 *
MACRUM 0:276e7a263c35 788 * Enable the ECJPAKE based ciphersuite modes in SSL / TLS.
MACRUM 0:276e7a263c35 789 *
MACRUM 0:276e7a263c35 790 * \warning This is currently experimental. EC J-PAKE support is based on the
MACRUM 0:276e7a263c35 791 * Thread v1.0.0 specification; incompatible changes to the specification
MACRUM 0:276e7a263c35 792 * might still happen. For this reason, this is disabled by default.
MACRUM 0:276e7a263c35 793 *
MACRUM 0:276e7a263c35 794 * Requires: MBEDTLS_ECJPAKE_C
MACRUM 0:276e7a263c35 795 * MBEDTLS_SHA256_C
MACRUM 0:276e7a263c35 796 * MBEDTLS_ECP_DP_SECP256R1_ENABLED
MACRUM 0:276e7a263c35 797 *
MACRUM 0:276e7a263c35 798 * This enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 799 * enabled as well):
MACRUM 0:276e7a263c35 800 * MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8
MACRUM 0:276e7a263c35 801 */
MACRUM 0:276e7a263c35 802 //#define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
MACRUM 0:276e7a263c35 803
MACRUM 0:276e7a263c35 804 /**
MACRUM 0:276e7a263c35 805 * \def MBEDTLS_PK_PARSE_EC_EXTENDED
MACRUM 0:276e7a263c35 806 *
MACRUM 0:276e7a263c35 807 * Enhance support for reading EC keys using variants of SEC1 not allowed by
MACRUM 0:276e7a263c35 808 * RFC 5915 and RFC 5480.
MACRUM 0:276e7a263c35 809 *
MACRUM 0:276e7a263c35 810 * Currently this means parsing the SpecifiedECDomain choice of EC
MACRUM 0:276e7a263c35 811 * parameters (only known groups are supported, not arbitrary domains, to
MACRUM 0:276e7a263c35 812 * avoid validation issues).
MACRUM 0:276e7a263c35 813 *
MACRUM 0:276e7a263c35 814 * Disable if you only need to support RFC 5915 + 5480 key formats.
MACRUM 0:276e7a263c35 815 */
MACRUM 0:276e7a263c35 816 //#define MBEDTLS_PK_PARSE_EC_EXTENDED
MACRUM 0:276e7a263c35 817
MACRUM 0:276e7a263c35 818 /**
MACRUM 0:276e7a263c35 819 * \def MBEDTLS_ERROR_STRERROR_DUMMY
MACRUM 0:276e7a263c35 820 *
MACRUM 0:276e7a263c35 821 * Enable a dummy error function to make use of mbedtls_strerror() in
MACRUM 0:276e7a263c35 822 * third party libraries easier when MBEDTLS_ERROR_C is disabled
MACRUM 0:276e7a263c35 823 * (no effect when MBEDTLS_ERROR_C is enabled).
MACRUM 0:276e7a263c35 824 *
MACRUM 0:276e7a263c35 825 * You can safely disable this if MBEDTLS_ERROR_C is enabled, or if you're
MACRUM 0:276e7a263c35 826 * not using mbedtls_strerror() or error_strerror() in your application.
MACRUM 0:276e7a263c35 827 *
MACRUM 0:276e7a263c35 828 * Disable if you run into name conflicts and want to really remove the
MACRUM 0:276e7a263c35 829 * mbedtls_strerror()
MACRUM 0:276e7a263c35 830 */
MACRUM 0:276e7a263c35 831 //#define MBEDTLS_ERROR_STRERROR_DUMMY
MACRUM 0:276e7a263c35 832
MACRUM 0:276e7a263c35 833 /**
MACRUM 0:276e7a263c35 834 * \def MBEDTLS_GENPRIME
MACRUM 0:276e7a263c35 835 *
MACRUM 0:276e7a263c35 836 * Enable the prime-number generation code.
MACRUM 0:276e7a263c35 837 *
MACRUM 0:276e7a263c35 838 * Requires: MBEDTLS_BIGNUM_C
MACRUM 0:276e7a263c35 839 */
MACRUM 0:276e7a263c35 840 //#define MBEDTLS_GENPRIME
MACRUM 0:276e7a263c35 841
MACRUM 0:276e7a263c35 842 /**
MACRUM 0:276e7a263c35 843 * \def MBEDTLS_FS_IO
MACRUM 0:276e7a263c35 844 *
MACRUM 0:276e7a263c35 845 * Enable functions that use the filesystem.
MACRUM 0:276e7a263c35 846 */
MACRUM 0:276e7a263c35 847 //#define MBEDTLS_FS_IO
MACRUM 0:276e7a263c35 848
MACRUM 0:276e7a263c35 849 /**
MACRUM 0:276e7a263c35 850 * \def MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
MACRUM 0:276e7a263c35 851 *
MACRUM 0:276e7a263c35 852 * Do not add default entropy sources. These are the platform specific,
MACRUM 0:276e7a263c35 853 * mbedtls_timing_hardclock and HAVEGE based poll functions.
MACRUM 0:276e7a263c35 854 *
MACRUM 0:276e7a263c35 855 * This is useful to have more control over the added entropy sources in an
MACRUM 0:276e7a263c35 856 * application.
MACRUM 0:276e7a263c35 857 *
MACRUM 0:276e7a263c35 858 * Uncomment this macro to prevent loading of default entropy functions.
MACRUM 0:276e7a263c35 859 */
MACRUM 0:276e7a263c35 860 //#define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
MACRUM 0:276e7a263c35 861
MACRUM 0:276e7a263c35 862 /**
MACRUM 0:276e7a263c35 863 * \def MBEDTLS_NO_PLATFORM_ENTROPY
MACRUM 0:276e7a263c35 864 *
MACRUM 0:276e7a263c35 865 * Do not use built-in platform entropy functions.
MACRUM 0:276e7a263c35 866 * This is useful if your platform does not support
MACRUM 0:276e7a263c35 867 * standards like the /dev/urandom or Windows CryptoAPI.
MACRUM 0:276e7a263c35 868 *
MACRUM 0:276e7a263c35 869 * Uncomment this macro to disable the built-in platform entropy functions.
MACRUM 0:276e7a263c35 870 */
MACRUM 0:276e7a263c35 871 //#define MBEDTLS_NO_PLATFORM_ENTROPY
MACRUM 0:276e7a263c35 872
MACRUM 0:276e7a263c35 873 /**
MACRUM 0:276e7a263c35 874 * \def MBEDTLS_ENTROPY_FORCE_SHA256
MACRUM 0:276e7a263c35 875 *
MACRUM 0:276e7a263c35 876 * Force the entropy accumulator to use a SHA-256 accumulator instead of the
MACRUM 0:276e7a263c35 877 * default SHA-512 based one (if both are available).
MACRUM 0:276e7a263c35 878 *
MACRUM 0:276e7a263c35 879 * Requires: MBEDTLS_SHA256_C
MACRUM 0:276e7a263c35 880 *
MACRUM 0:276e7a263c35 881 * On 32-bit systems SHA-256 can be much faster than SHA-512. Use this option
MACRUM 0:276e7a263c35 882 * if you have performance concerns.
MACRUM 0:276e7a263c35 883 *
MACRUM 0:276e7a263c35 884 * This option is only useful if both MBEDTLS_SHA256_C and
MACRUM 0:276e7a263c35 885 * MBEDTLS_SHA512_C are defined. Otherwise the available hash module is used.
MACRUM 0:276e7a263c35 886 */
MACRUM 0:276e7a263c35 887 //#define MBEDTLS_ENTROPY_FORCE_SHA256
MACRUM 0:276e7a263c35 888
MACRUM 0:276e7a263c35 889 /**
MACRUM 0:276e7a263c35 890 * \def MBEDTLS_ENTROPY_NV_SEED
MACRUM 0:276e7a263c35 891 *
MACRUM 0:276e7a263c35 892 * Enable the non-volatile (NV) seed file-based entropy source.
MACRUM 0:276e7a263c35 893 * (Also enables the NV seed read/write functions in the platform layer)
MACRUM 0:276e7a263c35 894 *
MACRUM 0:276e7a263c35 895 * This is crucial (if not required) on systems that do not have a
MACRUM 0:276e7a263c35 896 * cryptographic entropy source (in hardware or kernel) available.
MACRUM 0:276e7a263c35 897 *
MACRUM 0:276e7a263c35 898 * Requires: MBEDTLS_ENTROPY_C, MBEDTLS_PLATFORM_C
MACRUM 0:276e7a263c35 899 *
MACRUM 0:276e7a263c35 900 * \note The read/write functions that are used by the entropy source are
MACRUM 0:276e7a263c35 901 * determined in the platform layer, and can be modified at runtime and/or
MACRUM 0:276e7a263c35 902 * compile-time depending on the flags (MBEDTLS_PLATFORM_NV_SEED_*) used.
MACRUM 0:276e7a263c35 903 *
MACRUM 0:276e7a263c35 904 * \note If you use the default implementation functions that read a seedfile
MACRUM 0:276e7a263c35 905 * with regular fopen(), please make sure you make a seedfile with the
MACRUM 0:276e7a263c35 906 * proper name (defined in MBEDTLS_PLATFORM_STD_NV_SEED_FILE) and at
MACRUM 0:276e7a263c35 907 * least MBEDTLS_ENTROPY_BLOCK_SIZE bytes in size that can be read from
MACRUM 0:276e7a263c35 908 * and written to or you will get an entropy source error! The default
MACRUM 0:276e7a263c35 909 * implementation will only use the first MBEDTLS_ENTROPY_BLOCK_SIZE
MACRUM 0:276e7a263c35 910 * bytes from the file.
MACRUM 0:276e7a263c35 911 *
MACRUM 0:276e7a263c35 912 * \note The entropy collector will write to the seed file before entropy is
MACRUM 0:276e7a263c35 913 * given to an external source, to update it.
MACRUM 0:276e7a263c35 914 */
MACRUM 0:276e7a263c35 915 //#define MBEDTLS_ENTROPY_NV_SEED
MACRUM 0:276e7a263c35 916
MACRUM 0:276e7a263c35 917 /**
MACRUM 0:276e7a263c35 918 * \def MBEDTLS_MEMORY_DEBUG
MACRUM 0:276e7a263c35 919 *
MACRUM 0:276e7a263c35 920 * Enable debugging of buffer allocator memory issues. Automatically prints
MACRUM 0:276e7a263c35 921 * (to stderr) all (fatal) messages on memory allocation issues. Enables
MACRUM 0:276e7a263c35 922 * function for 'debug output' of allocated memory.
MACRUM 0:276e7a263c35 923 *
MACRUM 0:276e7a263c35 924 * Requires: MBEDTLS_MEMORY_BUFFER_ALLOC_C
MACRUM 0:276e7a263c35 925 *
MACRUM 0:276e7a263c35 926 * Uncomment this macro to let the buffer allocator print out error messages.
MACRUM 0:276e7a263c35 927 */
MACRUM 0:276e7a263c35 928 //#define MBEDTLS_MEMORY_DEBUG
MACRUM 0:276e7a263c35 929
MACRUM 0:276e7a263c35 930 /**
MACRUM 0:276e7a263c35 931 * \def MBEDTLS_MEMORY_BACKTRACE
MACRUM 0:276e7a263c35 932 *
MACRUM 0:276e7a263c35 933 * Include backtrace information with each allocated block.
MACRUM 0:276e7a263c35 934 *
MACRUM 0:276e7a263c35 935 * Requires: MBEDTLS_MEMORY_BUFFER_ALLOC_C
MACRUM 0:276e7a263c35 936 * GLIBC-compatible backtrace() an backtrace_symbols() support
MACRUM 0:276e7a263c35 937 *
MACRUM 0:276e7a263c35 938 * Uncomment this macro to include backtrace information
MACRUM 0:276e7a263c35 939 */
MACRUM 0:276e7a263c35 940 //#define MBEDTLS_MEMORY_BACKTRACE
MACRUM 0:276e7a263c35 941
MACRUM 0:276e7a263c35 942 /**
MACRUM 0:276e7a263c35 943 * \def MBEDTLS_PK_RSA_ALT_SUPPORT
MACRUM 0:276e7a263c35 944 *
MACRUM 0:276e7a263c35 945 * Support external private RSA keys (eg from a HSM) in the PK layer.
MACRUM 0:276e7a263c35 946 *
MACRUM 0:276e7a263c35 947 * Comment this macro to disable support for external private RSA keys.
MACRUM 0:276e7a263c35 948 */
MACRUM 0:276e7a263c35 949 //#define MBEDTLS_PK_RSA_ALT_SUPPORT
MACRUM 0:276e7a263c35 950
MACRUM 0:276e7a263c35 951 /**
MACRUM 0:276e7a263c35 952 * \def MBEDTLS_PKCS1_V15
MACRUM 0:276e7a263c35 953 *
MACRUM 0:276e7a263c35 954 * Enable support for PKCS#1 v1.5 encoding.
MACRUM 0:276e7a263c35 955 *
MACRUM 0:276e7a263c35 956 * Requires: MBEDTLS_RSA_C
MACRUM 0:276e7a263c35 957 *
MACRUM 0:276e7a263c35 958 * This enables support for PKCS#1 v1.5 operations.
MACRUM 0:276e7a263c35 959 */
MACRUM 0:276e7a263c35 960 #define MBEDTLS_PKCS1_V15
MACRUM 0:276e7a263c35 961
MACRUM 0:276e7a263c35 962 /**
MACRUM 0:276e7a263c35 963 * \def MBEDTLS_PKCS1_V21
MACRUM 0:276e7a263c35 964 *
MACRUM 0:276e7a263c35 965 * Enable support for PKCS#1 v2.1 encoding.
MACRUM 0:276e7a263c35 966 *
MACRUM 0:276e7a263c35 967 * Requires: MBEDTLS_MD_C, MBEDTLS_RSA_C
MACRUM 0:276e7a263c35 968 *
MACRUM 0:276e7a263c35 969 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
MACRUM 0:276e7a263c35 970 */
MACRUM 0:276e7a263c35 971 #define MBEDTLS_PKCS1_V21
MACRUM 0:276e7a263c35 972
MACRUM 0:276e7a263c35 973 /**
MACRUM 0:276e7a263c35 974 * \def MBEDTLS_RSA_NO_CRT
MACRUM 0:276e7a263c35 975 *
MACRUM 0:276e7a263c35 976 * Do not use the Chinese Remainder Theorem for the RSA private operation.
MACRUM 0:276e7a263c35 977 *
MACRUM 0:276e7a263c35 978 * Uncomment this macro to disable the use of CRT in RSA.
MACRUM 0:276e7a263c35 979 *
MACRUM 0:276e7a263c35 980 */
MACRUM 0:276e7a263c35 981 //#define MBEDTLS_RSA_NO_CRT
MACRUM 0:276e7a263c35 982
MACRUM 0:276e7a263c35 983 /**
MACRUM 0:276e7a263c35 984 * \def MBEDTLS_SELF_TEST
MACRUM 0:276e7a263c35 985 *
MACRUM 0:276e7a263c35 986 * Enable the checkup functions (*_self_test).
MACRUM 0:276e7a263c35 987 */
MACRUM 0:276e7a263c35 988 //#define MBEDTLS_SELF_TEST
MACRUM 0:276e7a263c35 989
MACRUM 0:276e7a263c35 990 /**
MACRUM 0:276e7a263c35 991 * \def MBEDTLS_SHA256_SMALLER
MACRUM 0:276e7a263c35 992 *
MACRUM 0:276e7a263c35 993 * Enable an implementation of SHA-256 that has lower ROM footprint but also
MACRUM 0:276e7a263c35 994 * lower performance.
MACRUM 0:276e7a263c35 995 *
MACRUM 0:276e7a263c35 996 * The default implementation is meant to be a reasonnable compromise between
MACRUM 0:276e7a263c35 997 * performance and size. This version optimizes more aggressively for size at
MACRUM 0:276e7a263c35 998 * the expense of performance. Eg on Cortex-M4 it reduces the size of
MACRUM 0:276e7a263c35 999 * mbedtls_sha256_process() from ~2KB to ~0.5KB for a performance hit of about
MACRUM 0:276e7a263c35 1000 * 30%.
MACRUM 0:276e7a263c35 1001 *
MACRUM 0:276e7a263c35 1002 * Uncomment to enable the smaller implementation of SHA256.
MACRUM 0:276e7a263c35 1003 */
MACRUM 0:276e7a263c35 1004 //#define MBEDTLS_SHA256_SMALLER
MACRUM 0:276e7a263c35 1005
MACRUM 0:276e7a263c35 1006 /**
MACRUM 0:276e7a263c35 1007 * \def MBEDTLS_SSL_ALL_ALERT_MESSAGES
MACRUM 0:276e7a263c35 1008 *
MACRUM 0:276e7a263c35 1009 * Enable sending of alert messages in case of encountered errors as per RFC.
MACRUM 0:276e7a263c35 1010 * If you choose not to send the alert messages, mbed TLS can still communicate
MACRUM 0:276e7a263c35 1011 * with other servers, only debugging of failures is harder.
MACRUM 0:276e7a263c35 1012 *
MACRUM 0:276e7a263c35 1013 * The advantage of not sending alert messages, is that no information is given
MACRUM 0:276e7a263c35 1014 * about reasons for failures thus preventing adversaries of gaining intel.
MACRUM 0:276e7a263c35 1015 *
MACRUM 0:276e7a263c35 1016 * Enable sending of all alert messages
MACRUM 0:276e7a263c35 1017 */
MACRUM 0:276e7a263c35 1018 #define MBEDTLS_SSL_ALL_ALERT_MESSAGES
MACRUM 0:276e7a263c35 1019
MACRUM 0:276e7a263c35 1020 /**
MACRUM 0:276e7a263c35 1021 * \def MBEDTLS_SSL_DEBUG_ALL
MACRUM 0:276e7a263c35 1022 *
MACRUM 0:276e7a263c35 1023 * Enable the debug messages in SSL module for all issues.
MACRUM 0:276e7a263c35 1024 * Debug messages have been disabled in some places to prevent timing
MACRUM 0:276e7a263c35 1025 * attacks due to (unbalanced) debugging function calls.
MACRUM 0:276e7a263c35 1026 *
MACRUM 0:276e7a263c35 1027 * If you need all error reporting you should enable this during debugging,
MACRUM 0:276e7a263c35 1028 * but remove this for production servers that should log as well.
MACRUM 0:276e7a263c35 1029 *
MACRUM 0:276e7a263c35 1030 * Uncomment this macro to report all debug messages on errors introducing
MACRUM 0:276e7a263c35 1031 * a timing side-channel.
MACRUM 0:276e7a263c35 1032 *
MACRUM 0:276e7a263c35 1033 */
MACRUM 0:276e7a263c35 1034 //#define MBEDTLS_SSL_DEBUG_ALL
MACRUM 0:276e7a263c35 1035
MACRUM 0:276e7a263c35 1036 /** \def MBEDTLS_SSL_ENCRYPT_THEN_MAC
MACRUM 0:276e7a263c35 1037 *
MACRUM 0:276e7a263c35 1038 * Enable support for Encrypt-then-MAC, RFC 7366.
MACRUM 0:276e7a263c35 1039 *
MACRUM 0:276e7a263c35 1040 * This allows peers that both support it to use a more robust protection for
MACRUM 0:276e7a263c35 1041 * ciphersuites using CBC, providing deep resistance against timing attacks
MACRUM 0:276e7a263c35 1042 * on the padding or underlying cipher.
MACRUM 0:276e7a263c35 1043 *
MACRUM 0:276e7a263c35 1044 * This only affects CBC ciphersuites, and is useless if none is defined.
MACRUM 0:276e7a263c35 1045 *
MACRUM 0:276e7a263c35 1046 * Requires: MBEDTLS_SSL_PROTO_TLS1 or
MACRUM 0:276e7a263c35 1047 * MBEDTLS_SSL_PROTO_TLS1_1 or
MACRUM 0:276e7a263c35 1048 * MBEDTLS_SSL_PROTO_TLS1_2
MACRUM 0:276e7a263c35 1049 *
MACRUM 0:276e7a263c35 1050 * Comment this macro to disable support for Encrypt-then-MAC
MACRUM 0:276e7a263c35 1051 */
MACRUM 0:276e7a263c35 1052 #define MBEDTLS_SSL_ENCRYPT_THEN_MAC
MACRUM 0:276e7a263c35 1053
MACRUM 0:276e7a263c35 1054 /** \def MBEDTLS_SSL_EXTENDED_MASTER_SECRET
MACRUM 0:276e7a263c35 1055 *
MACRUM 0:276e7a263c35 1056 * Enable support for Extended Master Secret, aka Session Hash
MACRUM 0:276e7a263c35 1057 * (draft-ietf-tls-session-hash-02).
MACRUM 0:276e7a263c35 1058 *
MACRUM 0:276e7a263c35 1059 * This was introduced as "the proper fix" to the Triple Handshake familiy of
MACRUM 0:276e7a263c35 1060 * attacks, but it is recommended to always use it (even if you disable
MACRUM 0:276e7a263c35 1061 * renegotiation), since it actually fixes a more fundamental issue in the
MACRUM 0:276e7a263c35 1062 * original SSL/TLS design, and has implications beyond Triple Handshake.
MACRUM 0:276e7a263c35 1063 *
MACRUM 0:276e7a263c35 1064 * Requires: MBEDTLS_SSL_PROTO_TLS1 or
MACRUM 0:276e7a263c35 1065 * MBEDTLS_SSL_PROTO_TLS1_1 or
MACRUM 0:276e7a263c35 1066 * MBEDTLS_SSL_PROTO_TLS1_2
MACRUM 0:276e7a263c35 1067 *
MACRUM 0:276e7a263c35 1068 * Comment this macro to disable support for Extended Master Secret.
MACRUM 0:276e7a263c35 1069 */
MACRUM 0:276e7a263c35 1070 #define MBEDTLS_SSL_EXTENDED_MASTER_SECRET
MACRUM 0:276e7a263c35 1071
MACRUM 0:276e7a263c35 1072 /**
MACRUM 0:276e7a263c35 1073 * \def MBEDTLS_SSL_FALLBACK_SCSV
MACRUM 0:276e7a263c35 1074 *
MACRUM 0:276e7a263c35 1075 * Enable support for FALLBACK_SCSV (draft-ietf-tls-downgrade-scsv-00).
MACRUM 0:276e7a263c35 1076 *
MACRUM 0:276e7a263c35 1077 * For servers, it is recommended to always enable this, unless you support
MACRUM 0:276e7a263c35 1078 * only one version of TLS, or know for sure that none of your clients
MACRUM 0:276e7a263c35 1079 * implements a fallback strategy.
MACRUM 0:276e7a263c35 1080 *
MACRUM 0:276e7a263c35 1081 * For clients, you only need this if you're using a fallback strategy, which
MACRUM 0:276e7a263c35 1082 * is not recommended in the first place, unless you absolutely need it to
MACRUM 0:276e7a263c35 1083 * interoperate with buggy (version-intolerant) servers.
MACRUM 0:276e7a263c35 1084 *
MACRUM 0:276e7a263c35 1085 * Comment this macro to disable support for FALLBACK_SCSV
MACRUM 0:276e7a263c35 1086 */
MACRUM 0:276e7a263c35 1087 //#define MBEDTLS_SSL_FALLBACK_SCSV
MACRUM 0:276e7a263c35 1088
MACRUM 0:276e7a263c35 1089 /**
MACRUM 0:276e7a263c35 1090 * \def MBEDTLS_SSL_HW_RECORD_ACCEL
MACRUM 0:276e7a263c35 1091 *
MACRUM 0:276e7a263c35 1092 * Enable hooking functions in SSL module for hardware acceleration of
MACRUM 0:276e7a263c35 1093 * individual records.
MACRUM 0:276e7a263c35 1094 *
MACRUM 0:276e7a263c35 1095 * Uncomment this macro to enable hooking functions.
MACRUM 0:276e7a263c35 1096 */
MACRUM 0:276e7a263c35 1097 //#define MBEDTLS_SSL_HW_RECORD_ACCEL
MACRUM 0:276e7a263c35 1098
MACRUM 0:276e7a263c35 1099 /**
MACRUM 0:276e7a263c35 1100 * \def MBEDTLS_SSL_CBC_RECORD_SPLITTING
MACRUM 0:276e7a263c35 1101 *
MACRUM 0:276e7a263c35 1102 * Enable 1/n-1 record splitting for CBC mode in SSLv3 and TLS 1.0.
MACRUM 0:276e7a263c35 1103 *
MACRUM 0:276e7a263c35 1104 * This is a countermeasure to the BEAST attack, which also minimizes the risk
MACRUM 0:276e7a263c35 1105 * of interoperability issues compared to sending 0-length records.
MACRUM 0:276e7a263c35 1106 *
MACRUM 0:276e7a263c35 1107 * Comment this macro to disable 1/n-1 record splitting.
MACRUM 0:276e7a263c35 1108 */
MACRUM 0:276e7a263c35 1109 //#define MBEDTLS_SSL_CBC_RECORD_SPLITTING
MACRUM 0:276e7a263c35 1110
MACRUM 0:276e7a263c35 1111 /**
MACRUM 0:276e7a263c35 1112 * \def MBEDTLS_SSL_RENEGOTIATION
MACRUM 0:276e7a263c35 1113 *
MACRUM 0:276e7a263c35 1114 * Disable support for TLS renegotiation.
MACRUM 0:276e7a263c35 1115 *
MACRUM 0:276e7a263c35 1116 * The two main uses of renegotiation are (1) refresh keys on long-lived
MACRUM 0:276e7a263c35 1117 * connections and (2) client authentication after the initial handshake.
MACRUM 0:276e7a263c35 1118 * If you don't need renegotiation, it's probably better to disable it, since
MACRUM 0:276e7a263c35 1119 * it has been associated with security issues in the past and is easy to
MACRUM 0:276e7a263c35 1120 * misuse/misunderstand.
MACRUM 0:276e7a263c35 1121 *
MACRUM 0:276e7a263c35 1122 * Comment this to disable support for renegotiation.
MACRUM 0:276e7a263c35 1123 */
MACRUM 0:276e7a263c35 1124 #define MBEDTLS_SSL_RENEGOTIATION
MACRUM 0:276e7a263c35 1125
MACRUM 0:276e7a263c35 1126 /**
MACRUM 0:276e7a263c35 1127 * \def MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
MACRUM 0:276e7a263c35 1128 *
MACRUM 0:276e7a263c35 1129 * Enable support for receiving and parsing SSLv2 Client Hello messages for the
MACRUM 0:276e7a263c35 1130 * SSL Server module (MBEDTLS_SSL_SRV_C).
MACRUM 0:276e7a263c35 1131 *
MACRUM 0:276e7a263c35 1132 * Uncomment this macro to enable support for SSLv2 Client Hello messages.
MACRUM 0:276e7a263c35 1133 */
MACRUM 0:276e7a263c35 1134 //#define MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
MACRUM 0:276e7a263c35 1135
MACRUM 0:276e7a263c35 1136 /**
MACRUM 0:276e7a263c35 1137 * \def MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE
MACRUM 0:276e7a263c35 1138 *
MACRUM 0:276e7a263c35 1139 * Pick the ciphersuite according to the client's preferences rather than ours
MACRUM 0:276e7a263c35 1140 * in the SSL Server module (MBEDTLS_SSL_SRV_C).
MACRUM 0:276e7a263c35 1141 *
MACRUM 0:276e7a263c35 1142 * Uncomment this macro to respect client's ciphersuite order
MACRUM 0:276e7a263c35 1143 */
MACRUM 0:276e7a263c35 1144 //#define MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE
MACRUM 0:276e7a263c35 1145
MACRUM 0:276e7a263c35 1146 /**
MACRUM 0:276e7a263c35 1147 * \def MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
MACRUM 0:276e7a263c35 1148 *
MACRUM 0:276e7a263c35 1149 * Enable support for RFC 6066 max_fragment_length extension in SSL.
MACRUM 0:276e7a263c35 1150 *
MACRUM 0:276e7a263c35 1151 * Comment this macro to disable support for the max_fragment_length extension
MACRUM 0:276e7a263c35 1152 */
MACRUM 0:276e7a263c35 1153 #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
MACRUM 0:276e7a263c35 1154
MACRUM 0:276e7a263c35 1155 /**
MACRUM 0:276e7a263c35 1156 * \def MBEDTLS_SSL_PROTO_SSL3
MACRUM 0:276e7a263c35 1157 *
MACRUM 0:276e7a263c35 1158 * Enable support for SSL 3.0.
MACRUM 0:276e7a263c35 1159 *
MACRUM 0:276e7a263c35 1160 * Requires: MBEDTLS_MD5_C
MACRUM 0:276e7a263c35 1161 * MBEDTLS_SHA1_C
MACRUM 0:276e7a263c35 1162 *
MACRUM 0:276e7a263c35 1163 * Comment this macro to disable support for SSL 3.0
MACRUM 0:276e7a263c35 1164 */
MACRUM 0:276e7a263c35 1165 //#define MBEDTLS_SSL_PROTO_SSL3
MACRUM 0:276e7a263c35 1166
MACRUM 0:276e7a263c35 1167 /**
MACRUM 0:276e7a263c35 1168 * \def MBEDTLS_SSL_PROTO_TLS1
MACRUM 0:276e7a263c35 1169 *
MACRUM 0:276e7a263c35 1170 * Enable support for TLS 1.0.
MACRUM 0:276e7a263c35 1171 *
MACRUM 0:276e7a263c35 1172 * Requires: MBEDTLS_MD5_C
MACRUM 0:276e7a263c35 1173 * MBEDTLS_SHA1_C
MACRUM 0:276e7a263c35 1174 *
MACRUM 0:276e7a263c35 1175 * Comment this macro to disable support for TLS 1.0
MACRUM 0:276e7a263c35 1176 */
MACRUM 0:276e7a263c35 1177 //#define MBEDTLS_SSL_PROTO_TLS1
MACRUM 0:276e7a263c35 1178
MACRUM 0:276e7a263c35 1179 /**
MACRUM 0:276e7a263c35 1180 * \def MBEDTLS_SSL_PROTO_TLS1_1
MACRUM 0:276e7a263c35 1181 *
MACRUM 0:276e7a263c35 1182 * Enable support for TLS 1.1 (and DTLS 1.0 if DTLS is enabled).
MACRUM 0:276e7a263c35 1183 *
MACRUM 0:276e7a263c35 1184 * Requires: MBEDTLS_MD5_C
MACRUM 0:276e7a263c35 1185 * MBEDTLS_SHA1_C
MACRUM 0:276e7a263c35 1186 *
MACRUM 0:276e7a263c35 1187 * Comment this macro to disable support for TLS 1.1 / DTLS 1.0
MACRUM 0:276e7a263c35 1188 */
MACRUM 0:276e7a263c35 1189 //#define MBEDTLS_SSL_PROTO_TLS1_1
MACRUM 0:276e7a263c35 1190
MACRUM 0:276e7a263c35 1191 /**
MACRUM 0:276e7a263c35 1192 * \def MBEDTLS_SSL_PROTO_TLS1_2
MACRUM 0:276e7a263c35 1193 *
MACRUM 0:276e7a263c35 1194 * Enable support for TLS 1.2 (and DTLS 1.2 if DTLS is enabled).
MACRUM 0:276e7a263c35 1195 *
MACRUM 0:276e7a263c35 1196 * Requires: MBEDTLS_SHA1_C or MBEDTLS_SHA256_C or MBEDTLS_SHA512_C
MACRUM 0:276e7a263c35 1197 * (Depends on ciphersuites)
MACRUM 0:276e7a263c35 1198 *
MACRUM 0:276e7a263c35 1199 * Comment this macro to disable support for TLS 1.2 / DTLS 1.2
MACRUM 0:276e7a263c35 1200 */
MACRUM 0:276e7a263c35 1201 #define MBEDTLS_SSL_PROTO_TLS1_2
MACRUM 0:276e7a263c35 1202
MACRUM 0:276e7a263c35 1203 /**
MACRUM 0:276e7a263c35 1204 * \def MBEDTLS_SSL_PROTO_DTLS
MACRUM 0:276e7a263c35 1205 *
MACRUM 0:276e7a263c35 1206 * Enable support for DTLS (all available versions).
MACRUM 0:276e7a263c35 1207 *
MACRUM 0:276e7a263c35 1208 * Enable this and MBEDTLS_SSL_PROTO_TLS1_1 to enable DTLS 1.0,
MACRUM 0:276e7a263c35 1209 * and/or this and MBEDTLS_SSL_PROTO_TLS1_2 to enable DTLS 1.2.
MACRUM 0:276e7a263c35 1210 *
MACRUM 0:276e7a263c35 1211 * Requires: MBEDTLS_SSL_PROTO_TLS1_1
MACRUM 0:276e7a263c35 1212 * or MBEDTLS_SSL_PROTO_TLS1_2
MACRUM 0:276e7a263c35 1213 *
MACRUM 0:276e7a263c35 1214 * Comment this macro to disable support for DTLS
MACRUM 0:276e7a263c35 1215 */
MACRUM 0:276e7a263c35 1216 #define MBEDTLS_SSL_PROTO_DTLS
MACRUM 0:276e7a263c35 1217
MACRUM 0:276e7a263c35 1218 /**
MACRUM 0:276e7a263c35 1219 * \def MBEDTLS_SSL_ALPN
MACRUM 0:276e7a263c35 1220 *
MACRUM 0:276e7a263c35 1221 * Enable support for RFC 7301 Application Layer Protocol Negotiation.
MACRUM 0:276e7a263c35 1222 *
MACRUM 0:276e7a263c35 1223 * Comment this macro to disable support for ALPN.
MACRUM 0:276e7a263c35 1224 */
MACRUM 0:276e7a263c35 1225 #define MBEDTLS_SSL_ALPN
MACRUM 0:276e7a263c35 1226
MACRUM 0:276e7a263c35 1227 /**
MACRUM 0:276e7a263c35 1228 * \def MBEDTLS_SSL_DTLS_ANTI_REPLAY
MACRUM 0:276e7a263c35 1229 *
MACRUM 0:276e7a263c35 1230 * Enable support for the anti-replay mechanism in DTLS.
MACRUM 0:276e7a263c35 1231 *
MACRUM 0:276e7a263c35 1232 * Requires: MBEDTLS_SSL_TLS_C
MACRUM 0:276e7a263c35 1233 * MBEDTLS_SSL_PROTO_DTLS
MACRUM 0:276e7a263c35 1234 *
MACRUM 0:276e7a263c35 1235 * \warning Disabling this is often a security risk!
MACRUM 0:276e7a263c35 1236 * See mbedtls_ssl_conf_dtls_anti_replay() for details.
MACRUM 0:276e7a263c35 1237 *
MACRUM 0:276e7a263c35 1238 * Comment this to disable anti-replay in DTLS.
MACRUM 0:276e7a263c35 1239 */
MACRUM 0:276e7a263c35 1240 #define MBEDTLS_SSL_DTLS_ANTI_REPLAY
MACRUM 0:276e7a263c35 1241
MACRUM 0:276e7a263c35 1242 /**
MACRUM 0:276e7a263c35 1243 * \def MBEDTLS_SSL_DTLS_HELLO_VERIFY
MACRUM 0:276e7a263c35 1244 *
MACRUM 0:276e7a263c35 1245 * Enable support for HelloVerifyRequest on DTLS servers.
MACRUM 0:276e7a263c35 1246 *
MACRUM 0:276e7a263c35 1247 * This feature is highly recommended to prevent DTLS servers being used as
MACRUM 0:276e7a263c35 1248 * amplifiers in DoS attacks against other hosts. It should always be enabled
MACRUM 0:276e7a263c35 1249 * unless you know for sure amplification cannot be a problem in the
MACRUM 0:276e7a263c35 1250 * environment in which your server operates.
MACRUM 0:276e7a263c35 1251 *
MACRUM 0:276e7a263c35 1252 * \warning Disabling this can ba a security risk! (see above)
MACRUM 0:276e7a263c35 1253 *
MACRUM 0:276e7a263c35 1254 * Requires: MBEDTLS_SSL_PROTO_DTLS
MACRUM 0:276e7a263c35 1255 *
MACRUM 0:276e7a263c35 1256 * Comment this to disable support for HelloVerifyRequest.
MACRUM 0:276e7a263c35 1257 */
MACRUM 0:276e7a263c35 1258 #define MBEDTLS_SSL_DTLS_HELLO_VERIFY
MACRUM 0:276e7a263c35 1259
MACRUM 0:276e7a263c35 1260 /**
MACRUM 0:276e7a263c35 1261 * \def MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
MACRUM 0:276e7a263c35 1262 *
MACRUM 0:276e7a263c35 1263 * Enable server-side support for clients that reconnect from the same port.
MACRUM 0:276e7a263c35 1264 *
MACRUM 0:276e7a263c35 1265 * Some clients unexpectedly close the connection and try to reconnect using the
MACRUM 0:276e7a263c35 1266 * same source port. This needs special support from the server to handle the
MACRUM 0:276e7a263c35 1267 * new connection securely, as described in section 4.2.8 of RFC 6347. This
MACRUM 0:276e7a263c35 1268 * flag enables that support.
MACRUM 0:276e7a263c35 1269 *
MACRUM 0:276e7a263c35 1270 * Requires: MBEDTLS_SSL_DTLS_HELLO_VERIFY
MACRUM 0:276e7a263c35 1271 *
MACRUM 0:276e7a263c35 1272 * Comment this to disable support for clients reusing the source port.
MACRUM 0:276e7a263c35 1273 */
MACRUM 0:276e7a263c35 1274 #define MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
MACRUM 0:276e7a263c35 1275
MACRUM 0:276e7a263c35 1276 /**
MACRUM 0:276e7a263c35 1277 * \def MBEDTLS_SSL_DTLS_BADMAC_LIMIT
MACRUM 0:276e7a263c35 1278 *
MACRUM 0:276e7a263c35 1279 * Enable support for a limit of records with bad MAC.
MACRUM 0:276e7a263c35 1280 *
MACRUM 0:276e7a263c35 1281 * See mbedtls_ssl_conf_dtls_badmac_limit().
MACRUM 0:276e7a263c35 1282 *
MACRUM 0:276e7a263c35 1283 * Requires: MBEDTLS_SSL_PROTO_DTLS
MACRUM 0:276e7a263c35 1284 */
MACRUM 0:276e7a263c35 1285 #define MBEDTLS_SSL_DTLS_BADMAC_LIMIT
MACRUM 0:276e7a263c35 1286
MACRUM 0:276e7a263c35 1287 /**
MACRUM 0:276e7a263c35 1288 * \def MBEDTLS_SSL_SESSION_TICKETS
MACRUM 0:276e7a263c35 1289 *
MACRUM 0:276e7a263c35 1290 * Enable support for RFC 5077 session tickets in SSL.
MACRUM 0:276e7a263c35 1291 * Client-side, provides full support for session tickets (maintainance of a
MACRUM 0:276e7a263c35 1292 * session store remains the responsibility of the application, though).
MACRUM 0:276e7a263c35 1293 * Server-side, you also need to provide callbacks for writing and parsing
MACRUM 0:276e7a263c35 1294 * tickets, including authenticated encryption and key management. Example
MACRUM 0:276e7a263c35 1295 * callbacks are provided by MBEDTLS_SSL_TICKET_C.
MACRUM 0:276e7a263c35 1296 *
MACRUM 0:276e7a263c35 1297 * Comment this macro to disable support for SSL session tickets
MACRUM 0:276e7a263c35 1298 */
MACRUM 0:276e7a263c35 1299 #define MBEDTLS_SSL_SESSION_TICKETS
MACRUM 0:276e7a263c35 1300
MACRUM 0:276e7a263c35 1301 /**
MACRUM 0:276e7a263c35 1302 * \def MBEDTLS_SSL_EXPORT_KEYS
MACRUM 0:276e7a263c35 1303 *
MACRUM 0:276e7a263c35 1304 * Enable support for exporting key block and master secret.
MACRUM 0:276e7a263c35 1305 * This is required for certain users of TLS, e.g. EAP-TLS.
MACRUM 0:276e7a263c35 1306 *
MACRUM 0:276e7a263c35 1307 * Comment this macro to disable support for key export
MACRUM 0:276e7a263c35 1308 */
MACRUM 0:276e7a263c35 1309 #define MBEDTLS_SSL_EXPORT_KEYS
MACRUM 0:276e7a263c35 1310
MACRUM 0:276e7a263c35 1311 /**
MACRUM 0:276e7a263c35 1312 * \def MBEDTLS_SSL_SERVER_NAME_INDICATION
MACRUM 0:276e7a263c35 1313 *
MACRUM 0:276e7a263c35 1314 * Enable support for RFC 6066 server name indication (SNI) in SSL.
MACRUM 0:276e7a263c35 1315 *
MACRUM 0:276e7a263c35 1316 * Requires: MBEDTLS_X509_CRT_PARSE_C
MACRUM 0:276e7a263c35 1317 *
MACRUM 0:276e7a263c35 1318 * Comment this macro to disable support for server name indication in SSL
MACRUM 0:276e7a263c35 1319 */
MACRUM 0:276e7a263c35 1320 #define MBEDTLS_SSL_SERVER_NAME_INDICATION
MACRUM 0:276e7a263c35 1321 /** s
MACRUM 0:276e7a263c35 1322 * \def MBEDTLS_SSL_TRUNCATED_HMAC
MACRUM 0:276e7a263c35 1323 *
MACRUM 0:276e7a263c35 1324 * Enable support for RFC 6066 truncated HMAC in SSL.
MACRUM 0:276e7a263c35 1325 *
MACRUM 0:276e7a263c35 1326 * Comment this macro to disable support for truncated HMAC in SSL
MACRUM 0:276e7a263c35 1327 */
MACRUM 0:276e7a263c35 1328 //#define MBEDTLS_SSL_TRUNCATED_HMAC
MACRUM 0:276e7a263c35 1329
MACRUM 0:276e7a263c35 1330 /**
MACRUM 0:276e7a263c35 1331 * \def MBEDTLS_THREADING_ALT
MACRUM 0:276e7a263c35 1332 *
MACRUM 0:276e7a263c35 1333 * Provide your own alternate threading implementation.
MACRUM 0:276e7a263c35 1334 *
MACRUM 0:276e7a263c35 1335 * Requires: MBEDTLS_THREADING_C
MACRUM 0:276e7a263c35 1336 *
MACRUM 0:276e7a263c35 1337 * Uncomment this to allow your own alternate threading implementation.
MACRUM 0:276e7a263c35 1338 */
MACRUM 0:276e7a263c35 1339 //#define MBEDTLS_THREADING_ALT
MACRUM 0:276e7a263c35 1340
MACRUM 0:276e7a263c35 1341 /**
MACRUM 0:276e7a263c35 1342 * \def MBEDTLS_THREADING_PTHREAD
MACRUM 0:276e7a263c35 1343 *
MACRUM 0:276e7a263c35 1344 * Enable the pthread wrapper layer for the threading layer.
MACRUM 0:276e7a263c35 1345 *
MACRUM 0:276e7a263c35 1346 * Requires: MBEDTLS_THREADING_C
MACRUM 0:276e7a263c35 1347 *
MACRUM 0:276e7a263c35 1348 * Uncomment this to enable pthread mutexes.
MACRUM 0:276e7a263c35 1349 */
MACRUM 0:276e7a263c35 1350 //#define MBEDTLS_THREADING_PTHREAD
MACRUM 0:276e7a263c35 1351
MACRUM 0:276e7a263c35 1352 /**
MACRUM 0:276e7a263c35 1353 * \def MBEDTLS_VERSION_FEATURES
MACRUM 0:276e7a263c35 1354 *
MACRUM 0:276e7a263c35 1355 * Allow run-time checking of compile-time enabled features. Thus allowing users
MACRUM 0:276e7a263c35 1356 * to check at run-time if the library is for instance compiled with threading
MACRUM 0:276e7a263c35 1357 * support via mbedtls_version_check_feature().
MACRUM 0:276e7a263c35 1358 *
MACRUM 0:276e7a263c35 1359 * Requires: MBEDTLS_VERSION_C
MACRUM 0:276e7a263c35 1360 *
MACRUM 0:276e7a263c35 1361 * Comment this to disable run-time checking and save ROM space
MACRUM 0:276e7a263c35 1362 */
MACRUM 0:276e7a263c35 1363 //#define MBEDTLS_VERSION_FEATURES
MACRUM 0:276e7a263c35 1364 /**
MACRUM 0:276e7a263c35 1365 * \def MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3
MACRUM 0:276e7a263c35 1366 *
MACRUM 0:276e7a263c35 1367 * If set, the X509 parser will not break-off when parsing an X509 certificate
MACRUM 0:276e7a263c35 1368 * and encountering an extension in a v1 or v2 certificate.
MACRUM 0:276e7a263c35 1369 *
MACRUM 0:276e7a263c35 1370 * Uncomment to prevent an error.
MACRUM 0:276e7a263c35 1371 */
MACRUM 0:276e7a263c35 1372 //#define MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3
MACRUM 0:276e7a263c35 1373
MACRUM 0:276e7a263c35 1374 /**
MACRUM 0:276e7a263c35 1375 * \def MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
MACRUM 0:276e7a263c35 1376 *
MACRUM 0:276e7a263c35 1377 * If set, the X509 parser will not break-off when parsing an X509 certificate
MACRUM 0:276e7a263c35 1378 * and encountering an unknown critical extension.
MACRUM 0:276e7a263c35 1379 *
MACRUM 0:276e7a263c35 1380 * \warning Depending on your PKI use, enabling this can be a security risk!
MACRUM 0:276e7a263c35 1381 *
MACRUM 0:276e7a263c35 1382 * Uncomment to prevent an error.
MACRUM 0:276e7a263c35 1383 */
MACRUM 0:276e7a263c35 1384 //#define MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
MACRUM 0:276e7a263c35 1385
MACRUM 0:276e7a263c35 1386 /**
MACRUM 0:276e7a263c35 1387 * \def MBEDTLS_X509_CHECK_KEY_USAGE
MACRUM 0:276e7a263c35 1388 *
MACRUM 0:276e7a263c35 1389 * Enable verification of the keyUsage extension (CA and leaf certificates).
MACRUM 0:276e7a263c35 1390 *
MACRUM 0:276e7a263c35 1391 * Disabling this avoids problems with mis-issued and/or misused
MACRUM 0:276e7a263c35 1392 * (intermediate) CA and leaf certificates.
MACRUM 0:276e7a263c35 1393 *
MACRUM 0:276e7a263c35 1394 * \warning Depending on your PKI use, disabling this can be a security risk!
MACRUM 0:276e7a263c35 1395 *
MACRUM 0:276e7a263c35 1396 * Comment to skip keyUsage checking for both CA and leaf certificates.
MACRUM 0:276e7a263c35 1397 */
MACRUM 0:276e7a263c35 1398 #define MBEDTLS_X509_CHECK_KEY_USAGE
MACRUM 0:276e7a263c35 1399
MACRUM 0:276e7a263c35 1400 /**
MACRUM 0:276e7a263c35 1401 * \def MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE
MACRUM 0:276e7a263c35 1402 *
MACRUM 0:276e7a263c35 1403 * Enable verification of the extendedKeyUsage extension (leaf certificates).
MACRUM 0:276e7a263c35 1404 *
MACRUM 0:276e7a263c35 1405 * Disabling this avoids problems with mis-issued and/or misused certificates.
MACRUM 0:276e7a263c35 1406 *
MACRUM 0:276e7a263c35 1407 * \warning Depending on your PKI use, disabling this can be a security risk!
MACRUM 0:276e7a263c35 1408 *
MACRUM 0:276e7a263c35 1409 * Comment to skip extendedKeyUsage checking for certificates.
MACRUM 0:276e7a263c35 1410 */
MACRUM 0:276e7a263c35 1411 #define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE
MACRUM 0:276e7a263c35 1412
MACRUM 0:276e7a263c35 1413 /**
MACRUM 0:276e7a263c35 1414 * \def MBEDTLS_X509_RSASSA_PSS_SUPPORT
MACRUM 0:276e7a263c35 1415 *
MACRUM 0:276e7a263c35 1416 * Enable parsing and verification of X.509 certificates, CRLs and CSRS
MACRUM 0:276e7a263c35 1417 * signed with RSASSA-PSS (aka PKCS#1 v2.1).
MACRUM 0:276e7a263c35 1418 *
MACRUM 0:276e7a263c35 1419 * Comment this macro to disallow using RSASSA-PSS in certificates.
MACRUM 0:276e7a263c35 1420 */
MACRUM 0:276e7a263c35 1421 //#define MBEDTLS_X509_RSASSA_PSS_SUPPORT
MACRUM 0:276e7a263c35 1422 /**
MACRUM 0:276e7a263c35 1423 * \def MBEDTLS_ZLIB_SUPPORT
MACRUM 0:276e7a263c35 1424 *
MACRUM 0:276e7a263c35 1425 * If set, the SSL/TLS module uses ZLIB to support compression and
MACRUM 0:276e7a263c35 1426 * decompression of packet data.
MACRUM 0:276e7a263c35 1427 *
MACRUM 0:276e7a263c35 1428 * \warning TLS-level compression MAY REDUCE SECURITY! See for example the
MACRUM 0:276e7a263c35 1429 * CRIME attack. Before enabling this option, you should examine with care if
MACRUM 0:276e7a263c35 1430 * CRIME or similar exploits may be a applicable to your use case.
MACRUM 0:276e7a263c35 1431 *
MACRUM 0:276e7a263c35 1432 * \note Currently compression can't be used with DTLS.
MACRUM 0:276e7a263c35 1433 *
MACRUM 0:276e7a263c35 1434 * Used in: library/ssl_tls.c
MACRUM 0:276e7a263c35 1435 * library/ssl_cli.c
MACRUM 0:276e7a263c35 1436 * library/ssl_srv.c
MACRUM 0:276e7a263c35 1437 *
MACRUM 0:276e7a263c35 1438 * This feature requires zlib library and headers to be present.
MACRUM 0:276e7a263c35 1439 *
MACRUM 0:276e7a263c35 1440 * Uncomment to enable use of ZLIB
MACRUM 0:276e7a263c35 1441 */
MACRUM 0:276e7a263c35 1442 //#define MBEDTLS_ZLIB_SUPPORT
MACRUM 0:276e7a263c35 1443 /* \} name SECTION: mbed TLS feature support */
MACRUM 0:276e7a263c35 1444
MACRUM 0:276e7a263c35 1445 /**
MACRUM 0:276e7a263c35 1446 * \name SECTION: mbed TLS modules
MACRUM 0:276e7a263c35 1447 *
MACRUM 0:276e7a263c35 1448 * This section enables or disables entire modules in mbed TLS
MACRUM 0:276e7a263c35 1449 * \{
MACRUM 0:276e7a263c35 1450 */
MACRUM 0:276e7a263c35 1451
MACRUM 0:276e7a263c35 1452 /**
MACRUM 0:276e7a263c35 1453 * \def MBEDTLS_AESNI_C
MACRUM 0:276e7a263c35 1454 *
MACRUM 0:276e7a263c35 1455 * Enable AES-NI support on x86-64.
MACRUM 0:276e7a263c35 1456 *
MACRUM 0:276e7a263c35 1457 * Module: library/aesni.c
MACRUM 0:276e7a263c35 1458 * Caller: library/aes.c
MACRUM 0:276e7a263c35 1459 *
MACRUM 0:276e7a263c35 1460 * Requires: MBEDTLS_HAVE_ASM
MACRUM 0:276e7a263c35 1461 *
MACRUM 0:276e7a263c35 1462 * This modules adds support for the AES-NI instructions on x86-64
MACRUM 0:276e7a263c35 1463 */
MACRUM 0:276e7a263c35 1464 //#define MBEDTLS_AESNI_C
MACRUM 0:276e7a263c35 1465
MACRUM 0:276e7a263c35 1466 /**
MACRUM 0:276e7a263c35 1467 * \def MBEDTLS_AES_C
MACRUM 0:276e7a263c35 1468 *
MACRUM 0:276e7a263c35 1469 * Enable the AES block cipher.
MACRUM 0:276e7a263c35 1470 *
MACRUM 0:276e7a263c35 1471 * Module: library/aes.c
MACRUM 0:276e7a263c35 1472 * Caller: library/ssl_tls.c
MACRUM 0:276e7a263c35 1473 * library/pem.c
MACRUM 0:276e7a263c35 1474 * library/ctr_drbg.c
MACRUM 0:276e7a263c35 1475 *
MACRUM 0:276e7a263c35 1476 * This module enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 1477 * enabled as well):
MACRUM 0:276e7a263c35 1478 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 1479 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 1480 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 1481 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 1482 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 1483 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 1484 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 1485 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 1486 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 1487 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 1488 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 1489 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 1490 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 1491 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 1492 * MBEDTLS_TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 1493 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 1494 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 1495 * MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
MACRUM 0:276e7a263c35 1496 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 1497 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 1498 * MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 1499 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 1500 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 1501 * MBEDTLS_TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 1502 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 1503 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 1504 * MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 1505 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 1506 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 1507 * MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 1508 * MBEDTLS_TLS_DHE_PSK_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 1509 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 1510 * MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 1511 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 1512 * MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 1513 * MBEDTLS_TLS_DHE_PSK_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 1514 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 1515 * MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 1516 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 1517 * MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 1518 * MBEDTLS_TLS_RSA_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 1519 * MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA256
MACRUM 0:276e7a263c35 1520 * MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 1521 * MBEDTLS_TLS_RSA_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 1522 * MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 1523 * MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 1524 * MBEDTLS_TLS_RSA_PSK_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 1525 * MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 1526 * MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 1527 * MBEDTLS_TLS_RSA_PSK_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 1528 * MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 1529 * MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 1530 * MBEDTLS_TLS_PSK_WITH_AES_256_GCM_SHA384
MACRUM 0:276e7a263c35 1531 * MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA384
MACRUM 0:276e7a263c35 1532 * MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA
MACRUM 0:276e7a263c35 1533 * MBEDTLS_TLS_PSK_WITH_AES_128_GCM_SHA256
MACRUM 0:276e7a263c35 1534 * MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 1535 * MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA
MACRUM 0:276e7a263c35 1536 *
MACRUM 0:276e7a263c35 1537 * PEM_PARSE uses AES for decrypting encrypted keys.
MACRUM 0:276e7a263c35 1538 */
MACRUM 0:276e7a263c35 1539 #define MBEDTLS_AES_C
MACRUM 0:276e7a263c35 1540
MACRUM 0:276e7a263c35 1541 /**
MACRUM 0:276e7a263c35 1542 * \def MBEDTLS_ARC4_C
MACRUM 0:276e7a263c35 1543 *
MACRUM 0:276e7a263c35 1544 * Enable the ARCFOUR stream cipher.
MACRUM 0:276e7a263c35 1545 *
MACRUM 0:276e7a263c35 1546 * Module: library/arc4.c
MACRUM 0:276e7a263c35 1547 * Caller: library/ssl_tls.c
MACRUM 0:276e7a263c35 1548 *
MACRUM 0:276e7a263c35 1549 * This module enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 1550 * enabled as well):
MACRUM 0:276e7a263c35 1551 * MBEDTLS_TLS_ECDH_ECDSA_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 1552 * MBEDTLS_TLS_ECDH_RSA_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 1553 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 1554 * MBEDTLS_TLS_ECDHE_RSA_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 1555 * MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 1556 * MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 1557 * MBEDTLS_TLS_RSA_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 1558 * MBEDTLS_TLS_RSA_WITH_RC4_128_MD5
MACRUM 0:276e7a263c35 1559 * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 1560 * MBEDTLS_TLS_PSK_WITH_RC4_128_SHA
MACRUM 0:276e7a263c35 1561 */
MACRUM 0:276e7a263c35 1562 //#define MBEDTLS_ARC4_C
MACRUM 0:276e7a263c35 1563
MACRUM 0:276e7a263c35 1564 /**
MACRUM 0:276e7a263c35 1565 * \def MBEDTLS_ASN1_PARSE_C
MACRUM 0:276e7a263c35 1566 *
MACRUM 0:276e7a263c35 1567 * Enable the generic ASN1 parser.
MACRUM 0:276e7a263c35 1568 *
MACRUM 0:276e7a263c35 1569 * Module: library/asn1.c
MACRUM 0:276e7a263c35 1570 * Caller: library/x509.c
MACRUM 0:276e7a263c35 1571 * library/dhm.c
MACRUM 0:276e7a263c35 1572 * library/pkcs12.c
MACRUM 0:276e7a263c35 1573 * library/pkcs5.c
MACRUM 0:276e7a263c35 1574 * library/pkparse.c
MACRUM 0:276e7a263c35 1575 */
MACRUM 0:276e7a263c35 1576 #define MBEDTLS_ASN1_PARSE_C
MACRUM 0:276e7a263c35 1577
MACRUM 0:276e7a263c35 1578 /**
MACRUM 0:276e7a263c35 1579 * \def MBEDTLS_ASN1_WRITE_C
MACRUM 0:276e7a263c35 1580 *
MACRUM 0:276e7a263c35 1581 * Enable the generic ASN1 writer.
MACRUM 0:276e7a263c35 1582 *
MACRUM 0:276e7a263c35 1583 * Module: library/asn1write.c
MACRUM 0:276e7a263c35 1584 * Caller: library/ecdsa.c
MACRUM 0:276e7a263c35 1585 * library/pkwrite.c
MACRUM 0:276e7a263c35 1586 * library/x509_create.c
MACRUM 0:276e7a263c35 1587 * library/x509write_crt.c
MACRUM 0:276e7a263c35 1588 * library/x509write_csr.c
MACRUM 0:276e7a263c35 1589 */
MACRUM 0:276e7a263c35 1590 #define MBEDTLS_ASN1_WRITE_C
MACRUM 0:276e7a263c35 1591
MACRUM 0:276e7a263c35 1592 /**
MACRUM 0:276e7a263c35 1593 * \def MBEDTLS_BASE64_C
MACRUM 0:276e7a263c35 1594 *
MACRUM 0:276e7a263c35 1595 * Enable the Base64 module.
MACRUM 0:276e7a263c35 1596 *
MACRUM 0:276e7a263c35 1597 * Module: library/base64.c
MACRUM 0:276e7a263c35 1598 * Caller: library/pem.c
MACRUM 0:276e7a263c35 1599 *
MACRUM 0:276e7a263c35 1600 * This module is required for PEM support (required by X.509).
MACRUM 0:276e7a263c35 1601 */
MACRUM 0:276e7a263c35 1602 //#define MBEDTLS_BASE64_C
MACRUM 0:276e7a263c35 1603
MACRUM 0:276e7a263c35 1604 /**
MACRUM 0:276e7a263c35 1605 * \def MBEDTLS_BIGNUM_C
MACRUM 0:276e7a263c35 1606 *
MACRUM 0:276e7a263c35 1607 * Enable the multi-precision integer library.
MACRUM 0:276e7a263c35 1608 *
MACRUM 0:276e7a263c35 1609 * Module: library/bignum.c
MACRUM 0:276e7a263c35 1610 * Caller: library/dhm.c
MACRUM 0:276e7a263c35 1611 * library/ecp.c
MACRUM 0:276e7a263c35 1612 * library/ecdsa.c
MACRUM 0:276e7a263c35 1613 * library/rsa.c
MACRUM 0:276e7a263c35 1614 * library/ssl_tls.c
MACRUM 0:276e7a263c35 1615 *
MACRUM 0:276e7a263c35 1616 * This module is required for RSA, DHM and ECC (ECDH, ECDSA) support.
MACRUM 0:276e7a263c35 1617 */
MACRUM 0:276e7a263c35 1618 #define MBEDTLS_BIGNUM_C
MACRUM 0:276e7a263c35 1619
MACRUM 0:276e7a263c35 1620 /**
MACRUM 0:276e7a263c35 1621 * \def MBEDTLS_BLOWFISH_C
MACRUM 0:276e7a263c35 1622 *
MACRUM 0:276e7a263c35 1623 * Enable the Blowfish block cipher.
MACRUM 0:276e7a263c35 1624 *
MACRUM 0:276e7a263c35 1625 * Module: library/blowfish.c
MACRUM 0:276e7a263c35 1626 */
MACRUM 0:276e7a263c35 1627 //#define MBEDTLS_BLOWFISH_C
MACRUM 0:276e7a263c35 1628
MACRUM 0:276e7a263c35 1629 /**
MACRUM 0:276e7a263c35 1630 * \def MBEDTLS_CAMELLIA_C
MACRUM 0:276e7a263c35 1631 *
MACRUM 0:276e7a263c35 1632 * Enable the Camellia block cipher.
MACRUM 0:276e7a263c35 1633 *
MACRUM 0:276e7a263c35 1634 * Module: library/camellia.c
MACRUM 0:276e7a263c35 1635 * Caller: library/ssl_tls.c
MACRUM 0:276e7a263c35 1636 *
MACRUM 0:276e7a263c35 1637 * This module enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 1638 * enabled as well):
MACRUM 0:276e7a263c35 1639 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 1640 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 1641 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 1642 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 1643 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 1644 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 1645 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 1646 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 1647 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 1648 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 1649 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 1650 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 1651 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 1652 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
MACRUM 0:276e7a263c35 1653 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
MACRUM 0:276e7a263c35 1654 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 1655 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 1656 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 1657 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 1658 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 1659 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 1660 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
MACRUM 0:276e7a263c35 1661 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 1662 * MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 1663 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 1664 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 1665 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 1666 * MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 1667 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 1668 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256
MACRUM 0:276e7a263c35 1669 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
MACRUM 0:276e7a263c35 1670 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 1671 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 1672 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
MACRUM 0:276e7a263c35 1673 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 1674 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 1675 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 1676 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 1677 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384
MACRUM 0:276e7a263c35 1678 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384
MACRUM 0:276e7a263c35 1679 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
MACRUM 0:276e7a263c35 1680 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
MACRUM 0:276e7a263c35 1681 */
MACRUM 0:276e7a263c35 1682 //#define MBEDTLS_CAMELLIA_C
MACRUM 0:276e7a263c35 1683
MACRUM 0:276e7a263c35 1684 /**
MACRUM 0:276e7a263c35 1685 * \def MBEDTLS_CCM_C
MACRUM 0:276e7a263c35 1686 *
MACRUM 0:276e7a263c35 1687 * Enable the Counter with CBC-MAC (CCM) mode for 128-bit block cipher.
MACRUM 0:276e7a263c35 1688 *
MACRUM 0:276e7a263c35 1689 * Module: library/ccm.c
MACRUM 0:276e7a263c35 1690 *
MACRUM 0:276e7a263c35 1691 * Requires: MBEDTLS_AES_C or MBEDTLS_CAMELLIA_C
MACRUM 0:276e7a263c35 1692 *
MACRUM 0:276e7a263c35 1693 * This module enables the AES-CCM ciphersuites, if other requisites are
MACRUM 0:276e7a263c35 1694 * enabled as well.
MACRUM 0:276e7a263c35 1695 */
MACRUM 0:276e7a263c35 1696 #define MBEDTLS_CCM_C
MACRUM 0:276e7a263c35 1697
MACRUM 0:276e7a263c35 1698 /**
MACRUM 0:276e7a263c35 1699 * \def MBEDTLS_CERTS_C
MACRUM 0:276e7a263c35 1700 *
MACRUM 0:276e7a263c35 1701 * Enable the test certificates.
MACRUM 0:276e7a263c35 1702 *
MACRUM 0:276e7a263c35 1703 * Module: library/certs.c
MACRUM 0:276e7a263c35 1704 * Caller:
MACRUM 0:276e7a263c35 1705 *
MACRUM 0:276e7a263c35 1706 * This module is used for testing (ssl_client/server).
MACRUM 0:276e7a263c35 1707 */
MACRUM 0:276e7a263c35 1708 //#define MBEDTLS_CERTS_C
MACRUM 0:276e7a263c35 1709
MACRUM 0:276e7a263c35 1710 /**
MACRUM 0:276e7a263c35 1711 * \def MBEDTLS_CIPHER_C
MACRUM 0:276e7a263c35 1712 *
MACRUM 0:276e7a263c35 1713 * Enable the generic cipher layer.
MACRUM 0:276e7a263c35 1714 *
MACRUM 0:276e7a263c35 1715 * Module: library/cipher.c
MACRUM 0:276e7a263c35 1716 * Caller: library/ssl_tls.c
MACRUM 0:276e7a263c35 1717 *
MACRUM 0:276e7a263c35 1718 * Uncomment to enable generic cipher wrappers.
MACRUM 0:276e7a263c35 1719 */
MACRUM 0:276e7a263c35 1720 #define MBEDTLS_CIPHER_C
MACRUM 0:276e7a263c35 1721
MACRUM 0:276e7a263c35 1722 /**
MACRUM 0:276e7a263c35 1723 * \def MBEDTLS_CMAC_C
MACRUM 0:276e7a263c35 1724 *
MACRUM 0:276e7a263c35 1725 * Enable the CMAC (Cipher-based Message Authentication Code) mode for block
MACRUM 0:276e7a263c35 1726 * ciphers.
MACRUM 0:276e7a263c35 1727 *
MACRUM 0:276e7a263c35 1728 * Module: library/cmac.c
MACRUM 0:276e7a263c35 1729 *
MACRUM 0:276e7a263c35 1730 * Requires: MBEDTLS_AES_C or MBEDTLS_DES_C
MACRUM 0:276e7a263c35 1731 *
MACRUM 0:276e7a263c35 1732 */
MACRUM 0:276e7a263c35 1733 #define MBEDTLS_CMAC_C
MACRUM 0:276e7a263c35 1734
MACRUM 0:276e7a263c35 1735 /**
MACRUM 0:276e7a263c35 1736 * \def MBEDTLS_CTR_DRBG_C
MACRUM 0:276e7a263c35 1737 *
MACRUM 0:276e7a263c35 1738 * Enable the CTR_DRBG AES-256-based random generator.
MACRUM 0:276e7a263c35 1739 *
MACRUM 0:276e7a263c35 1740 * Module: library/ctr_drbg.c
MACRUM 0:276e7a263c35 1741 * Caller:
MACRUM 0:276e7a263c35 1742 *
MACRUM 0:276e7a263c35 1743 * Requires: MBEDTLS_AES_C
MACRUM 0:276e7a263c35 1744 *
MACRUM 0:276e7a263c35 1745 * This module provides the CTR_DRBG AES-256 random number generator.
MACRUM 0:276e7a263c35 1746 */
MACRUM 0:276e7a263c35 1747 #define MBEDTLS_CTR_DRBG_C
MACRUM 0:276e7a263c35 1748
MACRUM 0:276e7a263c35 1749 /**
MACRUM 0:276e7a263c35 1750 * \def MBEDTLS_DEBUG_C
MACRUM 0:276e7a263c35 1751 *
MACRUM 0:276e7a263c35 1752 * Enable the debug functions.
MACRUM 0:276e7a263c35 1753 *
MACRUM 0:276e7a263c35 1754 * Module: library/debug.c
MACRUM 0:276e7a263c35 1755 * Caller: library/ssl_cli.c
MACRUM 0:276e7a263c35 1756 * library/ssl_srv.c
MACRUM 0:276e7a263c35 1757 * library/ssl_tls.c
MACRUM 0:276e7a263c35 1758 *
MACRUM 0:276e7a263c35 1759 * This module provides debugging functions.
MACRUM 0:276e7a263c35 1760 */
MACRUM 0:276e7a263c35 1761 //#define MBEDTLS_DEBUG_C
MACRUM 0:276e7a263c35 1762
MACRUM 0:276e7a263c35 1763 /**
MACRUM 0:276e7a263c35 1764 * \def MBEDTLS_DES_C
MACRUM 0:276e7a263c35 1765 *
MACRUM 0:276e7a263c35 1766 * Enable the DES block cipher.
MACRUM 0:276e7a263c35 1767 *
MACRUM 0:276e7a263c35 1768 * Module: library/des.c
MACRUM 0:276e7a263c35 1769 * Caller: library/pem.c
MACRUM 0:276e7a263c35 1770 * library/ssl_tls.c
MACRUM 0:276e7a263c35 1771 *
MACRUM 0:276e7a263c35 1772 * This module enables the following ciphersuites (if other requisites are
MACRUM 0:276e7a263c35 1773 * enabled as well):
MACRUM 0:276e7a263c35 1774 * MBEDTLS_TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 1775 * MBEDTLS_TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 1776 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 1777 * MBEDTLS_TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 1778 * MBEDTLS_TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 1779 * MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 1780 * MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 1781 * MBEDTLS_TLS_RSA_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 1782 * MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 1783 * MBEDTLS_TLS_PSK_WITH_3DES_EDE_CBC_SHA
MACRUM 0:276e7a263c35 1784 *
MACRUM 0:276e7a263c35 1785 * PEM_PARSE uses DES/3DES for decrypting encrypted keys.
MACRUM 0:276e7a263c35 1786 */
MACRUM 0:276e7a263c35 1787 //#define MBEDTLS_DES_C
MACRUM 0:276e7a263c35 1788
MACRUM 0:276e7a263c35 1789 /**
MACRUM 0:276e7a263c35 1790 * \def MBEDTLS_DHM_C
MACRUM 0:276e7a263c35 1791 *
MACRUM 0:276e7a263c35 1792 * Enable the Diffie-Hellman-Merkle module.
MACRUM 0:276e7a263c35 1793 *
MACRUM 0:276e7a263c35 1794 * Module: library/dhm.c
MACRUM 0:276e7a263c35 1795 * Caller: library/ssl_cli.c
MACRUM 0:276e7a263c35 1796 * library/ssl_srv.c
MACRUM 0:276e7a263c35 1797 *
MACRUM 0:276e7a263c35 1798 * This module is used by the following key exchanges:
MACRUM 0:276e7a263c35 1799 * DHE-RSA, DHE-PSK
MACRUM 0:276e7a263c35 1800 */
MACRUM 0:276e7a263c35 1801 //#define MBEDTLS_DHM_C
MACRUM 0:276e7a263c35 1802
MACRUM 0:276e7a263c35 1803 /**
MACRUM 0:276e7a263c35 1804 * \def MBEDTLS_ECDH_C
MACRUM 0:276e7a263c35 1805 *
MACRUM 0:276e7a263c35 1806 * Enable the elliptic curve Diffie-Hellman library.
MACRUM 0:276e7a263c35 1807 *
MACRUM 0:276e7a263c35 1808 * Module: library/ecdh.c
MACRUM 0:276e7a263c35 1809 * Caller: library/ssl_cli.c
MACRUM 0:276e7a263c35 1810 * library/ssl_srv.c
MACRUM 0:276e7a263c35 1811 *
MACRUM 0:276e7a263c35 1812 * This module is used by the following key exchanges:
MACRUM 0:276e7a263c35 1813 * ECDHE-ECDSA, ECDHE-RSA, DHE-PSK
MACRUM 0:276e7a263c35 1814 *
MACRUM 0:276e7a263c35 1815 * Requires: MBEDTLS_ECP_C
MACRUM 0:276e7a263c35 1816 */
MACRUM 0:276e7a263c35 1817 #define MBEDTLS_ECDH_C
MACRUM 0:276e7a263c35 1818
MACRUM 0:276e7a263c35 1819 /**
MACRUM 0:276e7a263c35 1820 * \def MBEDTLS_ECDSA_C
MACRUM 0:276e7a263c35 1821 *
MACRUM 0:276e7a263c35 1822 * Enable the elliptic curve DSA library.
MACRUM 0:276e7a263c35 1823 *
MACRUM 0:276e7a263c35 1824 * Module: library/ecdsa.c
MACRUM 0:276e7a263c35 1825 * Caller:
MACRUM 0:276e7a263c35 1826 *
MACRUM 0:276e7a263c35 1827 * This module is used by the following key exchanges:
MACRUM 0:276e7a263c35 1828 * ECDHE-ECDSA
MACRUM 0:276e7a263c35 1829 *
MACRUM 0:276e7a263c35 1830 * Requires: MBEDTLS_ECP_C, MBEDTLS_ASN1_WRITE_C, MBEDTLS_ASN1_PARSE_C
MACRUM 0:276e7a263c35 1831 */
MACRUM 0:276e7a263c35 1832 #define MBEDTLS_ECDSA_C
MACRUM 0:276e7a263c35 1833
MACRUM 0:276e7a263c35 1834 /**
MACRUM 0:276e7a263c35 1835 * \def MBEDTLS_ECJPAKE_C
MACRUM 0:276e7a263c35 1836 *
MACRUM 0:276e7a263c35 1837 * Enable the elliptic curve J-PAKE library.
MACRUM 0:276e7a263c35 1838 *
MACRUM 0:276e7a263c35 1839 * \warning This is currently experimental. EC J-PAKE support is based on the
MACRUM 0:276e7a263c35 1840 * Thread v1.0.0 specification; incompatible changes to the specification
MACRUM 0:276e7a263c35 1841 * might still happen. For this reason, this is disabled by default.
MACRUM 0:276e7a263c35 1842 *
MACRUM 0:276e7a263c35 1843 * Module: library/ecjpake.c
MACRUM 0:276e7a263c35 1844 * Caller:
MACRUM 0:276e7a263c35 1845 *
MACRUM 0:276e7a263c35 1846 * This module is used by the following key exchanges:
MACRUM 0:276e7a263c35 1847 * ECJPAKE
MACRUM 0:276e7a263c35 1848 *
MACRUM 0:276e7a263c35 1849 * Requires: MBEDTLS_ECP_C, MBEDTLS_MD_C
MACRUM 0:276e7a263c35 1850 */
MACRUM 0:276e7a263c35 1851 //#define MBEDTLS_ECJPAKE_C
MACRUM 0:276e7a263c35 1852
MACRUM 0:276e7a263c35 1853 /**
MACRUM 0:276e7a263c35 1854 * \def MBEDTLS_ECP_C
MACRUM 0:276e7a263c35 1855 *
MACRUM 0:276e7a263c35 1856 * Enable the elliptic curve over GF(p) library.
MACRUM 0:276e7a263c35 1857 *
MACRUM 0:276e7a263c35 1858 * Module: library/ecp.c
MACRUM 0:276e7a263c35 1859 * Caller: library/ecdh.c
MACRUM 0:276e7a263c35 1860 * library/ecdsa.c
MACRUM 0:276e7a263c35 1861 * library/ecjpake.c
MACRUM 0:276e7a263c35 1862 *
MACRUM 0:276e7a263c35 1863 * Requires: MBEDTLS_BIGNUM_C and at least one MBEDTLS_ECP_DP_XXX_ENABLED
MACRUM 0:276e7a263c35 1864 */
MACRUM 0:276e7a263c35 1865 #define MBEDTLS_ECP_C
MACRUM 0:276e7a263c35 1866
MACRUM 0:276e7a263c35 1867 /**
MACRUM 0:276e7a263c35 1868 * \def MBEDTLS_ENTROPY_C
MACRUM 0:276e7a263c35 1869 *
MACRUM 0:276e7a263c35 1870 * Enable the platform-specific entropy code.
MACRUM 0:276e7a263c35 1871 *
MACRUM 0:276e7a263c35 1872 * Module: library/entropy.c
MACRUM 0:276e7a263c35 1873 * Caller:
MACRUM 0:276e7a263c35 1874 *
MACRUM 0:276e7a263c35 1875 * Requires: MBEDTLS_SHA512_C or MBEDTLS_SHA256_C
MACRUM 0:276e7a263c35 1876 *
MACRUM 0:276e7a263c35 1877 * This module provides a generic entropy pool
MACRUM 0:276e7a263c35 1878 */
MACRUM 0:276e7a263c35 1879 #define MBEDTLS_ENTROPY_C
MACRUM 0:276e7a263c35 1880
MACRUM 0:276e7a263c35 1881 /**
MACRUM 0:276e7a263c35 1882 * \def MBEDTLS_ERROR_C
MACRUM 0:276e7a263c35 1883 *
MACRUM 0:276e7a263c35 1884 * Enable error code to error string conversion.
MACRUM 0:276e7a263c35 1885 *
MACRUM 0:276e7a263c35 1886 * Module: library/error.c
MACRUM 0:276e7a263c35 1887 * Caller:
MACRUM 0:276e7a263c35 1888 *
MACRUM 0:276e7a263c35 1889 * This module enables mbedtls_strerror().
MACRUM 0:276e7a263c35 1890 */
MACRUM 0:276e7a263c35 1891 //#define MBEDTLS_ERROR_C
MACRUM 0:276e7a263c35 1892
MACRUM 0:276e7a263c35 1893 /**
MACRUM 0:276e7a263c35 1894 * \def MBEDTLS_GCM_C
MACRUM 0:276e7a263c35 1895 *
MACRUM 0:276e7a263c35 1896 * Enable the Galois/Counter Mode (GCM) for AES.
MACRUM 0:276e7a263c35 1897 *
MACRUM 0:276e7a263c35 1898 * Module: library/gcm.c
MACRUM 0:276e7a263c35 1899 *
MACRUM 0:276e7a263c35 1900 * Requires: MBEDTLS_AES_C or MBEDTLS_CAMELLIA_C
MACRUM 0:276e7a263c35 1901 *
MACRUM 0:276e7a263c35 1902 * This module enables the AES-GCM and CAMELLIA-GCM ciphersuites, if other
MACRUM 0:276e7a263c35 1903 * requisites are enabled as well.
MACRUM 0:276e7a263c35 1904 */
MACRUM 0:276e7a263c35 1905 #define MBEDTLS_GCM_C
MACRUM 0:276e7a263c35 1906
MACRUM 0:276e7a263c35 1907 /**
MACRUM 0:276e7a263c35 1908 * \def MBEDTLS_HAVEGE_C
MACRUM 0:276e7a263c35 1909 *
MACRUM 0:276e7a263c35 1910 * Enable the HAVEGE random generator.
MACRUM 0:276e7a263c35 1911 *
MACRUM 0:276e7a263c35 1912 * Warning: the HAVEGE random generator is not suitable for virtualized
MACRUM 0:276e7a263c35 1913 * environments
MACRUM 0:276e7a263c35 1914 *
MACRUM 0:276e7a263c35 1915 * Warning: the HAVEGE random generator is dependent on timing and specific
MACRUM 0:276e7a263c35 1916 * processor traits. It is therefore not advised to use HAVEGE as
MACRUM 0:276e7a263c35 1917 * your applications primary random generator or primary entropy pool
MACRUM 0:276e7a263c35 1918 * input. As a secondary input to your entropy pool, it IS able add
MACRUM 0:276e7a263c35 1919 * the (limited) extra entropy it provides.
MACRUM 0:276e7a263c35 1920 *
MACRUM 0:276e7a263c35 1921 * Module: library/havege.c
MACRUM 0:276e7a263c35 1922 * Caller:
MACRUM 0:276e7a263c35 1923 *
MACRUM 0:276e7a263c35 1924 * Requires: MBEDTLS_TIMING_C
MACRUM 0:276e7a263c35 1925 *
MACRUM 0:276e7a263c35 1926 * Uncomment to enable the HAVEGE random generator.
MACRUM 0:276e7a263c35 1927 */
MACRUM 0:276e7a263c35 1928 //#define MBEDTLS_HAVEGE_C
MACRUM 0:276e7a263c35 1929
MACRUM 0:276e7a263c35 1930 /**
MACRUM 0:276e7a263c35 1931 * \def MBEDTLS_HMAC_DRBG_C
MACRUM 0:276e7a263c35 1932 *
MACRUM 0:276e7a263c35 1933 * Enable the HMAC_DRBG random generator.
MACRUM 0:276e7a263c35 1934 *
MACRUM 0:276e7a263c35 1935 * Module: library/hmac_drbg.c
MACRUM 0:276e7a263c35 1936 * Caller:
MACRUM 0:276e7a263c35 1937 *
MACRUM 0:276e7a263c35 1938 * Requires: MBEDTLS_MD_C
MACRUM 0:276e7a263c35 1939 *
MACRUM 0:276e7a263c35 1940 * Uncomment to enable the HMAC_DRBG random number geerator.
MACRUM 0:276e7a263c35 1941 */
MACRUM 0:276e7a263c35 1942 #define MBEDTLS_HMAC_DRBG_C
MACRUM 0:276e7a263c35 1943
MACRUM 0:276e7a263c35 1944 /**
MACRUM 0:276e7a263c35 1945 * \def MBEDTLS_MD_C
MACRUM 0:276e7a263c35 1946 *
MACRUM 0:276e7a263c35 1947 * Enable the generic message digest layer.
MACRUM 0:276e7a263c35 1948 *
MACRUM 0:276e7a263c35 1949 * Module: library/md.c
MACRUM 0:276e7a263c35 1950 * Caller:
MACRUM 0:276e7a263c35 1951 *
MACRUM 0:276e7a263c35 1952 * Uncomment to enable generic message digest wrappers.
MACRUM 0:276e7a263c35 1953 */
MACRUM 0:276e7a263c35 1954 #define MBEDTLS_MD_C
MACRUM 0:276e7a263c35 1955
MACRUM 0:276e7a263c35 1956 /**
MACRUM 0:276e7a263c35 1957 * \def MBEDTLS_MD2_C
MACRUM 0:276e7a263c35 1958 *
MACRUM 0:276e7a263c35 1959 * Enable the MD2 hash algorithm.
MACRUM 0:276e7a263c35 1960 *
MACRUM 0:276e7a263c35 1961 * Module: library/md2.c
MACRUM 0:276e7a263c35 1962 * Caller:
MACRUM 0:276e7a263c35 1963 *
MACRUM 0:276e7a263c35 1964 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
MACRUM 0:276e7a263c35 1965 */
MACRUM 0:276e7a263c35 1966 //#define MBEDTLS_MD2_C
MACRUM 0:276e7a263c35 1967
MACRUM 0:276e7a263c35 1968 /**
MACRUM 0:276e7a263c35 1969 * \def MBEDTLS_MD4_C
MACRUM 0:276e7a263c35 1970 *
MACRUM 0:276e7a263c35 1971 * Enable the MD4 hash algorithm.
MACRUM 0:276e7a263c35 1972 *
MACRUM 0:276e7a263c35 1973 * Module: library/md4.c
MACRUM 0:276e7a263c35 1974 * Caller:
MACRUM 0:276e7a263c35 1975 *
MACRUM 0:276e7a263c35 1976 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
MACRUM 0:276e7a263c35 1977 */
MACRUM 0:276e7a263c35 1978 //#define MBEDTLS_MD4_C
MACRUM 0:276e7a263c35 1979
MACRUM 0:276e7a263c35 1980 /**
MACRUM 0:276e7a263c35 1981 * \def MBEDTLS_MD5_C
MACRUM 0:276e7a263c35 1982 *
MACRUM 0:276e7a263c35 1983 * Enable the MD5 hash algorithm.
MACRUM 0:276e7a263c35 1984 *
MACRUM 0:276e7a263c35 1985 * Module: library/md5.c
MACRUM 0:276e7a263c35 1986 * Caller: library/md.c
MACRUM 0:276e7a263c35 1987 * library/pem.c
MACRUM 0:276e7a263c35 1988 * library/ssl_tls.c
MACRUM 0:276e7a263c35 1989 *
MACRUM 0:276e7a263c35 1990 * This module is required for SSL/TLS and X.509.
MACRUM 0:276e7a263c35 1991 * PEM_PARSE uses MD5 for decrypting encrypted keys.
MACRUM 0:276e7a263c35 1992 */
MACRUM 0:276e7a263c35 1993 //#define MBEDTLS_MD5_C
MACRUM 0:276e7a263c35 1994
MACRUM 0:276e7a263c35 1995 /**
MACRUM 0:276e7a263c35 1996 * \def MBEDTLS_MEMORY_BUFFER_ALLOC_C
MACRUM 0:276e7a263c35 1997 *
MACRUM 0:276e7a263c35 1998 * Enable the buffer allocator implementation that makes use of a (stack)
MACRUM 0:276e7a263c35 1999 * based buffer to 'allocate' dynamic memory. (replaces calloc() and free()
MACRUM 0:276e7a263c35 2000 * calls)
MACRUM 0:276e7a263c35 2001 *
MACRUM 0:276e7a263c35 2002 * Module: library/memory_buffer_alloc.c
MACRUM 0:276e7a263c35 2003 *
MACRUM 0:276e7a263c35 2004 * Requires: MBEDTLS_PLATFORM_C
MACRUM 0:276e7a263c35 2005 * MBEDTLS_PLATFORM_MEMORY (to use it within mbed TLS)
MACRUM 0:276e7a263c35 2006 *
MACRUM 0:276e7a263c35 2007 * Enable this module to enable the buffer memory allocator.
MACRUM 0:276e7a263c35 2008 */
MACRUM 0:276e7a263c35 2009 //#define MBEDTLS_MEMORY_BUFFER_ALLOC_C
MACRUM 0:276e7a263c35 2010
MACRUM 0:276e7a263c35 2011 /**
MACRUM 0:276e7a263c35 2012 * \def MBEDTLS_NET_C
MACRUM 0:276e7a263c35 2013 *
MACRUM 0:276e7a263c35 2014 * Enable the TCP and UDP over IPv6/IPv4 networking routines.
MACRUM 0:276e7a263c35 2015 *
MACRUM 0:276e7a263c35 2016 * \note This module only works on POSIX/Unix (including Linux, BSD and OS X)
MACRUM 0:276e7a263c35 2017 * and Windows. For other platforms, you'll want to disable it, and write your
MACRUM 0:276e7a263c35 2018 * own networking callbacks to be passed to \c mbedtls_ssl_set_bio().
MACRUM 0:276e7a263c35 2019 *
MACRUM 0:276e7a263c35 2020 * \note See also our Knowledge Base article about porting to a new
MACRUM 0:276e7a263c35 2021 * environment:
MACRUM 0:276e7a263c35 2022 * https://tls.mbed.org/kb/how-to/how-do-i-port-mbed-tls-to-a-new-environment-OS
MACRUM 0:276e7a263c35 2023 *
MACRUM 0:276e7a263c35 2024 * Module: library/net_sockets.c
MACRUM 0:276e7a263c35 2025 *
MACRUM 0:276e7a263c35 2026 * This module provides networking routines.
MACRUM 0:276e7a263c35 2027 */
MACRUM 0:276e7a263c35 2028 //#define MBEDTLS_NET_C
MACRUM 0:276e7a263c35 2029
MACRUM 0:276e7a263c35 2030 /**
MACRUM 0:276e7a263c35 2031 * \def MBEDTLS_OID_C
MACRUM 0:276e7a263c35 2032 *
MACRUM 0:276e7a263c35 2033 * Enable the OID database.
MACRUM 0:276e7a263c35 2034 *
MACRUM 0:276e7a263c35 2035 * Module: library/oid.c
MACRUM 0:276e7a263c35 2036 * Caller: library/asn1write.c
MACRUM 0:276e7a263c35 2037 * library/pkcs5.c
MACRUM 0:276e7a263c35 2038 * library/pkparse.c
MACRUM 0:276e7a263c35 2039 * library/pkwrite.c
MACRUM 0:276e7a263c35 2040 * library/rsa.c
MACRUM 0:276e7a263c35 2041 * library/x509.c
MACRUM 0:276e7a263c35 2042 * library/x509_create.c
MACRUM 0:276e7a263c35 2043 * library/x509_crl.c
MACRUM 0:276e7a263c35 2044 * library/x509_crt.c
MACRUM 0:276e7a263c35 2045 * library/x509_csr.c
MACRUM 0:276e7a263c35 2046 * library/x509write_crt.c
MACRUM 0:276e7a263c35 2047 * library/x509write_csr.c
MACRUM 0:276e7a263c35 2048 *
MACRUM 0:276e7a263c35 2049 * This modules translates between OIDs and internal values.
MACRUM 0:276e7a263c35 2050 */
MACRUM 0:276e7a263c35 2051 #define MBEDTLS_OID_C
MACRUM 0:276e7a263c35 2052
MACRUM 0:276e7a263c35 2053 /**
MACRUM 0:276e7a263c35 2054 * \def MBEDTLS_PADLOCK_C
MACRUM 0:276e7a263c35 2055 *
MACRUM 0:276e7a263c35 2056 * Enable VIA Padlock support on x86.
MACRUM 0:276e7a263c35 2057 *
MACRUM 0:276e7a263c35 2058 * Module: library/padlock.c
MACRUM 0:276e7a263c35 2059 * Caller: library/aes.c
MACRUM 0:276e7a263c35 2060 *
MACRUM 0:276e7a263c35 2061 * Requires: MBEDTLS_HAVE_ASM
MACRUM 0:276e7a263c35 2062 *
MACRUM 0:276e7a263c35 2063 * This modules adds support for the VIA PadLock on x86.
MACRUM 0:276e7a263c35 2064 */
MACRUM 0:276e7a263c35 2065 //#define MBEDTLS_PADLOCK_C
MACRUM 0:276e7a263c35 2066
MACRUM 0:276e7a263c35 2067 /**
MACRUM 0:276e7a263c35 2068 * \def MBEDTLS_PEM_PARSE_C
MACRUM 0:276e7a263c35 2069 *
MACRUM 0:276e7a263c35 2070 * Enable PEM decoding / parsing.
MACRUM 0:276e7a263c35 2071 *
MACRUM 0:276e7a263c35 2072 * Module: library/pem.c
MACRUM 0:276e7a263c35 2073 * Caller: library/dhm.c
MACRUM 0:276e7a263c35 2074 * library/pkparse.c
MACRUM 0:276e7a263c35 2075 * library/x509_crl.c
MACRUM 0:276e7a263c35 2076 * library/x509_crt.c
MACRUM 0:276e7a263c35 2077 * library/x509_csr.c
MACRUM 0:276e7a263c35 2078 *
MACRUM 0:276e7a263c35 2079 * Requires: MBEDTLS_BASE64_C
MACRUM 0:276e7a263c35 2080 *
MACRUM 0:276e7a263c35 2081 * This modules adds support for decoding / parsing PEM files.
MACRUM 0:276e7a263c35 2082 */
MACRUM 0:276e7a263c35 2083 //#define MBEDTLS_PEM_PARSE_C
MACRUM 0:276e7a263c35 2084
MACRUM 0:276e7a263c35 2085 /**
MACRUM 0:276e7a263c35 2086 * \def MBEDTLS_PEM_WRITE_C
MACRUM 0:276e7a263c35 2087 *
MACRUM 0:276e7a263c35 2088 * Enable PEM encoding / writing.
MACRUM 0:276e7a263c35 2089 *
MACRUM 0:276e7a263c35 2090 * Module: library/pem.c
MACRUM 0:276e7a263c35 2091 * Caller: library/pkwrite.c
MACRUM 0:276e7a263c35 2092 * library/x509write_crt.c
MACRUM 0:276e7a263c35 2093 * library/x509write_csr.c
MACRUM 0:276e7a263c35 2094 *
MACRUM 0:276e7a263c35 2095 * Requires: MBEDTLS_BASE64_C
MACRUM 0:276e7a263c35 2096 *
MACRUM 0:276e7a263c35 2097 * This modules adds support for encoding / writing PEM files.
MACRUM 0:276e7a263c35 2098 */
MACRUM 0:276e7a263c35 2099 //#define MBEDTLS_PEM_WRITE_C
MACRUM 0:276e7a263c35 2100
MACRUM 0:276e7a263c35 2101 /**
MACRUM 0:276e7a263c35 2102 * \def MBEDTLS_PK_C
MACRUM 0:276e7a263c35 2103 *
MACRUM 0:276e7a263c35 2104 * Enable the generic public (asymetric) key layer.
MACRUM 0:276e7a263c35 2105 *
MACRUM 0:276e7a263c35 2106 * Module: library/pk.c
MACRUM 0:276e7a263c35 2107 * Caller: library/ssl_tls.c
MACRUM 0:276e7a263c35 2108 * library/ssl_cli.c
MACRUM 0:276e7a263c35 2109 * library/ssl_srv.c
MACRUM 0:276e7a263c35 2110 *
MACRUM 0:276e7a263c35 2111 * Requires: MBEDTLS_RSA_C or MBEDTLS_ECP_C
MACRUM 0:276e7a263c35 2112 *
MACRUM 0:276e7a263c35 2113 * Uncomment to enable generic public key wrappers.
MACRUM 0:276e7a263c35 2114 */
MACRUM 0:276e7a263c35 2115 #define MBEDTLS_PK_C
MACRUM 0:276e7a263c35 2116
MACRUM 0:276e7a263c35 2117 /**
MACRUM 0:276e7a263c35 2118 * \def MBEDTLS_PK_PARSE_C
MACRUM 0:276e7a263c35 2119 *
MACRUM 0:276e7a263c35 2120 * Enable the generic public (asymetric) key parser.
MACRUM 0:276e7a263c35 2121 *
MACRUM 0:276e7a263c35 2122 * Module: library/pkparse.c
MACRUM 0:276e7a263c35 2123 * Caller: library/x509_crt.c
MACRUM 0:276e7a263c35 2124 * library/x509_csr.c
MACRUM 0:276e7a263c35 2125 *
MACRUM 0:276e7a263c35 2126 * Requires: MBEDTLS_PK_C
MACRUM 0:276e7a263c35 2127 *
MACRUM 0:276e7a263c35 2128 * Uncomment to enable generic public key parse functions.
MACRUM 0:276e7a263c35 2129 */
MACRUM 0:276e7a263c35 2130 #define MBEDTLS_PK_PARSE_C
MACRUM 0:276e7a263c35 2131
MACRUM 0:276e7a263c35 2132 /**
MACRUM 0:276e7a263c35 2133 * \def MBEDTLS_PK_WRITE_C
MACRUM 0:276e7a263c35 2134 *
MACRUM 0:276e7a263c35 2135 * Enable the generic public (asymetric) key writer.
MACRUM 0:276e7a263c35 2136 *
MACRUM 0:276e7a263c35 2137 * Module: library/pkwrite.c
MACRUM 0:276e7a263c35 2138 * Caller: library/x509write.c
MACRUM 0:276e7a263c35 2139 *
MACRUM 0:276e7a263c35 2140 * Requires: MBEDTLS_PK_C
MACRUM 0:276e7a263c35 2141 *
MACRUM 0:276e7a263c35 2142 * Uncomment to enable generic public key write functions.
MACRUM 0:276e7a263c35 2143 */
MACRUM 0:276e7a263c35 2144 #define MBEDTLS_PK_WRITE_C
MACRUM 0:276e7a263c35 2145
MACRUM 0:276e7a263c35 2146 /**
MACRUM 0:276e7a263c35 2147 * \def MBEDTLS_PKCS5_C
MACRUM 0:276e7a263c35 2148 *
MACRUM 0:276e7a263c35 2149 * Enable PKCS#5 functions.
MACRUM 0:276e7a263c35 2150 *
MACRUM 0:276e7a263c35 2151 * Module: library/pkcs5.c
MACRUM 0:276e7a263c35 2152 *
MACRUM 0:276e7a263c35 2153 * Requires: MBEDTLS_MD_C
MACRUM 0:276e7a263c35 2154 *
MACRUM 0:276e7a263c35 2155 * This module adds support for the PKCS#5 functions.
MACRUM 0:276e7a263c35 2156 */
MACRUM 0:276e7a263c35 2157 //#define MBEDTLS_PKCS5_C
MACRUM 0:276e7a263c35 2158
MACRUM 0:276e7a263c35 2159 /**
MACRUM 0:276e7a263c35 2160 * \def MBEDTLS_PKCS11_C
MACRUM 0:276e7a263c35 2161 *
MACRUM 0:276e7a263c35 2162 * Enable wrapper for PKCS#11 smartcard support.
MACRUM 0:276e7a263c35 2163 *
MACRUM 0:276e7a263c35 2164 * Module: library/pkcs11.c
MACRUM 0:276e7a263c35 2165 * Caller: library/pk.c
MACRUM 0:276e7a263c35 2166 *
MACRUM 0:276e7a263c35 2167 * Requires: MBEDTLS_PK_C
MACRUM 0:276e7a263c35 2168 *
MACRUM 0:276e7a263c35 2169 * This module enables SSL/TLS PKCS #11 smartcard support.
MACRUM 0:276e7a263c35 2170 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
MACRUM 0:276e7a263c35 2171 */
MACRUM 0:276e7a263c35 2172 //#define MBEDTLS_PKCS11_C
MACRUM 0:276e7a263c35 2173
MACRUM 0:276e7a263c35 2174 /**
MACRUM 0:276e7a263c35 2175 * \def MBEDTLS_PKCS12_C
MACRUM 0:276e7a263c35 2176 *
MACRUM 0:276e7a263c35 2177 * Enable PKCS#12 PBE functions.
MACRUM 0:276e7a263c35 2178 * Adds algorithms for parsing PKCS#8 encrypted private keys
MACRUM 0:276e7a263c35 2179 *
MACRUM 0:276e7a263c35 2180 * Module: library/pkcs12.c
MACRUM 0:276e7a263c35 2181 * Caller: library/pkparse.c
MACRUM 0:276e7a263c35 2182 *
MACRUM 0:276e7a263c35 2183 * Requires: MBEDTLS_ASN1_PARSE_C, MBEDTLS_CIPHER_C, MBEDTLS_MD_C
MACRUM 0:276e7a263c35 2184 * Can use: MBEDTLS_ARC4_C
MACRUM 0:276e7a263c35 2185 *
MACRUM 0:276e7a263c35 2186 * This module enables PKCS#12 functions.
MACRUM 0:276e7a263c35 2187 */
MACRUM 0:276e7a263c35 2188 //#define MBEDTLS_PKCS12_C
MACRUM 0:276e7a263c35 2189
MACRUM 0:276e7a263c35 2190 /**
MACRUM 0:276e7a263c35 2191 * \def MBEDTLS_PLATFORM_C
MACRUM 0:276e7a263c35 2192 *
MACRUM 0:276e7a263c35 2193 * Enable the platform abstraction layer that allows you to re-assign
MACRUM 0:276e7a263c35 2194 * functions like calloc(), free(), snprintf(), printf(), fprintf(), exit().
MACRUM 0:276e7a263c35 2195 *
MACRUM 0:276e7a263c35 2196 * Enabling MBEDTLS_PLATFORM_C enables to use of MBEDTLS_PLATFORM_XXX_ALT
MACRUM 0:276e7a263c35 2197 * or MBEDTLS_PLATFORM_XXX_MACRO directives, allowing the functions mentioned
MACRUM 0:276e7a263c35 2198 * above to be specified at runtime or compile time respectively.
MACRUM 0:276e7a263c35 2199 *
MACRUM 0:276e7a263c35 2200 * \note This abstraction layer must be enabled on Windows (including MSYS2)
MACRUM 0:276e7a263c35 2201 * as other module rely on it for a fixed snprintf implementation.
MACRUM 0:276e7a263c35 2202 *
MACRUM 0:276e7a263c35 2203 * Module: library/platform.c
MACRUM 0:276e7a263c35 2204 * Caller: Most other .c files
MACRUM 0:276e7a263c35 2205 *
MACRUM 0:276e7a263c35 2206 * This module enables abstraction of common (libc) functions.
MACRUM 0:276e7a263c35 2207 */
MACRUM 0:276e7a263c35 2208 #define MBEDTLS_PLATFORM_C
MACRUM 0:276e7a263c35 2209
MACRUM 0:276e7a263c35 2210 /**
MACRUM 0:276e7a263c35 2211 * \def MBEDTLS_RIPEMD160_C
MACRUM 0:276e7a263c35 2212 *
MACRUM 0:276e7a263c35 2213 * Enable the RIPEMD-160 hash algorithm.
MACRUM 0:276e7a263c35 2214 *
MACRUM 0:276e7a263c35 2215 * Module: library/ripemd160.c
MACRUM 0:276e7a263c35 2216 * Caller: library/md.c
MACRUM 0:276e7a263c35 2217 *
MACRUM 0:276e7a263c35 2218 */
MACRUM 0:276e7a263c35 2219 //#define MBEDTLS_RIPEMD160_C
MACRUM 0:276e7a263c35 2220
MACRUM 0:276e7a263c35 2221 /**
MACRUM 0:276e7a263c35 2222 * \def MBEDTLS_RSA_C
MACRUM 0:276e7a263c35 2223 *
MACRUM 0:276e7a263c35 2224 * Enable the RSA public-key cryptosystem.
MACRUM 0:276e7a263c35 2225 *
MACRUM 0:276e7a263c35 2226 * Module: library/rsa.c
MACRUM 0:276e7a263c35 2227 * Caller: library/ssl_cli.c
MACRUM 0:276e7a263c35 2228 * library/ssl_srv.c
MACRUM 0:276e7a263c35 2229 * library/ssl_tls.c
MACRUM 0:276e7a263c35 2230 * library/x509.c
MACRUM 0:276e7a263c35 2231 *
MACRUM 0:276e7a263c35 2232 * This module is used by the following key exchanges:
MACRUM 0:276e7a263c35 2233 * RSA, DHE-RSA, ECDHE-RSA, RSA-PSK
MACRUM 0:276e7a263c35 2234 *
MACRUM 0:276e7a263c35 2235 * Requires: MBEDTLS_BIGNUM_C, MBEDTLS_OID_C
MACRUM 0:276e7a263c35 2236 */
MACRUM 0:276e7a263c35 2237 //#define MBEDTLS_RSA_C
MACRUM 0:276e7a263c35 2238
MACRUM 0:276e7a263c35 2239 /**
MACRUM 0:276e7a263c35 2240 * \def MBEDTLS_SHA1_C
MACRUM 0:276e7a263c35 2241 *
MACRUM 0:276e7a263c35 2242 * Enable the SHA1 cryptographic hash algorithm.
MACRUM 0:276e7a263c35 2243 *
MACRUM 0:276e7a263c35 2244 * Module: library/sha1.c
MACRUM 0:276e7a263c35 2245 * Caller: library/md.c
MACRUM 0:276e7a263c35 2246 * library/ssl_cli.c
MACRUM 0:276e7a263c35 2247 * library/ssl_srv.c
MACRUM 0:276e7a263c35 2248 * library/ssl_tls.c
MACRUM 0:276e7a263c35 2249 * library/x509write_crt.c
MACRUM 0:276e7a263c35 2250 *
MACRUM 0:276e7a263c35 2251 * This module is required for SSL/TLS and SHA1-signed certificates.
MACRUM 0:276e7a263c35 2252 */
MACRUM 0:276e7a263c35 2253 //#define MBEDTLS_SHA1_C
MACRUM 0:276e7a263c35 2254
MACRUM 0:276e7a263c35 2255 /**
MACRUM 0:276e7a263c35 2256 * \def MBEDTLS_SHA256_C
MACRUM 0:276e7a263c35 2257 *
MACRUM 0:276e7a263c35 2258 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
MACRUM 0:276e7a263c35 2259 *
MACRUM 0:276e7a263c35 2260 * Module: library/sha256.c
MACRUM 0:276e7a263c35 2261 * Caller: library/entropy.c
MACRUM 0:276e7a263c35 2262 * library/md.c
MACRUM 0:276e7a263c35 2263 * library/ssl_cli.c
MACRUM 0:276e7a263c35 2264 * library/ssl_srv.c
MACRUM 0:276e7a263c35 2265 * library/ssl_tls.c
MACRUM 0:276e7a263c35 2266 *
MACRUM 0:276e7a263c35 2267 * This module adds support for SHA-224 and SHA-256.
MACRUM 0:276e7a263c35 2268 * This module is required for the SSL/TLS 1.2 PRF function.
MACRUM 0:276e7a263c35 2269 */
MACRUM 0:276e7a263c35 2270 #define MBEDTLS_SHA256_C
MACRUM 0:276e7a263c35 2271
MACRUM 0:276e7a263c35 2272 /**
MACRUM 0:276e7a263c35 2273 * \def MBEDTLS_SHA512_C
MACRUM 0:276e7a263c35 2274 *
MACRUM 0:276e7a263c35 2275 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
MACRUM 0:276e7a263c35 2276 *
MACRUM 0:276e7a263c35 2277 * Module: library/sha512.c
MACRUM 0:276e7a263c35 2278 * Caller: library/entropy.c
MACRUM 0:276e7a263c35 2279 * library/md.c
MACRUM 0:276e7a263c35 2280 * library/ssl_cli.c
MACRUM 0:276e7a263c35 2281 * library/ssl_srv.c
MACRUM 0:276e7a263c35 2282 *
MACRUM 0:276e7a263c35 2283 * This module adds support for SHA-384 and SHA-512.
MACRUM 0:276e7a263c35 2284 */
MACRUM 0:276e7a263c35 2285 //#define MBEDTLS_SHA512_C
MACRUM 0:276e7a263c35 2286
MACRUM 0:276e7a263c35 2287 /**
MACRUM 0:276e7a263c35 2288 * \def MBEDTLS_SSL_CACHE_C
MACRUM 0:276e7a263c35 2289 *
MACRUM 0:276e7a263c35 2290 * Enable simple SSL cache implementation.
MACRUM 0:276e7a263c35 2291 *
MACRUM 0:276e7a263c35 2292 * Module: library/ssl_cache.c
MACRUM 0:276e7a263c35 2293 * Caller:
MACRUM 0:276e7a263c35 2294 *
MACRUM 0:276e7a263c35 2295 * Requires: MBEDTLS_SSL_CACHE_C
MACRUM 0:276e7a263c35 2296 */
MACRUM 0:276e7a263c35 2297 #define MBEDTLS_SSL_CACHE_C
MACRUM 0:276e7a263c35 2298
MACRUM 0:276e7a263c35 2299 /**
MACRUM 0:276e7a263c35 2300 * \def MBEDTLS_SSL_COOKIE_C
MACRUM 0:276e7a263c35 2301 *
MACRUM 0:276e7a263c35 2302 * Enable basic implementation of DTLS cookies for hello verification.
MACRUM 0:276e7a263c35 2303 *
MACRUM 0:276e7a263c35 2304 * Module: library/ssl_cookie.c
MACRUM 0:276e7a263c35 2305 * Caller:
MACRUM 0:276e7a263c35 2306 */
MACRUM 0:276e7a263c35 2307 #define MBEDTLS_SSL_COOKIE_C
MACRUM 0:276e7a263c35 2308
MACRUM 0:276e7a263c35 2309 /**
MACRUM 0:276e7a263c35 2310 * \def MBEDTLS_SSL_TICKET_C
MACRUM 0:276e7a263c35 2311 *
MACRUM 0:276e7a263c35 2312 * Enable an implementation of TLS server-side callbacks for session tickets.
MACRUM 0:276e7a263c35 2313 *
MACRUM 0:276e7a263c35 2314 * Module: library/ssl_ticket.c
MACRUM 0:276e7a263c35 2315 * Caller:
MACRUM 0:276e7a263c35 2316 *
MACRUM 0:276e7a263c35 2317 * Requires: MBEDTLS_CIPHER_C
MACRUM 0:276e7a263c35 2318 */
MACRUM 0:276e7a263c35 2319 #define MBEDTLS_SSL_TICKET_C
MACRUM 0:276e7a263c35 2320
MACRUM 0:276e7a263c35 2321 /**
MACRUM 0:276e7a263c35 2322 * \def MBEDTLS_SSL_CLI_C
MACRUM 0:276e7a263c35 2323 *
MACRUM 0:276e7a263c35 2324 * Enable the SSL/TLS client code.
MACRUM 0:276e7a263c35 2325 *
MACRUM 0:276e7a263c35 2326 * Module: library/ssl_cli.c
MACRUM 0:276e7a263c35 2327 * Caller:
MACRUM 0:276e7a263c35 2328 *
MACRUM 0:276e7a263c35 2329 * Requires: MBEDTLS_SSL_TLS_C
MACRUM 0:276e7a263c35 2330 *
MACRUM 0:276e7a263c35 2331 * This module is required for SSL/TLS client support.
MACRUM 0:276e7a263c35 2332 */
MACRUM 0:276e7a263c35 2333 #define MBEDTLS_SSL_CLI_C
MACRUM 0:276e7a263c35 2334
MACRUM 0:276e7a263c35 2335 /**
MACRUM 0:276e7a263c35 2336 * \def MBEDTLS_SSL_SRV_C
MACRUM 0:276e7a263c35 2337 *
MACRUM 0:276e7a263c35 2338 * Enable the SSL/TLS server code.
MACRUM 0:276e7a263c35 2339 *
MACRUM 0:276e7a263c35 2340 * Module: library/ssl_srv.c
MACRUM 0:276e7a263c35 2341 * Caller:
MACRUM 0:276e7a263c35 2342 *
MACRUM 0:276e7a263c35 2343 * Requires: MBEDTLS_SSL_TLS_C
MACRUM 0:276e7a263c35 2344 *
MACRUM 0:276e7a263c35 2345 * This module is required for SSL/TLS server support.
MACRUM 0:276e7a263c35 2346 */
MACRUM 0:276e7a263c35 2347 //#define MBEDTLS_SSL_SRV_C
MACRUM 0:276e7a263c35 2348
MACRUM 0:276e7a263c35 2349 /**
MACRUM 0:276e7a263c35 2350 * \def MBEDTLS_SSL_TLS_C
MACRUM 0:276e7a263c35 2351 *
MACRUM 0:276e7a263c35 2352 * Enable the generic SSL/TLS code.
MACRUM 0:276e7a263c35 2353 *
MACRUM 0:276e7a263c35 2354 * Module: library/ssl_tls.c
MACRUM 0:276e7a263c35 2355 * Caller: library/ssl_cli.c
MACRUM 0:276e7a263c35 2356 * library/ssl_srv.c
MACRUM 0:276e7a263c35 2357 *
MACRUM 0:276e7a263c35 2358 * Requires: MBEDTLS_CIPHER_C, MBEDTLS_MD_C
MACRUM 0:276e7a263c35 2359 * and at least one of the MBEDTLS_SSL_PROTO_XXX defines
MACRUM 0:276e7a263c35 2360 *
MACRUM 0:276e7a263c35 2361 * This module is required for SSL/TLS.
MACRUM 0:276e7a263c35 2362 */
MACRUM 0:276e7a263c35 2363 #define MBEDTLS_SSL_TLS_C
MACRUM 0:276e7a263c35 2364
MACRUM 0:276e7a263c35 2365 /**
MACRUM 0:276e7a263c35 2366 * \def MBEDTLS_THREADING_C
MACRUM 0:276e7a263c35 2367 *
MACRUM 0:276e7a263c35 2368 * Enable the threading abstraction layer.
MACRUM 0:276e7a263c35 2369 * By default mbed TLS assumes it is used in a non-threaded environment or that
MACRUM 0:276e7a263c35 2370 * contexts are not shared between threads. If you do intend to use contexts
MACRUM 0:276e7a263c35 2371 * between threads, you will need to enable this layer to prevent race
MACRUM 0:276e7a263c35 2372 * conditions. See also our Knowledge Base article about threading:
MACRUM 0:276e7a263c35 2373 * https://tls.mbed.org/kb/development/thread-safety-and-multi-threading
MACRUM 0:276e7a263c35 2374 *
MACRUM 0:276e7a263c35 2375 * Module: library/threading.c
MACRUM 0:276e7a263c35 2376 *
MACRUM 0:276e7a263c35 2377 * This allows different threading implementations (self-implemented or
MACRUM 0:276e7a263c35 2378 * provided).
MACRUM 0:276e7a263c35 2379 *
MACRUM 0:276e7a263c35 2380 * You will have to enable either MBEDTLS_THREADING_ALT or
MACRUM 0:276e7a263c35 2381 * MBEDTLS_THREADING_PTHREAD.
MACRUM 0:276e7a263c35 2382 *
MACRUM 0:276e7a263c35 2383 * Enable this layer to allow use of mutexes within mbed TLS
MACRUM 0:276e7a263c35 2384 */
MACRUM 0:276e7a263c35 2385 //#define MBEDTLS_THREADING_C
MACRUM 0:276e7a263c35 2386
MACRUM 0:276e7a263c35 2387 /**
MACRUM 0:276e7a263c35 2388 * \def MBEDTLS_TIMING_C
MACRUM 0:276e7a263c35 2389 *
MACRUM 0:276e7a263c35 2390 * Enable the semi-portable timing interface.
MACRUM 0:276e7a263c35 2391 *
MACRUM 0:276e7a263c35 2392 * \note The provided implementation only works on POSIX/Unix (including Linux,
MACRUM 0:276e7a263c35 2393 * BSD and OS X) and Windows. On other platforms, you can either disable that
MACRUM 0:276e7a263c35 2394 * module and provide your own implementations of the callbacks needed by
MACRUM 0:276e7a263c35 2395 * \c mbedtls_ssl_set_timer_cb() for DTLS, or leave it enabled and provide
MACRUM 0:276e7a263c35 2396 * your own implementation of the whole module by setting
MACRUM 0:276e7a263c35 2397 * \c MBEDTLS_TIMING_ALT in the current file.
MACRUM 0:276e7a263c35 2398 *
MACRUM 0:276e7a263c35 2399 * \note See also our Knowledge Base article about porting to a new
MACRUM 0:276e7a263c35 2400 * environment:
MACRUM 0:276e7a263c35 2401 * https://tls.mbed.org/kb/how-to/how-do-i-port-mbed-tls-to-a-new-environment-OS
MACRUM 0:276e7a263c35 2402 *
MACRUM 0:276e7a263c35 2403 * Module: library/timing.c
MACRUM 0:276e7a263c35 2404 * Caller: library/havege.c
MACRUM 0:276e7a263c35 2405 *
MACRUM 0:276e7a263c35 2406 * This module is used by the HAVEGE random number generator.
MACRUM 0:276e7a263c35 2407 */
MACRUM 0:276e7a263c35 2408 //#define MBEDTLS_TIMING_C
MACRUM 0:276e7a263c35 2409
MACRUM 0:276e7a263c35 2410 /**
MACRUM 0:276e7a263c35 2411 * \def MBEDTLS_VERSION_C
MACRUM 0:276e7a263c35 2412 *
MACRUM 0:276e7a263c35 2413 * Enable run-time version information.
MACRUM 0:276e7a263c35 2414 *
MACRUM 0:276e7a263c35 2415 * Module: library/version.c
MACRUM 0:276e7a263c35 2416 *
MACRUM 0:276e7a263c35 2417 * This module provides run-time version information.
MACRUM 0:276e7a263c35 2418 */
MACRUM 0:276e7a263c35 2419 #define MBEDTLS_VERSION_C
MACRUM 0:276e7a263c35 2420 /**
MACRUM 0:276e7a263c35 2421 * \def MBEDTLS_X509_USE_C
MACRUM 0:276e7a263c35 2422 *
MACRUM 0:276e7a263c35 2423 * Enable X.509 core for using certificates.
MACRUM 0:276e7a263c35 2424 *
MACRUM 0:276e7a263c35 2425 * Module: library/x509.c
MACRUM 0:276e7a263c35 2426 * Caller: library/x509_crl.c
MACRUM 0:276e7a263c35 2427 * library/x509_crt.c
MACRUM 0:276e7a263c35 2428 * library/x509_csr.c
MACRUM 0:276e7a263c35 2429 *
MACRUM 0:276e7a263c35 2430 * Requires: MBEDTLS_ASN1_PARSE_C, MBEDTLS_BIGNUM_C, MBEDTLS_OID_C,
MACRUM 0:276e7a263c35 2431 * MBEDTLS_PK_PARSE_C
MACRUM 0:276e7a263c35 2432 *
MACRUM 0:276e7a263c35 2433 * This module is required for the X.509 parsing modules.
MACRUM 0:276e7a263c35 2434 */
MACRUM 0:276e7a263c35 2435 #define MBEDTLS_X509_USE_C
MACRUM 0:276e7a263c35 2436
MACRUM 0:276e7a263c35 2437 /**
MACRUM 0:276e7a263c35 2438 * \def MBEDTLS_X509_CRT_PARSE_C
MACRUM 0:276e7a263c35 2439 *
MACRUM 0:276e7a263c35 2440 * Enable X.509 certificate parsing.
MACRUM 0:276e7a263c35 2441 *
MACRUM 0:276e7a263c35 2442 * Module: library/x509_crt.c
MACRUM 0:276e7a263c35 2443 * Caller: library/ssl_cli.c
MACRUM 0:276e7a263c35 2444 * library/ssl_srv.c
MACRUM 0:276e7a263c35 2445 * library/ssl_tls.c
MACRUM 0:276e7a263c35 2446 *
MACRUM 0:276e7a263c35 2447 * Requires: MBEDTLS_X509_USE_C
MACRUM 0:276e7a263c35 2448 *
MACRUM 0:276e7a263c35 2449 * This module is required for X.509 certificate parsing.
MACRUM 0:276e7a263c35 2450 */
MACRUM 0:276e7a263c35 2451 #define MBEDTLS_X509_CRT_PARSE_C
MACRUM 0:276e7a263c35 2452
MACRUM 0:276e7a263c35 2453 /**
MACRUM 0:276e7a263c35 2454 * \def MBEDTLS_X509_CRL_PARSE_C
MACRUM 0:276e7a263c35 2455 *
MACRUM 0:276e7a263c35 2456 * Enable X.509 CRL parsing.
MACRUM 0:276e7a263c35 2457 *
MACRUM 0:276e7a263c35 2458 * Module: library/x509_crl.c
MACRUM 0:276e7a263c35 2459 * Caller: library/x509_crt.c
MACRUM 0:276e7a263c35 2460 *
MACRUM 0:276e7a263c35 2461 * Requires: MBEDTLS_X509_USE_C
MACRUM 0:276e7a263c35 2462 *
MACRUM 0:276e7a263c35 2463 * This module is required for X.509 CRL parsing.
MACRUM 0:276e7a263c35 2464 */
MACRUM 0:276e7a263c35 2465 #define MBEDTLS_X509_CRL_PARSE_C
MACRUM 0:276e7a263c35 2466
MACRUM 0:276e7a263c35 2467 /**
MACRUM 0:276e7a263c35 2468 * \def MBEDTLS_X509_CSR_PARSE_C
MACRUM 0:276e7a263c35 2469 *
MACRUM 0:276e7a263c35 2470 * Enable X.509 Certificate Signing Request (CSR) parsing.
MACRUM 0:276e7a263c35 2471 *
MACRUM 0:276e7a263c35 2472 * Module: library/x509_csr.c
MACRUM 0:276e7a263c35 2473 * Caller: library/x509_crt_write.c
MACRUM 0:276e7a263c35 2474 *
MACRUM 0:276e7a263c35 2475 * Requires: MBEDTLS_X509_USE_C
MACRUM 0:276e7a263c35 2476 *
MACRUM 0:276e7a263c35 2477 * This module is used for reading X.509 certificate request.
MACRUM 0:276e7a263c35 2478 */
MACRUM 0:276e7a263c35 2479 #define MBEDTLS_X509_CSR_PARSE_C
MACRUM 0:276e7a263c35 2480
MACRUM 0:276e7a263c35 2481 /**
MACRUM 0:276e7a263c35 2482 * \def MBEDTLS_X509_CREATE_C
MACRUM 0:276e7a263c35 2483 *
MACRUM 0:276e7a263c35 2484 * Enable X.509 core for creating certificates.
MACRUM 0:276e7a263c35 2485 *
MACRUM 0:276e7a263c35 2486 * Module: library/x509_create.c
MACRUM 0:276e7a263c35 2487 *
MACRUM 0:276e7a263c35 2488 * Requires: MBEDTLS_BIGNUM_C, MBEDTLS_OID_C, MBEDTLS_PK_WRITE_C
MACRUM 0:276e7a263c35 2489 *
MACRUM 0:276e7a263c35 2490 * This module is the basis for creating X.509 certificates and CSRs.
MACRUM 0:276e7a263c35 2491 */
MACRUM 0:276e7a263c35 2492 #define MBEDTLS_X509_CREATE_C
MACRUM 0:276e7a263c35 2493
MACRUM 0:276e7a263c35 2494 /**
MACRUM 0:276e7a263c35 2495 * \def MBEDTLS_X509_CRT_WRITE_C
MACRUM 0:276e7a263c35 2496 *
MACRUM 0:276e7a263c35 2497 * Enable creating X.509 certificates.
MACRUM 0:276e7a263c35 2498 *
MACRUM 0:276e7a263c35 2499 * Module: library/x509_crt_write.c
MACRUM 0:276e7a263c35 2500 *
MACRUM 0:276e7a263c35 2501 * Requires: MBEDTLS_X509_CREATE_C
MACRUM 0:276e7a263c35 2502 *
MACRUM 0:276e7a263c35 2503 * This module is required for X.509 certificate creation.
MACRUM 0:276e7a263c35 2504 */
MACRUM 0:276e7a263c35 2505 //#define MBEDTLS_X509_CRT_WRITE_C
MACRUM 0:276e7a263c35 2506
MACRUM 0:276e7a263c35 2507 /**
MACRUM 0:276e7a263c35 2508 * \def MBEDTLS_X509_CSR_WRITE_C
MACRUM 0:276e7a263c35 2509 *
MACRUM 0:276e7a263c35 2510 * Enable creating X.509 Certificate Signing Requests (CSR).
MACRUM 0:276e7a263c35 2511 *
MACRUM 0:276e7a263c35 2512 * Module: library/x509_csr_write.c
MACRUM 0:276e7a263c35 2513 *
MACRUM 0:276e7a263c35 2514 * Requires: MBEDTLS_X509_CREATE_C
MACRUM 0:276e7a263c35 2515 *
MACRUM 0:276e7a263c35 2516 * This module is required for X.509 certificate request writing.
MACRUM 0:276e7a263c35 2517 */
MACRUM 0:276e7a263c35 2518 #define MBEDTLS_X509_CSR_WRITE_C
MACRUM 0:276e7a263c35 2519 /**
MACRUM 0:276e7a263c35 2520 * \def MBEDTLS_XTEA_C
MACRUM 0:276e7a263c35 2521 *
MACRUM 0:276e7a263c35 2522 * Enable the XTEA block cipher.
MACRUM 0:276e7a263c35 2523 *
MACRUM 0:276e7a263c35 2524 * Module: library/xtea.c
MACRUM 0:276e7a263c35 2525 * Caller:
MACRUM 0:276e7a263c35 2526 */
MACRUM 0:276e7a263c35 2527 //#define MBEDTLS_XTEA_C
MACRUM 0:276e7a263c35 2528
MACRUM 0:276e7a263c35 2529 /* \} name SECTION: mbed TLS modules */
MACRUM 0:276e7a263c35 2530
MACRUM 0:276e7a263c35 2531 /**
MACRUM 0:276e7a263c35 2532 * \name SECTION: Module configuration options
MACRUM 0:276e7a263c35 2533 *
MACRUM 0:276e7a263c35 2534 * This section allows for the setting of module specific sizes and
MACRUM 0:276e7a263c35 2535 * configuration options. The default values are already present in the
MACRUM 0:276e7a263c35 2536 * relevant header files and should suffice for the regular use cases.
MACRUM 0:276e7a263c35 2537 *
MACRUM 0:276e7a263c35 2538 * Our advice is to enable options and change their values here
MACRUM 0:276e7a263c35 2539 * only if you have a good reason and know the consequences.
MACRUM 0:276e7a263c35 2540 *
MACRUM 0:276e7a263c35 2541 * Please check the respective header file for documentation on these
MACRUM 0:276e7a263c35 2542 * parameters (to prevent duplicate documentation).
MACRUM 0:276e7a263c35 2543 * \{
MACRUM 0:276e7a263c35 2544 */
MACRUM 0:276e7a263c35 2545
MACRUM 0:276e7a263c35 2546 /* MPI / BIGNUM options */
MACRUM 0:276e7a263c35 2547 //#define MBEDTLS_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
MACRUM 0:276e7a263c35 2548 //#define MBEDTLS_MPI_MAX_SIZE 1024 /**< Maximum number of bytes for usable MPIs. */
MACRUM 0:276e7a263c35 2549
MACRUM 0:276e7a263c35 2550 /* CTR_DRBG options */
MACRUM 0:276e7a263c35 2551 //#define MBEDTLS_CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default (48 with SHA-512, 32 with SHA-256) */
MACRUM 0:276e7a263c35 2552 //#define MBEDTLS_CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
MACRUM 0:276e7a263c35 2553 //#define MBEDTLS_CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
MACRUM 0:276e7a263c35 2554 //#define MBEDTLS_CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
MACRUM 0:276e7a263c35 2555 //#define MBEDTLS_CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
MACRUM 0:276e7a263c35 2556
MACRUM 0:276e7a263c35 2557 /* HMAC_DRBG options */
MACRUM 0:276e7a263c35 2558 //#define MBEDTLS_HMAC_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
MACRUM 0:276e7a263c35 2559 //#define MBEDTLS_HMAC_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
MACRUM 0:276e7a263c35 2560 //#define MBEDTLS_HMAC_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
MACRUM 0:276e7a263c35 2561 //#define MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
MACRUM 0:276e7a263c35 2562
MACRUM 0:276e7a263c35 2563 /* ECP options */
MACRUM 0:276e7a263c35 2564 //#define MBEDTLS_ECP_MAX_BITS 521 /**< Maximum bit size of groups */
MACRUM 0:276e7a263c35 2565 //#define MBEDTLS_ECP_WINDOW_SIZE 6 /**< Maximum window size used */
MACRUM 0:276e7a263c35 2566 //#define MBEDTLS_ECP_FIXED_POINT_OPTIM 1 /**< Enable fixed-point speed-up */
MACRUM 0:276e7a263c35 2567
MACRUM 0:276e7a263c35 2568 /* Entropy options */
MACRUM 0:276e7a263c35 2569 //#define MBEDTLS_ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
MACRUM 0:276e7a263c35 2570 //#define MBEDTLS_ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
MACRUM 0:276e7a263c35 2571 //#define MBEDTLS_ENTROPY_MIN_HARDWARE 32 /**< Default minimum number of bytes required for the hardware entropy source mbedtls_hardware_poll() before entropy is released */
MACRUM 0:276e7a263c35 2572
MACRUM 0:276e7a263c35 2573 /* Memory buffer allocator options */
MACRUM 0:276e7a263c35 2574 //#define MBEDTLS_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */
MACRUM 0:276e7a263c35 2575
MACRUM 0:276e7a263c35 2576 /* Platform options */
MACRUM 0:276e7a263c35 2577 //#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. */
MACRUM 0:276e7a263c35 2578 //#define MBEDTLS_PLATFORM_STD_CALLOC calloc /**< Default allocator to use, can be undefined */
MACRUM 0:276e7a263c35 2579 //#define MBEDTLS_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */
MACRUM 0:276e7a263c35 2580 //#define MBEDTLS_PLATFORM_STD_EXIT exit /**< Default exit to use, can be undefined */
MACRUM 0:276e7a263c35 2581 //#define MBEDTLS_PLATFORM_STD_TIME time /**< Default time to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
MACRUM 0:276e7a263c35 2582 //#define MBEDTLS_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */
MACRUM 0:276e7a263c35 2583 //#define MBEDTLS_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */
MACRUM 0:276e7a263c35 2584 /* Note: your snprintf must correclty zero-terminate the buffer! */
MACRUM 0:276e7a263c35 2585 //#define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< Default snprintf to use, can be undefined */
MACRUM 0:276e7a263c35 2586 //#define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS 0 /**< Default exit value to use, can be undefined */
MACRUM 0:276e7a263c35 2587 //#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE 1 /**< Default exit value to use, can be undefined */
MACRUM 0:276e7a263c35 2588 //#define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
MACRUM 0:276e7a263c35 2589 //#define MBEDTLS_PLATFORM_STD_NV_SEED_WRITE mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
MACRUM 0:276e7a263c35 2590 //#define MBEDTLS_PLATFORM_STD_NV_SEED_FILE "seedfile" /**< Seed file to read/write with default implementation */
MACRUM 0:276e7a263c35 2591
MACRUM 0:276e7a263c35 2592 /* To Use Function Macros MBEDTLS_PLATFORM_C must be enabled */
MACRUM 0:276e7a263c35 2593 /* MBEDTLS_PLATFORM_XXX_MACRO and MBEDTLS_PLATFORM_XXX_ALT cannot both be defined */
MACRUM 0:276e7a263c35 2594 //#define MBEDTLS_PLATFORM_CALLOC_MACRO calloc /**< Default allocator macro to use, can be undefined */
MACRUM 0:276e7a263c35 2595 //#define MBEDTLS_PLATFORM_FREE_MACRO free /**< Default free macro to use, can be undefined */
MACRUM 0:276e7a263c35 2596 //#define MBEDTLS_PLATFORM_EXIT_MACRO exit /**< Default exit macro to use, can be undefined */
MACRUM 0:276e7a263c35 2597 //#define MBEDTLS_PLATFORM_TIME_MACRO time /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
MACRUM 0:276e7a263c35 2598 //#define MBEDTLS_PLATFORM_TIME_TYPE_MACRO time_t /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
MACRUM 0:276e7a263c35 2599 //#define MBEDTLS_PLATFORM_FPRINTF_MACRO fprintf /**< Default fprintf macro to use, can be undefined */
MACRUM 0:276e7a263c35 2600 //#define MBEDTLS_PLATFORM_PRINTF_MACRO printf /**< Default printf macro to use, can be undefined */
MACRUM 0:276e7a263c35 2601 /* Note: your snprintf must correclty zero-terminate the buffer! */
MACRUM 0:276e7a263c35 2602 //#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf /**< Default snprintf macro to use, can be undefined */
MACRUM 0:276e7a263c35 2603 //#define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
MACRUM 0:276e7a263c35 2604 //#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
MACRUM 0:276e7a263c35 2605
MACRUM 0:276e7a263c35 2606 /* SSL Cache options */
MACRUM 0:276e7a263c35 2607 //#define MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
MACRUM 0:276e7a263c35 2608 //#define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
MACRUM 0:276e7a263c35 2609
MACRUM 0:276e7a263c35 2610 /* SSL options */
MACRUM 0:276e7a263c35 2611 #define MBEDTLS_SSL_MAX_CONTENT_LEN 4096 /**< Maxium fragment length in bytes, determines the size of each of the two internal I/O buffers */
MACRUM 0:276e7a263c35 2612 //#define MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME 86400 /**< Lifetime of session tickets (if enabled) */
MACRUM 0:276e7a263c35 2613 //#define MBEDTLS_PSK_MAX_LEN 32 /**< Max size of TLS pre-shared keys, in bytes (default 256 bits) */
MACRUM 0:276e7a263c35 2614 //#define MBEDTLS_SSL_COOKIE_TIMEOUT 60 /**< Default expiration delay of DTLS cookies, in seconds if HAVE_TIME, or in number of cookies issued */
MACRUM 0:276e7a263c35 2615
MACRUM 0:276e7a263c35 2616 /**
MACRUM 0:276e7a263c35 2617 * Complete list of ciphersuites to use, in order of preference.
MACRUM 0:276e7a263c35 2618 *
MACRUM 0:276e7a263c35 2619 * \warning No dependency checking is done on that field! This option can only
MACRUM 0:276e7a263c35 2620 * be used to restrict the set of available ciphersuites. It is your
MACRUM 0:276e7a263c35 2621 * responsibility to make sure the needed modules are active.
MACRUM 0:276e7a263c35 2622 *
MACRUM 0:276e7a263c35 2623 * Use this to save a few hundred bytes of ROM (default ordering of all
MACRUM 0:276e7a263c35 2624 * available ciphersuites) and a few to a few hundred bytes of RAM.
MACRUM 0:276e7a263c35 2625 *
MACRUM 0:276e7a263c35 2626 * The value below is only an example, not the default.
MACRUM 0:276e7a263c35 2627 */
MACRUM 0:276e7a263c35 2628 #define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, \
MACRUM 0:276e7a263c35 2629 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, \
MACRUM 0:276e7a263c35 2630 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, \
MACRUM 0:276e7a263c35 2631 MBEDTLS_TLS_PSK_WITH_AES_128_CCM_8, \
MACRUM 0:276e7a263c35 2632 MBEDTLS_TLS_PSK_WITH_AES_256_CCM_8, \
MACRUM 0:276e7a263c35 2633 MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA256
MACRUM 0:276e7a263c35 2634 /* X509 options */
MACRUM 0:276e7a263c35 2635 //#define MBEDTLS_X509_MAX_INTERMEDIATE_CA 8 /**< Maximum number of intermediate CAs in a verification chain. */
MACRUM 0:276e7a263c35 2636 //#define MBEDTLS_X509_MAX_FILE_PATH_LEN 512 /**< Maximum length of a path/filename string in bytes including the null terminator character ('\0'). */
MACRUM 0:276e7a263c35 2637
MACRUM 0:276e7a263c35 2638 /* \} name SECTION: Customisation configuration options */
MACRUM 0:276e7a263c35 2639
MACRUM 0:276e7a263c35 2640 /* Target and application specific configurations */
MACRUM 0:276e7a263c35 2641 //#define YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE "mbedtls/target_config.h"
MACRUM 0:276e7a263c35 2642
MACRUM 0:276e7a263c35 2643 #if defined(TARGET_LIKE_MBED) && defined(YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE)
MACRUM 0:276e7a263c35 2644 #include YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE
MACRUM 0:276e7a263c35 2645 #endif
MACRUM 0:276e7a263c35 2646
MACRUM 0:276e7a263c35 2647
MACRUM 0:276e7a263c35 2648 #include "check_config.h"
MACRUM 0:276e7a263c35 2649
MACRUM 0:276e7a263c35 2650 #if defined(MBEDTLS_TEST_NULL_ENTROPY)
MACRUM 0:276e7a263c35 2651 #warning "MBEDTLS_TEST_NULL_ENTROPY has been enabled. This " \
MACRUM 0:276e7a263c35 2652 "configuration is not secure and is not suitable for production use"
MACRUM 0:276e7a263c35 2653 #endif
MACRUM 0:276e7a263c35 2654
MACRUM 0:276e7a263c35 2655 #endif /* MBEDTLS_CONFIG_H */