blob: 9c4f62aa024d0caef3183722bc42c53c7ecebdaf [file] [log] [blame]
Gilles Peskined8374ba2018-02-16 20:36:55 +01001/**
2 * \file config-psa-crypto.h
3 *
4 * \brief Configuration with all cryptography features and no X.509 or TLS.
5 *
6 * This configuration is intended to prototype the PSA reference implementation.
7 */
8/*
9 * Copyright (C) 2006-2018, ARM Limited, All Rights Reserved
10 * SPDX-License-Identifier: Apache-2.0
11 *
12 * Licensed under the Apache License, Version 2.0 (the "License"); you may
13 * not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
15 *
16 * http://www.apache.org/licenses/LICENSE-2.0
17 *
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
20 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
23 *
24 * This file is part of mbed TLS (https://tls.mbed.org)
25 */
26
27#ifndef MBEDTLS_CONFIG_H
28#define MBEDTLS_CONFIG_H
29
30#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
31#define _CRT_SECURE_NO_DEPRECATE 1
32#endif
33
34/**
35 * \name SECTION: System support
36 *
37 * This section sets system specific settings.
38 * \{
39 */
40
41/**
42 * \def MBEDTLS_HAVE_ASM
43 *
44 * The compiler has support for asm().
45 *
46 * Requires support for asm() in compiler.
47 *
48 * Used in:
49 * library/timing.c
50 * library/padlock.c
51 * include/mbedtls/bn_mul.h
52 *
53 * Comment to disable the use of assembly code.
54 */
55#define MBEDTLS_HAVE_ASM
56
57/**
58 * \def MBEDTLS_NO_UDBL_DIVISION
59 *
60 * The platform lacks support for double-width integer division (64-bit
61 * division on a 32-bit platform, 128-bit division on a 64-bit platform).
62 *
63 * Used in:
64 * include/mbedtls/bignum.h
65 * library/bignum.c
66 *
67 * The bignum code uses double-width division to speed up some operations.
68 * Double-width division is often implemented in software that needs to
69 * be linked with the program. The presence of a double-width integer
70 * type is usually detected automatically through preprocessor macros,
71 * but the automatic detection cannot know whether the code needs to
72 * and can be linked with an implementation of division for that type.
73 * By default division is assumed to be usable if the type is present.
74 * Uncomment this option to prevent the use of double-width division.
75 *
76 * Note that division for the native integer type is always required.
77 * Furthermore, a 64-bit type is always required even on a 32-bit
78 * platform, but it need not support multiplication or division. In some
79 * cases it is also desirable to disable some double-width operations. For
80 * example, if double-width division is implemented in software, disabling
81 * it can reduce code size in some embedded targets.
82 */
83//#define MBEDTLS_NO_UDBL_DIVISION
84
85/**
86 * \def MBEDTLS_HAVE_SSE2
87 *
88 * CPU supports SSE2 instruction set.
89 *
90 * Uncomment if the CPU supports SSE2 (IA-32 specific).
91 */
92//#define MBEDTLS_HAVE_SSE2
93
94/**
95 * \def MBEDTLS_PLATFORM_MEMORY
96 *
97 * Enable the memory allocation layer.
98 *
99 * By default mbed TLS uses the system-provided calloc() and free().
100 * This allows different allocators (self-implemented or provided) to be
101 * provided to the platform abstraction layer.
102 *
103 * Enabling MBEDTLS_PLATFORM_MEMORY without the
104 * MBEDTLS_PLATFORM_{FREE,CALLOC}_MACROs will provide
105 * "mbedtls_platform_set_calloc_free()" allowing you to set an alternative calloc() and
106 * free() function pointer at runtime.
107 *
108 * Enabling MBEDTLS_PLATFORM_MEMORY and specifying
109 * MBEDTLS_PLATFORM_{CALLOC,FREE}_MACROs will allow you to specify the
110 * alternate function at compile time.
111 *
112 * Requires: MBEDTLS_PLATFORM_C
113 *
114 * Enable this layer to allow use of alternative memory allocators.
115 */
116//#define MBEDTLS_PLATFORM_MEMORY
117
118/**
119 * \def MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
120 *
121 * Do not assign standard functions in the platform layer (e.g. calloc() to
122 * MBEDTLS_PLATFORM_STD_CALLOC and printf() to MBEDTLS_PLATFORM_STD_PRINTF)
123 *
124 * This makes sure there are no linking errors on platforms that do not support
125 * these functions. You will HAVE to provide alternatives, either at runtime
126 * via the platform_set_xxx() functions or at compile time by setting
127 * the MBEDTLS_PLATFORM_STD_XXX defines, or enabling a
128 * MBEDTLS_PLATFORM_XXX_MACRO.
129 *
130 * Requires: MBEDTLS_PLATFORM_C
131 *
132 * Uncomment to prevent default assignment of standard functions in the
133 * platform layer.
134 */
135//#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
136
137/**
138 * \def MBEDTLS_PLATFORM_EXIT_ALT
139 *
140 * MBEDTLS_PLATFORM_XXX_ALT: Uncomment a macro to let mbed TLS support the
141 * function in the platform abstraction layer.
142 *
143 * Example: In case you uncomment MBEDTLS_PLATFORM_PRINTF_ALT, mbed TLS will
144 * provide a function "mbedtls_platform_set_printf()" that allows you to set an
145 * alternative printf function pointer.
146 *
147 * All these define require MBEDTLS_PLATFORM_C to be defined!
148 *
149 * \note MBEDTLS_PLATFORM_SNPRINTF_ALT is required on Windows;
150 * it will be enabled automatically by check_config.h
151 *
152 * \warning MBEDTLS_PLATFORM_XXX_ALT cannot be defined at the same time as
153 * MBEDTLS_PLATFORM_XXX_MACRO!
154 *
155 * Requires: MBEDTLS_PLATFORM_TIME_ALT requires MBEDTLS_HAVE_TIME
156 *
157 * Uncomment a macro to enable alternate implementation of specific base
158 * platform function
159 */
160//#define MBEDTLS_PLATFORM_EXIT_ALT
161//#define MBEDTLS_PLATFORM_TIME_ALT
162//#define MBEDTLS_PLATFORM_FPRINTF_ALT
163//#define MBEDTLS_PLATFORM_PRINTF_ALT
164//#define MBEDTLS_PLATFORM_SNPRINTF_ALT
165//#define MBEDTLS_PLATFORM_NV_SEED_ALT
166//#define MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT
167
168/**
169 * \def MBEDTLS_DEPRECATED_WARNING
170 *
171 * Mark deprecated functions so that they generate a warning if used.
172 * Functions deprecated in one version will usually be removed in the next
173 * version. You can enable this to help you prepare the transition to a new
174 * major version by making sure your code is not using these functions.
175 *
176 * This only works with GCC and Clang. With other compilers, you may want to
177 * use MBEDTLS_DEPRECATED_REMOVED
178 *
179 * Uncomment to get warnings on using deprecated functions.
180 */
181//#define MBEDTLS_DEPRECATED_WARNING
182
183/**
184 * \def MBEDTLS_DEPRECATED_REMOVED
185 *
186 * Remove deprecated functions so that they generate an error if used.
187 * Functions deprecated in one version will usually be removed in the next
188 * version. You can enable this to help you prepare the transition to a new
189 * major version by making sure your code is not using these functions.
190 *
191 * Uncomment to get errors on using deprecated functions.
192 */
193//#define MBEDTLS_DEPRECATED_REMOVED
194
195/* \} name SECTION: System support */
196
197/**
198 * \name SECTION: mbed TLS feature support
199 *
200 * This section sets support for features that are or are not needed
201 * within the modules that are enabled.
202 * \{
203 */
204
205/**
206 * \def MBEDTLS_AES_ALT
207 *
208 * MBEDTLS__MODULE_NAME__ALT: Uncomment a macro to let mbed TLS use your
209 * alternate core implementation of a symmetric crypto, an arithmetic or hash
210 * module (e.g. platform specific assembly optimized implementations). Keep
211 * in mind that the function prototypes should remain the same.
212 *
213 * This replaces the whole module. If you only want to replace one of the
214 * functions, use one of the MBEDTLS__FUNCTION_NAME__ALT flags.
215 *
216 * Example: In case you uncomment MBEDTLS_AES_ALT, mbed TLS will no longer
217 * provide the "struct mbedtls_aes_context" definition and omit the base
218 * function declarations and implementations. "aes_alt.h" will be included from
219 * "aes.h" to include the new function definitions.
220 *
221 * Uncomment a macro to enable alternate implementation of the corresponding
222 * module.
223 *
224 * \warning MD2, MD4, MD5, ARC4, DES and SHA-1 are considered weak and their
225 * use constitutes a security risk. If possible, we recommend
226 * avoiding dependencies on them, and considering stronger message
227 * digests and ciphers instead.
228 *
229 */
230//#define MBEDTLS_AES_ALT
231//#define MBEDTLS_ARC4_ALT
232//#define MBEDTLS_BLOWFISH_ALT
233//#define MBEDTLS_CAMELLIA_ALT
234//#define MBEDTLS_CCM_ALT
235//#define MBEDTLS_CMAC_ALT
236//#define MBEDTLS_DES_ALT
237//#define MBEDTLS_DHM_ALT
238//#define MBEDTLS_ECJPAKE_ALT
239//#define MBEDTLS_GCM_ALT
240//#define MBEDTLS_MD2_ALT
241//#define MBEDTLS_MD4_ALT
242//#define MBEDTLS_MD5_ALT
243//#define MBEDTLS_RIPEMD160_ALT
244//#define MBEDTLS_RSA_ALT
245//#define MBEDTLS_SHA1_ALT
246//#define MBEDTLS_SHA256_ALT
247//#define MBEDTLS_SHA512_ALT
248//#define MBEDTLS_XTEA_ALT
249/*
250 * When replacing the elliptic curve module, pleace consider, that it is
251 * implemented with two .c files:
252 * - ecp.c
253 * - ecp_curves.c
254 * You can replace them very much like all the other MBEDTLS__MODULE_NAME__ALT
255 * macros as described above. The only difference is that you have to make sure
256 * that you provide functionality for both .c files.
257 */
258//#define MBEDTLS_ECP_ALT
259
260/**
261 * \def MBEDTLS_MD2_PROCESS_ALT
262 *
263 * MBEDTLS__FUNCTION_NAME__ALT: Uncomment a macro to let mbed TLS use you
264 * alternate core implementation of symmetric crypto or hash function. Keep in
265 * mind that function prototypes should remain the same.
266 *
267 * This replaces only one function. The header file from mbed TLS is still
268 * used, in contrast to the MBEDTLS__MODULE_NAME__ALT flags.
269 *
270 * Example: In case you uncomment MBEDTLS_SHA256_PROCESS_ALT, mbed TLS will
271 * no longer provide the mbedtls_sha1_process() function, but it will still provide
272 * the other function (using your mbedtls_sha1_process() function) and the definition
273 * of mbedtls_sha1_context, so your implementation of mbedtls_sha1_process must be compatible
274 * with this definition.
275 *
276 * \note Because of a signature change, the core AES encryption and decryption routines are
277 * currently named mbedtls_aes_internal_encrypt and mbedtls_aes_internal_decrypt,
278 * respectively. When setting up alternative implementations, these functions should
279 * be overriden, but the wrapper functions mbedtls_aes_decrypt and mbedtls_aes_encrypt
280 * must stay untouched.
281 *
282 * \note If you use the AES_xxx_ALT macros, then is is recommended to also set
283 * MBEDTLS_AES_ROM_TABLES in order to help the linker garbage-collect the AES
284 * tables.
285 *
286 * Uncomment a macro to enable alternate implementation of the corresponding
287 * function.
288 *
289 * \warning MD2, MD4, MD5, DES and SHA-1 are considered weak and their use
290 * constitutes a security risk. If possible, we recommend avoiding
291 * dependencies on them, and considering stronger message digests
292 * and ciphers instead.
293 *
294 */
295//#define MBEDTLS_MD2_PROCESS_ALT
296//#define MBEDTLS_MD4_PROCESS_ALT
297//#define MBEDTLS_MD5_PROCESS_ALT
298//#define MBEDTLS_RIPEMD160_PROCESS_ALT
299//#define MBEDTLS_SHA1_PROCESS_ALT
300//#define MBEDTLS_SHA256_PROCESS_ALT
301//#define MBEDTLS_SHA512_PROCESS_ALT
302//#define MBEDTLS_DES_SETKEY_ALT
303//#define MBEDTLS_DES_CRYPT_ECB_ALT
304//#define MBEDTLS_DES3_CRYPT_ECB_ALT
305//#define MBEDTLS_AES_SETKEY_ENC_ALT
306//#define MBEDTLS_AES_SETKEY_DEC_ALT
307//#define MBEDTLS_AES_ENCRYPT_ALT
308//#define MBEDTLS_AES_DECRYPT_ALT
309//#define MBEDTLS_ECDH_GEN_PUBLIC_ALT
310//#define MBEDTLS_ECDH_COMPUTE_SHARED_ALT
311//#define MBEDTLS_ECDSA_VERIFY_ALT
312//#define MBEDTLS_ECDSA_SIGN_ALT
313//#define MBEDTLS_ECDSA_GENKEY_ALT
314
315/**
316 * \def MBEDTLS_ECP_INTERNAL_ALT
317 *
318 * Expose a part of the internal interface of the Elliptic Curve Point module.
319 *
320 * MBEDTLS_ECP__FUNCTION_NAME__ALT: Uncomment a macro to let mbed TLS use your
321 * alternative core implementation of elliptic curve arithmetic. Keep in mind
322 * that function prototypes should remain the same.
323 *
324 * This partially replaces one function. The header file from mbed TLS is still
325 * used, in contrast to the MBEDTLS_ECP_ALT flag. The original implementation
326 * is still present and it is used for group structures not supported by the
327 * alternative.
328 *
329 * Any of these options become available by defining MBEDTLS_ECP_INTERNAL_ALT
330 * and implementing the following functions:
331 * unsigned char mbedtls_internal_ecp_grp_capable(
332 * const mbedtls_ecp_group *grp )
333 * int mbedtls_internal_ecp_init( const mbedtls_ecp_group *grp )
334 * void mbedtls_internal_ecp_deinit( const mbedtls_ecp_group *grp )
335 * The mbedtls_internal_ecp_grp_capable function should return 1 if the
336 * replacement functions implement arithmetic for the given group and 0
337 * otherwise.
338 * The functions mbedtls_internal_ecp_init and mbedtls_internal_ecp_deinit are
339 * called before and after each point operation and provide an opportunity to
340 * implement optimized set up and tear down instructions.
341 *
342 * Example: In case you uncomment MBEDTLS_ECP_INTERNAL_ALT and
343 * MBEDTLS_ECP_DOUBLE_JAC_ALT, mbed TLS will still provide the ecp_double_jac
344 * function, but will use your mbedtls_internal_ecp_double_jac if the group is
345 * supported (your mbedtls_internal_ecp_grp_capable function returns 1 when
346 * receives it as an argument). If the group is not supported then the original
347 * implementation is used. The other functions and the definition of
348 * mbedtls_ecp_group and mbedtls_ecp_point will not change, so your
349 * implementation of mbedtls_internal_ecp_double_jac and
350 * mbedtls_internal_ecp_grp_capable must be compatible with this definition.
351 *
352 * Uncomment a macro to enable alternate implementation of the corresponding
353 * function.
354 */
355/* Required for all the functions in this section */
356//#define MBEDTLS_ECP_INTERNAL_ALT
357/* Support for Weierstrass curves with Jacobi representation */
358//#define MBEDTLS_ECP_RANDOMIZE_JAC_ALT
359//#define MBEDTLS_ECP_ADD_MIXED_ALT
360//#define MBEDTLS_ECP_DOUBLE_JAC_ALT
361//#define MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT
362//#define MBEDTLS_ECP_NORMALIZE_JAC_ALT
363/* Support for curves with Montgomery arithmetic */
364//#define MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT
365//#define MBEDTLS_ECP_RANDOMIZE_MXZ_ALT
366//#define MBEDTLS_ECP_NORMALIZE_MXZ_ALT
367
368/**
369 * \def MBEDTLS_TEST_NULL_ENTROPY
370 *
371 * Enables testing and use of mbed TLS without any configured entropy sources.
372 * This permits use of the library on platforms before an entropy source has
373 * been integrated (see for example the MBEDTLS_ENTROPY_HARDWARE_ALT or the
374 * MBEDTLS_ENTROPY_NV_SEED switches).
375 *
376 * WARNING! This switch MUST be disabled in production builds, and is suitable
377 * only for development.
378 * Enabling the switch negates any security provided by the library.
379 *
380 * Requires MBEDTLS_ENTROPY_C, MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
381 *
382 */
383//#define MBEDTLS_TEST_NULL_ENTROPY
384
385/**
386 * \def MBEDTLS_ENTROPY_HARDWARE_ALT
387 *
388 * Uncomment this macro to let mbed TLS use your own implementation of a
389 * hardware entropy collector.
390 *
391 * Your function must be called \c mbedtls_hardware_poll(), have the same
392 * prototype as declared in entropy_poll.h, and accept NULL as first argument.
393 *
394 * Uncomment to use your own hardware entropy collector.
395 */
396//#define MBEDTLS_ENTROPY_HARDWARE_ALT
397
398/**
399 * \def MBEDTLS_AES_ROM_TABLES
400 *
401 * Store the AES tables in ROM.
402 *
403 * Uncomment this macro to store the AES tables in ROM.
404 */
405//#define MBEDTLS_AES_ROM_TABLES
406
407/**
408 * \def MBEDTLS_CAMELLIA_SMALL_MEMORY
409 *
410 * Use less ROM for the Camellia implementation (saves about 768 bytes).
411 *
412 * Uncomment this macro to use less memory for Camellia.
413 */
414//#define MBEDTLS_CAMELLIA_SMALL_MEMORY
415
416/**
417 * \def MBEDTLS_CIPHER_MODE_CBC
418 *
419 * Enable Cipher Block Chaining mode (CBC) for symmetric ciphers.
420 */
421#define MBEDTLS_CIPHER_MODE_CBC
422
423/**
424 * \def MBEDTLS_CIPHER_MODE_CFB
425 *
426 * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
427 */
428#define MBEDTLS_CIPHER_MODE_CFB
429
430/**
431 * \def MBEDTLS_CIPHER_MODE_CTR
432 *
433 * Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
434 */
435#define MBEDTLS_CIPHER_MODE_CTR
436
437/**
438 * \def MBEDTLS_CIPHER_PADDING_PKCS7
439 *
440 * MBEDTLS_CIPHER_PADDING_XXX: Uncomment or comment macros to add support for
441 * specific padding modes in the cipher layer with cipher modes that support
442 * padding (e.g. CBC)
443 *
444 * If you disable all padding modes, only full blocks can be used with CBC.
445 *
446 * Enable padding modes in the cipher layer.
447 */
448#define MBEDTLS_CIPHER_PADDING_PKCS7
449#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
450#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
451#define MBEDTLS_CIPHER_PADDING_ZEROS
452
453/**
454 * \def MBEDTLS_ECP_DP_SECP192R1_ENABLED
455 *
456 * MBEDTLS_ECP_XXXX_ENABLED: Enables specific curves within the Elliptic Curve
457 * module. By default all supported curves are enabled.
458 *
459 * Comment macros to disable the curve and functions for it
460 */
461#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
462#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
463#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
464#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
465#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
466#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
467#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
468#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
469#define MBEDTLS_ECP_DP_BP256R1_ENABLED
470#define MBEDTLS_ECP_DP_BP384R1_ENABLED
471#define MBEDTLS_ECP_DP_BP512R1_ENABLED
472#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
473
474/**
475 * \def MBEDTLS_ECP_NIST_OPTIM
476 *
477 * Enable specific 'modulo p' routines for each NIST prime.
478 * Depending on the prime and architecture, makes operations 4 to 8 times
479 * faster on the corresponding curve.
480 *
481 * Comment this macro to disable NIST curves optimisation.
482 */
483#define MBEDTLS_ECP_NIST_OPTIM
484
485/**
486 * \def MBEDTLS_ECDSA_DETERMINISTIC
487 *
488 * Enable deterministic ECDSA (RFC 6979).
489 * Standard ECDSA is "fragile" in the sense that lack of entropy when signing
490 * may result in a compromise of the long-term signing key. This is avoided by
491 * the deterministic variant.
492 *
493 * Requires: MBEDTLS_HMAC_DRBG_C
494 *
495 * Comment this macro to disable deterministic ECDSA.
496 */
497#define MBEDTLS_ECDSA_DETERMINISTIC
498
499/**
500 * \def MBEDTLS_PK_PARSE_EC_EXTENDED
501 *
502 * Enhance support for reading EC keys using variants of SEC1 not allowed by
503 * RFC 5915 and RFC 5480.
504 *
505 * Currently this means parsing the SpecifiedECDomain choice of EC
506 * parameters (only known groups are supported, not arbitrary domains, to
507 * avoid validation issues).
508 *
509 * Disable if you only need to support RFC 5915 + 5480 key formats.
510 */
511#define MBEDTLS_PK_PARSE_EC_EXTENDED
512
513/**
514 * \def MBEDTLS_ERROR_STRERROR_DUMMY
515 *
516 * Enable a dummy error function to make use of mbedtls_strerror() in
517 * third party libraries easier when MBEDTLS_ERROR_C is disabled
518 * (no effect when MBEDTLS_ERROR_C is enabled).
519 *
520 * You can safely disable this if MBEDTLS_ERROR_C is enabled, or if you're
521 * not using mbedtls_strerror() or error_strerror() in your application.
522 *
523 * Disable if you run into name conflicts and want to really remove the
524 * mbedtls_strerror()
525 */
526#define MBEDTLS_ERROR_STRERROR_DUMMY
527
528/**
529 * \def MBEDTLS_GENPRIME
530 *
531 * Enable the prime-number generation code.
532 *
533 * Requires: MBEDTLS_BIGNUM_C
534 */
535#define MBEDTLS_GENPRIME
536
537/**
538 * \def MBEDTLS_FS_IO
539 *
540 * Enable functions that use the filesystem.
541 */
542#define MBEDTLS_FS_IO
543
544/**
545 * \def MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
546 *
547 * Do not add default entropy sources. These are the platform specific,
548 * mbedtls_timing_hardclock and HAVEGE based poll functions.
549 *
550 * This is useful to have more control over the added entropy sources in an
551 * application.
552 *
553 * Uncomment this macro to prevent loading of default entropy functions.
554 */
555//#define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
556
557/**
558 * \def MBEDTLS_NO_PLATFORM_ENTROPY
559 *
560 * Do not use built-in platform entropy functions.
561 * This is useful if your platform does not support
562 * standards like the /dev/urandom or Windows CryptoAPI.
563 *
564 * Uncomment this macro to disable the built-in platform entropy functions.
565 */
566//#define MBEDTLS_NO_PLATFORM_ENTROPY
567
568/**
569 * \def MBEDTLS_ENTROPY_FORCE_SHA256
570 *
571 * Force the entropy accumulator to use a SHA-256 accumulator instead of the
572 * default SHA-512 based one (if both are available).
573 *
574 * Requires: MBEDTLS_SHA256_C
575 *
576 * On 32-bit systems SHA-256 can be much faster than SHA-512. Use this option
577 * if you have performance concerns.
578 *
579 * This option is only useful if both MBEDTLS_SHA256_C and
580 * MBEDTLS_SHA512_C are defined. Otherwise the available hash module is used.
581 */
582//#define MBEDTLS_ENTROPY_FORCE_SHA256
583
584/**
585 * \def MBEDTLS_ENTROPY_NV_SEED
586 *
587 * Enable the non-volatile (NV) seed file-based entropy source.
588 * (Also enables the NV seed read/write functions in the platform layer)
589 *
590 * This is crucial (if not required) on systems that do not have a
591 * cryptographic entropy source (in hardware or kernel) available.
592 *
593 * Requires: MBEDTLS_ENTROPY_C, MBEDTLS_PLATFORM_C
594 *
595 * \note The read/write functions that are used by the entropy source are
596 * determined in the platform layer, and can be modified at runtime and/or
597 * compile-time depending on the flags (MBEDTLS_PLATFORM_NV_SEED_*) used.
598 *
599 * \note If you use the default implementation functions that read a seedfile
600 * with regular fopen(), please make sure you make a seedfile with the
601 * proper name (defined in MBEDTLS_PLATFORM_STD_NV_SEED_FILE) and at
602 * least MBEDTLS_ENTROPY_BLOCK_SIZE bytes in size that can be read from
603 * and written to or you will get an entropy source error! The default
604 * implementation will only use the first MBEDTLS_ENTROPY_BLOCK_SIZE
605 * bytes from the file.
606 *
607 * \note The entropy collector will write to the seed file before entropy is
608 * given to an external source, to update it.
609 */
610//#define MBEDTLS_ENTROPY_NV_SEED
611
612/**
613 * \def MBEDTLS_MEMORY_DEBUG
614 *
615 * Enable debugging of buffer allocator memory issues. Automatically prints
616 * (to stderr) all (fatal) messages on memory allocation issues. Enables
617 * function for 'debug output' of allocated memory.
618 *
619 * Requires: MBEDTLS_MEMORY_BUFFER_ALLOC_C
620 *
621 * Uncomment this macro to let the buffer allocator print out error messages.
622 */
623//#define MBEDTLS_MEMORY_DEBUG
624
625/**
626 * \def MBEDTLS_MEMORY_BACKTRACE
627 *
628 * Include backtrace information with each allocated block.
629 *
630 * Requires: MBEDTLS_MEMORY_BUFFER_ALLOC_C
631 * GLIBC-compatible backtrace() an backtrace_symbols() support
632 *
633 * Uncomment this macro to include backtrace information
634 */
635//#define MBEDTLS_MEMORY_BACKTRACE
636
637/**
638 * \def MBEDTLS_PK_RSA_ALT_SUPPORT
639 *
640 * Support external private RSA keys (eg from a HSM) in the PK layer.
641 *
642 * Comment this macro to disable support for external private RSA keys.
643 */
644#define MBEDTLS_PK_RSA_ALT_SUPPORT
645
646/**
647 * \def MBEDTLS_PKCS1_V15
648 *
649 * Enable support for PKCS#1 v1.5 encoding.
650 *
651 * Requires: MBEDTLS_RSA_C
652 *
653 * This enables support for PKCS#1 v1.5 operations.
654 */
655#define MBEDTLS_PKCS1_V15
656
657/**
658 * \def MBEDTLS_PKCS1_V21
659 *
660 * Enable support for PKCS#1 v2.1 encoding.
661 *
662 * Requires: MBEDTLS_MD_C, MBEDTLS_RSA_C
663 *
664 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
665 */
666#define MBEDTLS_PKCS1_V21
667
668/**
669 * \def MBEDTLS_RSA_NO_CRT
670 *
671 * Do not use the Chinese Remainder Theorem for the RSA private operation.
672 *
673 * Uncomment this macro to disable the use of CRT in RSA.
674 *
675 */
676//#define MBEDTLS_RSA_NO_CRT
677
678/**
679 * \def MBEDTLS_SELF_TEST
680 *
681 * Enable the checkup functions (*_self_test).
682 */
683#define MBEDTLS_SELF_TEST
684
685/**
686 * \def MBEDTLS_SHA256_SMALLER
687 *
688 * Enable an implementation of SHA-256 that has lower ROM footprint but also
689 * lower performance.
690 *
691 * The default implementation is meant to be a reasonnable compromise between
692 * performance and size. This version optimizes more aggressively for size at
693 * the expense of performance. Eg on Cortex-M4 it reduces the size of
694 * mbedtls_sha256_process() from ~2KB to ~0.5KB for a performance hit of about
695 * 30%.
696 *
697 * Uncomment to enable the smaller implementation of SHA256.
698 */
699//#define MBEDTLS_SHA256_SMALLER
700
701/**
702 * \def MBEDTLS_THREADING_ALT
703 *
704 * Provide your own alternate threading implementation.
705 *
706 * Requires: MBEDTLS_THREADING_C
707 *
708 * Uncomment this to allow your own alternate threading implementation.
709 */
710//#define MBEDTLS_THREADING_ALT
711
712/**
713 * \def MBEDTLS_THREADING_PTHREAD
714 *
715 * Enable the pthread wrapper layer for the threading layer.
716 *
717 * Requires: MBEDTLS_THREADING_C
718 *
719 * Uncomment this to enable pthread mutexes.
720 */
721//#define MBEDTLS_THREADING_PTHREAD
722
723/**
724 * \def MBEDTLS_VERSION_FEATURES
725 *
726 * Allow run-time checking of compile-time enabled features. Thus allowing users
727 * to check at run-time if the library is for instance compiled with threading
728 * support via mbedtls_version_check_feature().
729 *
730 * Requires: MBEDTLS_VERSION_C
731 *
732 * Comment this to disable run-time checking and save ROM space
733 */
734#define MBEDTLS_VERSION_FEATURES
735
736/* \} name SECTION: mbed TLS feature support */
737
738/**
739 * \name SECTION: mbed TLS modules
740 *
741 * This section enables or disables entire modules in mbed TLS
742 * \{
743 */
744
745/**
746 * \def MBEDTLS_AESNI_C
747 *
748 * Enable AES-NI support on x86-64.
749 *
750 * Module: library/aesni.c
751 * Caller: library/aes.c
752 *
753 * Requires: MBEDTLS_HAVE_ASM
754 *
755 * This modules adds support for the AES-NI instructions on x86-64
756 */
757#define MBEDTLS_AESNI_C
758
759/**
760 * \def MBEDTLS_AES_C
761 *
762 * Enable the AES block cipher.
763 *
764 * Module: library/aes.c
765 * Caller: library/ssl_tls.c
766 * library/pem.c
767 * library/ctr_drbg.c
768 *
769 * This module enables the following ciphersuites (if other requisites are
770 * enabled as well):
771 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
772 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
773 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
774 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
775 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
776 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
777 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
778 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
779 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256
780 * MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384
781 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256
782 * MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384
783 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
784 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
785 * MBEDTLS_TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
786 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
787 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
788 * MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
789 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
790 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
791 * MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA
792 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
793 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
794 * MBEDTLS_TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
795 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
796 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
797 * MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
798 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
799 * MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
800 * MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA
801 * MBEDTLS_TLS_DHE_PSK_WITH_AES_256_GCM_SHA384
802 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384
803 * MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA384
804 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA
805 * MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA
806 * MBEDTLS_TLS_DHE_PSK_WITH_AES_128_GCM_SHA256
807 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256
808 * MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA256
809 * MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA
810 * MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA
811 * MBEDTLS_TLS_RSA_WITH_AES_256_GCM_SHA384
812 * MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA256
813 * MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA
814 * MBEDTLS_TLS_RSA_WITH_AES_128_GCM_SHA256
815 * MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA256
816 * MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA
817 * MBEDTLS_TLS_RSA_PSK_WITH_AES_256_GCM_SHA384
818 * MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA384
819 * MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA
820 * MBEDTLS_TLS_RSA_PSK_WITH_AES_128_GCM_SHA256
821 * MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA256
822 * MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA
823 * MBEDTLS_TLS_PSK_WITH_AES_256_GCM_SHA384
824 * MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA384
825 * MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA
826 * MBEDTLS_TLS_PSK_WITH_AES_128_GCM_SHA256
827 * MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA256
828 * MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA
829 *
830 * PEM_PARSE uses AES for decrypting encrypted keys.
831 */
832#define MBEDTLS_AES_C
833
834/**
835 * \def MBEDTLS_ARC4_C
836 *
837 * Enable the ARCFOUR stream cipher.
838 *
839 * Module: library/arc4.c
840 * Caller: library/ssl_tls.c
841 *
842 * This module enables the following ciphersuites (if other requisites are
843 * enabled as well):
844 * MBEDTLS_TLS_ECDH_ECDSA_WITH_RC4_128_SHA
845 * MBEDTLS_TLS_ECDH_RSA_WITH_RC4_128_SHA
846 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
847 * MBEDTLS_TLS_ECDHE_RSA_WITH_RC4_128_SHA
848 * MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA
849 * MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA
850 * MBEDTLS_TLS_RSA_WITH_RC4_128_SHA
851 * MBEDTLS_TLS_RSA_WITH_RC4_128_MD5
852 * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
853 * MBEDTLS_TLS_PSK_WITH_RC4_128_SHA
854 *
855 * \warning ARC4 is considered a weak cipher and its use constitutes a
856 * security risk. If possible, we recommend avoidng dependencies on
857 * it, and considering stronger ciphers instead.
858 *
859 */
860#define MBEDTLS_ARC4_C
861
862/**
863 * \def MBEDTLS_ASN1_PARSE_C
864 *
865 * Enable the generic ASN1 parser.
866 *
867 * Module: library/asn1.c
868 * Caller: library/x509.c
869 * library/dhm.c
870 * library/pkcs12.c
871 * library/pkcs5.c
872 * library/pkparse.c
873 */
874#define MBEDTLS_ASN1_PARSE_C
875
876/**
877 * \def MBEDTLS_ASN1_WRITE_C
878 *
879 * Enable the generic ASN1 writer.
880 *
881 * Module: library/asn1write.c
882 * Caller: library/ecdsa.c
883 * library/pkwrite.c
884 * library/x509_create.c
885 * library/x509write_crt.c
886 * library/x509write_csr.c
887 */
888#define MBEDTLS_ASN1_WRITE_C
889
890/**
891 * \def MBEDTLS_BASE64_C
892 *
893 * Enable the Base64 module.
894 *
895 * Module: library/base64.c
896 * Caller: library/pem.c
897 *
898 * This module is required for PEM support (required by X.509).
899 */
900#define MBEDTLS_BASE64_C
901
902/**
903 * \def MBEDTLS_BIGNUM_C
904 *
905 * Enable the multi-precision integer library.
906 *
907 * Module: library/bignum.c
908 * Caller: library/dhm.c
909 * library/ecp.c
910 * library/ecdsa.c
911 * library/rsa.c
912 * library/rsa_internal.c
913 * library/ssl_tls.c
914 *
915 * This module is required for RSA, DHM and ECC (ECDH, ECDSA) support.
916 */
917#define MBEDTLS_BIGNUM_C
918
919/**
920 * \def MBEDTLS_BLOWFISH_C
921 *
922 * Enable the Blowfish block cipher.
923 *
924 * Module: library/blowfish.c
925 */
926#define MBEDTLS_BLOWFISH_C
927
928/**
929 * \def MBEDTLS_CAMELLIA_C
930 *
931 * Enable the Camellia block cipher.
932 *
933 * Module: library/camellia.c
934 * Caller: library/ssl_tls.c
935 *
936 * This module enables the following ciphersuites (if other requisites are
937 * enabled as well):
938 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
939 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
940 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256
941 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384
942 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
943 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
944 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
945 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
946 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
947 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
948 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
949 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
950 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384
951 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
952 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
953 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
954 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
955 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
956 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
957 * MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
958 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
959 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
960 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384
961 * MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
962 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
963 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256
964 * MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
965 * MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
966 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384
967 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256
968 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
969 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256
970 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256
971 * MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
972 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384
973 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384
974 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256
975 * MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256
976 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384
977 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384
978 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
979 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
980 */
981#define MBEDTLS_CAMELLIA_C
982
983/**
984 * \def MBEDTLS_CCM_C
985 *
986 * Enable the Counter with CBC-MAC (CCM) mode for 128-bit block cipher.
987 *
988 * Module: library/ccm.c
989 *
990 * Requires: MBEDTLS_AES_C or MBEDTLS_CAMELLIA_C
991 *
992 * This module enables the AES-CCM ciphersuites, if other requisites are
993 * enabled as well.
994 */
995#define MBEDTLS_CCM_C
996
997/**
998 * \def MBEDTLS_CIPHER_C
999 *
1000 * Enable the generic cipher layer.
1001 *
1002 * Module: library/cipher.c
1003 * Caller: library/ssl_tls.c
1004 *
1005 * Uncomment to enable generic cipher wrappers.
1006 */
1007#define MBEDTLS_CIPHER_C
1008
1009/**
1010 * \def MBEDTLS_CMAC_C
1011 *
1012 * Enable the CMAC (Cipher-based Message Authentication Code) mode for block
1013 * ciphers.
1014 *
1015 * Module: library/cmac.c
1016 *
1017 * Requires: MBEDTLS_AES_C or MBEDTLS_DES_C
1018 *
1019 */
1020#define MBEDTLS_CMAC_C
1021
1022/**
1023 * \def MBEDTLS_CTR_DRBG_C
1024 *
1025 * Enable the CTR_DRBG AES-256-based random generator.
1026 *
1027 * Module: library/ctr_drbg.c
1028 * Caller:
1029 *
1030 * Requires: MBEDTLS_AES_C
1031 *
1032 * This module provides the CTR_DRBG AES-256 random number generator.
1033 */
1034#define MBEDTLS_CTR_DRBG_C
1035
1036/**
1037 * \def MBEDTLS_DES_C
1038 *
1039 * Enable the DES block cipher.
1040 *
1041 * Module: library/des.c
1042 * Caller: library/pem.c
1043 * library/ssl_tls.c
1044 *
1045 * This module enables the following ciphersuites (if other requisites are
1046 * enabled as well):
1047 * MBEDTLS_TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
1048 * MBEDTLS_TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
1049 * MBEDTLS_TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
1050 * MBEDTLS_TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
1051 * MBEDTLS_TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
1052 * MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
1053 * MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
1054 * MBEDTLS_TLS_RSA_WITH_3DES_EDE_CBC_SHA
1055 * MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
1056 * MBEDTLS_TLS_PSK_WITH_3DES_EDE_CBC_SHA
1057 *
1058 * PEM_PARSE uses DES/3DES for decrypting encrypted keys.
1059 *
1060 * \warning DES is considered a weak cipher and its use constitutes a
1061 * security risk. We recommend considering stronger ciphers instead.
1062 */
1063#define MBEDTLS_DES_C
1064
1065/**
1066 * \def MBEDTLS_DHM_C
1067 *
1068 * Enable the Diffie-Hellman-Merkle module.
1069 *
1070 * Module: library/dhm.c
1071 * Caller: library/ssl_cli.c
1072 * library/ssl_srv.c
1073 *
1074 * This module is used by the following key exchanges:
1075 * DHE-RSA, DHE-PSK
1076 *
1077 * \warning Using DHE constitutes a security risk as it
1078 * is not possible to validate custom DH parameters.
1079 * If possible, it is recommended users should consider
1080 * preferring other methods of key exchange.
1081 * See dhm.h for more details.
1082 *
1083 */
1084#define MBEDTLS_DHM_C
1085
1086/**
1087 * \def MBEDTLS_ECDH_C
1088 *
1089 * Enable the elliptic curve Diffie-Hellman library.
1090 *
1091 * Module: library/ecdh.c
1092 * Caller: library/ssl_cli.c
1093 * library/ssl_srv.c
1094 *
1095 * This module is used by the following key exchanges:
1096 * ECDHE-ECDSA, ECDHE-RSA, DHE-PSK
1097 *
1098 * Requires: MBEDTLS_ECP_C
1099 */
1100#define MBEDTLS_ECDH_C
1101
1102/**
1103 * \def MBEDTLS_ECDSA_C
1104 *
1105 * Enable the elliptic curve DSA library.
1106 *
1107 * Module: library/ecdsa.c
1108 * Caller:
1109 *
1110 * This module is used by the following key exchanges:
1111 * ECDHE-ECDSA
1112 *
1113 * Requires: MBEDTLS_ECP_C, MBEDTLS_ASN1_WRITE_C, MBEDTLS_ASN1_PARSE_C
1114 */
1115#define MBEDTLS_ECDSA_C
1116
1117/**
1118 * \def MBEDTLS_ECJPAKE_C
1119 *
1120 * Enable the elliptic curve J-PAKE library.
1121 *
1122 * \warning This is currently experimental. EC J-PAKE support is based on the
1123 * Thread v1.0.0 specification; incompatible changes to the specification
1124 * might still happen. For this reason, this is disabled by default.
1125 *
1126 * Module: library/ecjpake.c
1127 * Caller:
1128 *
1129 * This module is used by the following key exchanges:
1130 * ECJPAKE
1131 *
1132 * Requires: MBEDTLS_ECP_C, MBEDTLS_MD_C
1133 */
1134#define MBEDTLS_ECJPAKE_C
1135
1136/**
1137 * \def MBEDTLS_ECP_C
1138 *
1139 * Enable the elliptic curve over GF(p) library.
1140 *
1141 * Module: library/ecp.c
1142 * Caller: library/ecdh.c
1143 * library/ecdsa.c
1144 * library/ecjpake.c
1145 *
1146 * Requires: MBEDTLS_BIGNUM_C and at least one MBEDTLS_ECP_DP_XXX_ENABLED
1147 */
1148#define MBEDTLS_ECP_C
1149
1150/**
1151 * \def MBEDTLS_ENTROPY_C
1152 *
1153 * Enable the platform-specific entropy code.
1154 *
1155 * Module: library/entropy.c
1156 * Caller:
1157 *
1158 * Requires: MBEDTLS_SHA512_C or MBEDTLS_SHA256_C
1159 *
1160 * This module provides a generic entropy pool
1161 */
1162#define MBEDTLS_ENTROPY_C
1163
1164/**
1165 * \def MBEDTLS_ERROR_C
1166 *
1167 * Enable error code to error string conversion.
1168 *
1169 * Module: library/error.c
1170 * Caller:
1171 *
1172 * This module enables mbedtls_strerror().
1173 */
1174#define MBEDTLS_ERROR_C
1175
1176/**
1177 * \def MBEDTLS_GCM_C
1178 *
1179 * Enable the Galois/Counter Mode (GCM) for AES.
1180 *
1181 * Module: library/gcm.c
1182 *
1183 * Requires: MBEDTLS_AES_C or MBEDTLS_CAMELLIA_C
1184 *
1185 * This module enables the AES-GCM and CAMELLIA-GCM ciphersuites, if other
1186 * requisites are enabled as well.
1187 */
1188#define MBEDTLS_GCM_C
1189
1190/**
1191 * \def MBEDTLS_HAVEGE_C
1192 *
1193 * Enable the HAVEGE random generator.
1194 *
1195 * Warning: the HAVEGE random generator is not suitable for virtualized
1196 * environments
1197 *
1198 * Warning: the HAVEGE random generator is dependent on timing and specific
1199 * processor traits. It is therefore not advised to use HAVEGE as
1200 * your applications primary random generator or primary entropy pool
1201 * input. As a secondary input to your entropy pool, it IS able add
1202 * the (limited) extra entropy it provides.
1203 *
1204 * Module: library/havege.c
1205 * Caller:
1206 *
1207 * Requires: MBEDTLS_TIMING_C
1208 *
1209 * Uncomment to enable the HAVEGE random generator.
1210 */
1211//#define MBEDTLS_HAVEGE_C
1212
1213/**
1214 * \def MBEDTLS_HMAC_DRBG_C
1215 *
1216 * Enable the HMAC_DRBG random generator.
1217 *
1218 * Module: library/hmac_drbg.c
1219 * Caller:
1220 *
1221 * Requires: MBEDTLS_MD_C
1222 *
1223 * Uncomment to enable the HMAC_DRBG random number geerator.
1224 */
1225#define MBEDTLS_HMAC_DRBG_C
1226
1227/**
1228 * \def MBEDTLS_MD_C
1229 *
1230 * Enable the generic message digest layer.
1231 *
1232 * Module: library/md.c
1233 * Caller:
1234 *
1235 * Uncomment to enable generic message digest wrappers.
1236 */
1237#define MBEDTLS_MD_C
1238
1239/**
1240 * \def MBEDTLS_MD2_C
1241 *
1242 * Enable the MD2 hash algorithm.
1243 *
1244 * Module: library/md2.c
1245 * Caller:
1246 *
1247 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
1248 *
1249 * \warning MD2 is considered a weak message digest and its use constitutes a
1250 * security risk. If possible, we recommend avoiding dependencies on
1251 * it, and considering stronger message digests instead.
1252 *
1253 */
1254#define MBEDTLS_MD2_C
1255
1256/**
1257 * \def MBEDTLS_MD4_C
1258 *
1259 * Enable the MD4 hash algorithm.
1260 *
1261 * Module: library/md4.c
1262 * Caller:
1263 *
1264 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
1265 *
1266 * \warning MD4 is considered a weak message digest and its use constitutes a
1267 * security risk. If possible, we recommend avoiding dependencies on
1268 * it, and considering stronger message digests instead.
1269 *
1270 */
1271#define MBEDTLS_MD4_C
1272
1273/**
1274 * \def MBEDTLS_MD5_C
1275 *
1276 * Enable the MD5 hash algorithm.
1277 *
1278 * Module: library/md5.c
1279 * Caller: library/md.c
1280 * library/pem.c
1281 * library/ssl_tls.c
1282 *
1283 * This module is required for SSL/TLS up to version 1.1, and for TLS 1.2
1284 * depending on the handshake parameters. Further, it is used for checking
1285 * MD5-signed certificates, and for PBKDF1 when decrypting PEM-encoded
1286 * encrypted keys.
1287 *
1288 * \warning MD5 is considered a weak message digest and its use constitutes a
1289 * security risk. If possible, we recommend avoiding dependencies on
1290 * it, and considering stronger message digests instead.
1291 *
1292 */
1293#define MBEDTLS_MD5_C
1294
1295/**
1296 * \def MBEDTLS_MEMORY_BUFFER_ALLOC_C
1297 *
1298 * Enable the buffer allocator implementation that makes use of a (stack)
1299 * based buffer to 'allocate' dynamic memory. (replaces calloc() and free()
1300 * calls)
1301 *
1302 * Module: library/memory_buffer_alloc.c
1303 *
1304 * Requires: MBEDTLS_PLATFORM_C
1305 * MBEDTLS_PLATFORM_MEMORY (to use it within mbed TLS)
1306 *
1307 * Enable this module to enable the buffer memory allocator.
1308 */
1309//#define MBEDTLS_MEMORY_BUFFER_ALLOC_C
1310
1311/**
1312 * \def MBEDTLS_OID_C
1313 *
1314 * Enable the OID database.
1315 *
1316 * Module: library/oid.c
1317 * Caller: library/asn1write.c
1318 * library/pkcs5.c
1319 * library/pkparse.c
1320 * library/pkwrite.c
1321 * library/rsa.c
1322 * library/x509.c
1323 * library/x509_create.c
1324 * library/x509_crl.c
1325 * library/x509_crt.c
1326 * library/x509_csr.c
1327 * library/x509write_crt.c
1328 * library/x509write_csr.c
1329 *
1330 * This modules translates between OIDs and internal values.
1331 */
1332#define MBEDTLS_OID_C
1333
1334/**
1335 * \def MBEDTLS_PADLOCK_C
1336 *
1337 * Enable VIA Padlock support on x86.
1338 *
1339 * Module: library/padlock.c
1340 * Caller: library/aes.c
1341 *
1342 * Requires: MBEDTLS_HAVE_ASM
1343 *
1344 * This modules adds support for the VIA PadLock on x86.
1345 */
1346//#define MBEDTLS_PADLOCK_C
1347
1348/**
1349 * \def MBEDTLS_PEM_PARSE_C
1350 *
1351 * Enable PEM decoding / parsing.
1352 *
1353 * Module: library/pem.c
1354 * Caller: library/dhm.c
1355 * library/pkparse.c
1356 * library/x509_crl.c
1357 * library/x509_crt.c
1358 * library/x509_csr.c
1359 *
1360 * Requires: MBEDTLS_BASE64_C
1361 *
1362 * This modules adds support for decoding / parsing PEM files.
1363 */
1364#define MBEDTLS_PEM_PARSE_C
1365
1366/**
1367 * \def MBEDTLS_PEM_WRITE_C
1368 *
1369 * Enable PEM encoding / writing.
1370 *
1371 * Module: library/pem.c
1372 * Caller: library/pkwrite.c
1373 * library/x509write_crt.c
1374 * library/x509write_csr.c
1375 *
1376 * Requires: MBEDTLS_BASE64_C
1377 *
1378 * This modules adds support for encoding / writing PEM files.
1379 */
1380#define MBEDTLS_PEM_WRITE_C
1381
1382/**
1383 * \def MBEDTLS_PK_C
1384 *
1385 * Enable the generic public (asymetric) key layer.
1386 *
1387 * Module: library/pk.c
1388 * Caller: library/ssl_tls.c
1389 * library/ssl_cli.c
1390 * library/ssl_srv.c
1391 *
1392 * Requires: MBEDTLS_RSA_C or MBEDTLS_ECP_C
1393 *
1394 * Uncomment to enable generic public key wrappers.
1395 */
1396#define MBEDTLS_PK_C
1397
1398/**
1399 * \def MBEDTLS_PK_PARSE_C
1400 *
1401 * Enable the generic public (asymetric) key parser.
1402 *
1403 * Module: library/pkparse.c
1404 * Caller: library/x509_crt.c
1405 * library/x509_csr.c
1406 *
1407 * Requires: MBEDTLS_PK_C
1408 *
1409 * Uncomment to enable generic public key parse functions.
1410 */
1411#define MBEDTLS_PK_PARSE_C
1412
1413/**
1414 * \def MBEDTLS_PK_WRITE_C
1415 *
1416 * Enable the generic public (asymetric) key writer.
1417 *
1418 * Module: library/pkwrite.c
1419 * Caller: library/x509write.c
1420 *
1421 * Requires: MBEDTLS_PK_C
1422 *
1423 * Uncomment to enable generic public key write functions.
1424 */
1425#define MBEDTLS_PK_WRITE_C
1426
1427/**
1428 * \def MBEDTLS_PKCS5_C
1429 *
1430 * Enable PKCS#5 functions.
1431 *
1432 * Module: library/pkcs5.c
1433 *
1434 * Requires: MBEDTLS_MD_C
1435 *
1436 * This module adds support for the PKCS#5 functions.
1437 */
1438#define MBEDTLS_PKCS5_C
1439
1440/**
1441 * \def MBEDTLS_PKCS11_C
1442 *
1443 * Enable wrapper for PKCS#11 smartcard support.
1444 *
1445 * Module: library/pkcs11.c
1446 * Caller: library/pk.c
1447 *
1448 * Requires: MBEDTLS_PK_C
1449 *
1450 * This module enables SSL/TLS PKCS #11 smartcard support.
1451 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
1452 */
1453//#define MBEDTLS_PKCS11_C
1454
1455/**
1456 * \def MBEDTLS_PKCS12_C
1457 *
1458 * Enable PKCS#12 PBE functions.
1459 * Adds algorithms for parsing PKCS#8 encrypted private keys
1460 *
1461 * Module: library/pkcs12.c
1462 * Caller: library/pkparse.c
1463 *
1464 * Requires: MBEDTLS_ASN1_PARSE_C, MBEDTLS_CIPHER_C, MBEDTLS_MD_C
1465 * Can use: MBEDTLS_ARC4_C
1466 *
1467 * This module enables PKCS#12 functions.
1468 */
1469#define MBEDTLS_PKCS12_C
1470
1471/**
1472 * \def MBEDTLS_PLATFORM_C
1473 *
1474 * Enable the platform abstraction layer that allows you to re-assign
1475 * functions like calloc(), free(), snprintf(), printf(), fprintf(), exit().
1476 *
1477 * Enabling MBEDTLS_PLATFORM_C enables to use of MBEDTLS_PLATFORM_XXX_ALT
1478 * or MBEDTLS_PLATFORM_XXX_MACRO directives, allowing the functions mentioned
1479 * above to be specified at runtime or compile time respectively.
1480 *
1481 * \note This abstraction layer must be enabled on Windows (including MSYS2)
1482 * as other module rely on it for a fixed snprintf implementation.
1483 *
1484 * Module: library/platform.c
1485 * Caller: Most other .c files
1486 *
1487 * This module enables abstraction of common (libc) functions.
1488 */
1489#define MBEDTLS_PLATFORM_C
1490
1491/**
1492 * \def MBEDTLS_PSA_CRYPTO_C
1493 *
1494 * Enable the Platform Security Architecture cryptography API.
1495 *
1496 * Module: library/psa_crypto.c
1497 *
1498 * Requires: MBEDTLS_CTR_DRBG_C, MBEDTLS_ENTROPY_C
1499 *
1500 */
1501#define MBEDTLS_PSA_CRYPTO_C
1502
1503/**
1504 * \def MBEDTLS_RIPEMD160_C
1505 *
1506 * Enable the RIPEMD-160 hash algorithm.
1507 *
1508 * Module: library/ripemd160.c
1509 * Caller: library/md.c
1510 *
1511 */
1512#define MBEDTLS_RIPEMD160_C
1513
1514/**
1515 * \def MBEDTLS_RSA_C
1516 *
1517 * Enable the RSA public-key cryptosystem.
1518 *
1519 * Module: library/rsa.c
1520 * library/rsa_internal.c
1521 * Caller: library/ssl_cli.c
1522 * library/ssl_srv.c
1523 * library/ssl_tls.c
1524 * library/x509.c
1525 *
1526 * This module is used by the following key exchanges:
1527 * RSA, DHE-RSA, ECDHE-RSA, RSA-PSK
1528 *
1529 * Requires: MBEDTLS_BIGNUM_C, MBEDTLS_OID_C
1530 */
1531#define MBEDTLS_RSA_C
1532
1533/**
1534 * \def MBEDTLS_SHA1_C
1535 *
1536 * Enable the SHA1 cryptographic hash algorithm.
1537 *
1538 * Module: library/sha1.c
1539 * Caller: library/md.c
1540 * library/ssl_cli.c
1541 * library/ssl_srv.c
1542 * library/ssl_tls.c
1543 * library/x509write_crt.c
1544 *
1545 * This module is required for SSL/TLS up to version 1.1, for TLS 1.2
1546 * depending on the handshake parameters, and for SHA1-signed certificates.
1547 *
1548 * \warning SHA-1 is considered a weak message digest and its use constitutes
1549 * a security risk. If possible, we recommend avoiding dependencies
1550 * on it, and considering stronger message digests instead.
1551 *
1552 */
1553#define MBEDTLS_SHA1_C
1554
1555/**
1556 * \def MBEDTLS_SHA256_C
1557 *
1558 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
1559 *
1560 * Module: library/sha256.c
1561 * Caller: library/entropy.c
1562 * library/md.c
1563 * library/ssl_cli.c
1564 * library/ssl_srv.c
1565 * library/ssl_tls.c
1566 *
1567 * This module adds support for SHA-224 and SHA-256.
1568 * This module is required for the SSL/TLS 1.2 PRF function.
1569 */
1570#define MBEDTLS_SHA256_C
1571
1572/**
1573 * \def MBEDTLS_SHA512_C
1574 *
1575 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
1576 *
1577 * Module: library/sha512.c
1578 * Caller: library/entropy.c
1579 * library/md.c
1580 * library/ssl_cli.c
1581 * library/ssl_srv.c
1582 *
1583 * This module adds support for SHA-384 and SHA-512.
1584 */
1585#define MBEDTLS_SHA512_C
1586
1587/**
1588 * \def MBEDTLS_THREADING_C
1589 *
1590 * Enable the threading abstraction layer.
1591 * By default mbed TLS assumes it is used in a non-threaded environment or that
1592 * contexts are not shared between threads. If you do intend to use contexts
1593 * between threads, you will need to enable this layer to prevent race
1594 * conditions. See also our Knowledge Base article about threading:
1595 * https://tls.mbed.org/kb/development/thread-safety-and-multi-threading
1596 *
1597 * Module: library/threading.c
1598 *
1599 * This allows different threading implementations (self-implemented or
1600 * provided).
1601 *
1602 * You will have to enable either MBEDTLS_THREADING_ALT or
1603 * MBEDTLS_THREADING_PTHREAD.
1604 *
1605 * Enable this layer to allow use of mutexes within mbed TLS
1606 */
1607//#define MBEDTLS_THREADING_C
1608
1609/**
1610 * \def MBEDTLS_VERSION_C
1611 *
1612 * Enable run-time version information.
1613 *
1614 * Module: library/version.c
1615 *
1616 * This module provides run-time version information.
1617 */
1618#define MBEDTLS_VERSION_C
1619
1620/**
1621 * \def MBEDTLS_XTEA_C
1622 *
1623 * Enable the XTEA block cipher.
1624 *
1625 * Module: library/xtea.c
1626 * Caller:
1627 */
1628#define MBEDTLS_XTEA_C
1629
1630/* \} name SECTION: mbed TLS modules */
1631
1632/**
1633 * \name SECTION: Module configuration options
1634 *
1635 * This section allows for the setting of module specific sizes and
1636 * configuration options. The default values are already present in the
1637 * relevant header files and should suffice for the regular use cases.
1638 *
1639 * Our advice is to enable options and change their values here
1640 * only if you have a good reason and know the consequences.
1641 *
1642 * Please check the respective header file for documentation on these
1643 * parameters (to prevent duplicate documentation).
1644 * \{
1645 */
1646
1647/* MPI / BIGNUM options */
1648//#define MBEDTLS_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
1649//#define MBEDTLS_MPI_MAX_SIZE 1024 /**< Maximum number of bytes for usable MPIs. */
1650
1651/* CTR_DRBG options */
1652//#define MBEDTLS_CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default (48 with SHA-512, 32 with SHA-256) */
1653//#define MBEDTLS_CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
1654//#define MBEDTLS_CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
1655//#define MBEDTLS_CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
1656//#define MBEDTLS_CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
1657
1658/* HMAC_DRBG options */
1659//#define MBEDTLS_HMAC_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
1660//#define MBEDTLS_HMAC_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
1661//#define MBEDTLS_HMAC_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
1662//#define MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
1663
1664/* ECP options */
1665//#define MBEDTLS_ECP_MAX_BITS 521 /**< Maximum bit size of groups */
1666//#define MBEDTLS_ECP_WINDOW_SIZE 6 /**< Maximum window size used */
1667//#define MBEDTLS_ECP_FIXED_POINT_OPTIM 1 /**< Enable fixed-point speed-up */
1668
1669/* Entropy options */
1670//#define MBEDTLS_ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
1671//#define MBEDTLS_ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
1672//#define MBEDTLS_ENTROPY_MIN_HARDWARE 32 /**< Default minimum number of bytes required for the hardware entropy source mbedtls_hardware_poll() before entropy is released */
1673
1674/* Memory buffer allocator options */
1675//#define MBEDTLS_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */
1676
1677/* Platform options */
1678//#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. */
1679//#define MBEDTLS_PLATFORM_STD_CALLOC calloc /**< Default allocator to use, can be undefined */
1680//#define MBEDTLS_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */
1681//#define MBEDTLS_PLATFORM_STD_EXIT exit /**< Default exit to use, can be undefined */
1682//#define MBEDTLS_PLATFORM_STD_TIME time /**< Default time to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
1683//#define MBEDTLS_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */
1684//#define MBEDTLS_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */
1685/* Note: your snprintf must correclty zero-terminate the buffer! */
1686//#define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< Default snprintf to use, can be undefined */
1687//#define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS 0 /**< Default exit value to use, can be undefined */
1688//#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE 1 /**< Default exit value to use, can be undefined */
1689//#define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
1690//#define MBEDTLS_PLATFORM_STD_NV_SEED_WRITE mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
1691//#define MBEDTLS_PLATFORM_STD_NV_SEED_FILE "seedfile" /**< Seed file to read/write with default implementation */
1692
1693/* To Use Function Macros MBEDTLS_PLATFORM_C must be enabled */
1694/* MBEDTLS_PLATFORM_XXX_MACRO and MBEDTLS_PLATFORM_XXX_ALT cannot both be defined */
1695//#define MBEDTLS_PLATFORM_CALLOC_MACRO calloc /**< Default allocator macro to use, can be undefined */
1696//#define MBEDTLS_PLATFORM_FREE_MACRO free /**< Default free macro to use, can be undefined */
1697//#define MBEDTLS_PLATFORM_EXIT_MACRO exit /**< Default exit macro to use, can be undefined */
1698//#define MBEDTLS_PLATFORM_TIME_MACRO time /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
1699//#define MBEDTLS_PLATFORM_TIME_TYPE_MACRO time_t /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
1700//#define MBEDTLS_PLATFORM_FPRINTF_MACRO fprintf /**< Default fprintf macro to use, can be undefined */
1701//#define MBEDTLS_PLATFORM_PRINTF_MACRO printf /**< Default printf macro to use, can be undefined */
1702/* Note: your snprintf must correclty zero-terminate the buffer! */
1703//#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf /**< Default snprintf macro to use, can be undefined */
1704//#define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
1705//#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
1706
1707/* \} name SECTION: Customisation configuration options */
1708
1709#include "mbedtls/check_config.h"
1710
1711#endif /* MBEDTLS_CONFIG_H */