blob: b7d8b6b2641402b3c90baee20bf958e1c67a9c6b [file] [log] [blame]
Paul Bakker5121ce52009-01-03 21:22:43 +00001/**
2 * \file config.h
3 *
Paul Bakker37ca75d2011-01-06 12:28:03 +00004 * \brief Configuration options (set of defines)
5 *
Paul Bakker530927b2015-02-13 14:24:10 +01006 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
Paul Bakkerb96f1542010-07-18 20:36:00 +00007 *
Manuel Pégourié-Gonnarde12abf92015-01-28 17:13:45 +00008 * This file is part of mbed TLS (https://polarssl.org)
Paul Bakkere0ccd0a2009-01-04 16:27:10 +00009 *
Paul Bakkere0ccd0a2009-01-04 16:27:10 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 *
Paul Bakker5121ce52009-01-03 21:22:43 +000024 * This set of compile-time options may be used to enable
25 * or disable features selectively, and reduce the global
26 * memory footprint.
27 */
Paul Bakker40e46942009-01-03 21:51:57 +000028#ifndef POLARSSL_CONFIG_H
29#define POLARSSL_CONFIG_H
Paul Bakker5121ce52009-01-03 21:22:43 +000030
Paul Bakkercce9d772011-11-18 14:26:47 +000031#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
Paul Bakker5121ce52009-01-03 21:22:43 +000032#define _CRT_SECURE_NO_DEPRECATE 1
33#endif
34
Paul Bakkerf3b86c12011-01-27 15:24:17 +000035/**
Paul Bakker0a62cd12011-01-21 11:00:08 +000036 * \name SECTION: System support
37 *
38 * This section sets system specific settings.
39 * \{
40 */
41
Paul Bakkerf3b86c12011-01-27 15:24:17 +000042/**
43 * \def POLARSSL_HAVE_INT8
Paul Bakker5121ce52009-01-03 21:22:43 +000044 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +000045 * The system uses 8-bit wide native integers.
46 *
47 * Uncomment if native integers are 8-bit wide.
Paul Bakker40e46942009-01-03 21:51:57 +000048#define POLARSSL_HAVE_INT8
Paul Bakker5121ce52009-01-03 21:22:43 +000049 */
50
Paul Bakkerf3b86c12011-01-27 15:24:17 +000051/**
52 * \def POLARSSL_HAVE_INT16
Paul Bakker5121ce52009-01-03 21:22:43 +000053 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +000054 * The system uses 16-bit wide native integers.
55 *
56 * Uncomment if native integers are 16-bit wide.
Paul Bakker40e46942009-01-03 21:51:57 +000057#define POLARSSL_HAVE_INT16
Paul Bakker5121ce52009-01-03 21:22:43 +000058 */
59
Paul Bakkerf3b86c12011-01-27 15:24:17 +000060/**
Paul Bakker62261d62012-10-02 12:19:31 +000061 * \def POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000062 *
Paul Bakker62261d62012-10-02 12:19:31 +000063 * The compiler supports the 'long long' type.
64 * (Only used on 32-bit platforms)
Paul Bakker5121ce52009-01-03 21:22:43 +000065 */
Paul Bakker62261d62012-10-02 12:19:31 +000066#define POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000067
Paul Bakkerf3b86c12011-01-27 15:24:17 +000068/**
69 * \def POLARSSL_HAVE_ASM
70 *
71 * The compiler has support for asm()
72 *
Paul Bakker5121ce52009-01-03 21:22:43 +000073 * Uncomment to enable the use of assembly code.
Paul Bakker68041ec2009-04-19 21:17:55 +000074 *
75 * Requires support for asm() in compiler.
76 *
77 * Used in:
78 * library/timing.c
79 * library/padlock.c
80 * include/polarssl/bn_mul.h
81 *
Paul Bakker5121ce52009-01-03 21:22:43 +000082 */
Paul Bakker40e46942009-01-03 21:51:57 +000083#define POLARSSL_HAVE_ASM
Paul Bakker5121ce52009-01-03 21:22:43 +000084
Paul Bakkerf3b86c12011-01-27 15:24:17 +000085/**
86 * \def POLARSSL_HAVE_SSE2
87 *
Paul Bakkere23c3152012-10-01 14:42:47 +000088 * CPU supports SSE2 instruction set.
Paul Bakkerf3b86c12011-01-27 15:24:17 +000089 *
Paul Bakker5121ce52009-01-03 21:22:43 +000090 * Uncomment if the CPU supports SSE2 (IA-32 specific).
91 *
Paul Bakker40e46942009-01-03 21:51:57 +000092#define POLARSSL_HAVE_SSE2
Paul Bakker5121ce52009-01-03 21:22:43 +000093 */
Paul Bakker9ccb2112014-07-07 13:43:31 +020094
95/**
96 * \def POLARSSL_HAVE_READDIR_R
97 *
98 * (Non Windows) System has readdir_r().
99 *
100 * Required for x509_crt_parse_path() in non-Windows systems.
101 *
102 * Comment if your system does not have support.
103 */
104#define POLARSSL_HAVE_READDIR_R
Paul Bakker0a62cd12011-01-21 11:00:08 +0000105/* \} name */
106
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000107/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000108 * \name SECTION: PolarSSL feature support
109 *
110 * This section sets support for features that are or are not needed
111 * within the modules that are enabled.
112 * \{
113 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000114
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000115/**
Paul Bakker4087c472013-06-12 16:49:10 +0200116 * \def POLARSSL_XXX_ALT
117 *
118 * Uncomment a macro to let PolarSSL use your alternate core implementation of
119 * a symmetric or hash algorithm (e.g. platform specific assembly optimized
120 * implementations). Keep in mind that the function prototypes should remain
121 * the same.
122 *
123 * Example: In case you uncomment POLARSSL_AES_ALT, PolarSSL will no longer
124 * provide the "struct aes_context" definition and omit the base function
125 * declarations and implementations. "aes_alt.h" will be included from
126 * "aes.h" to include the new function definitions.
127 *
128 * Uncomment a macro to enable alternate implementation for core algorithm
129 * functions
130#define POLARSSL_AES_ALT
131#define POLARSSL_ARC4_ALT
132#define POLARSSL_BLOWFISH_ALT
133#define POLARSSL_CAMELLIA_ALT
134#define POLARSSL_DES_ALT
135#define POLARSSL_XTEA_ALT
136#define POLARSSL_MD2_ALT
137#define POLARSSL_MD4_ALT
138#define POLARSSL_MD5_ALT
139#define POLARSSL_SHA1_ALT
140#define POLARSSL_SHA2_ALT
141#define POLARSSL_SHA4_ALT
142 */
143
144/**
Paul Bakker15566e42011-04-24 21:19:15 +0000145 * \def POLARSSL_AES_ROM_TABLES
146 *
147 * Store the AES tables in ROM.
148 *
149 * Uncomment this macro to store the AES tables in ROM.
150 *
151#define POLARSSL_AES_ROM_TABLES
152 */
153
154/**
Paul Bakkerb6ecaf52011-04-19 14:29:23 +0000155 * \def POLARSSL_CIPHER_MODE_CFB
156 *
157 * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
158 */
159#define POLARSSL_CIPHER_MODE_CFB
160
161/**
162 * \def POLARSSL_CIPHER_MODE_CTR
163 *
164 * Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
165 */
166#define POLARSSL_CIPHER_MODE_CTR
167
168/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000169 * \def POLARSSL_CIPHER_NULL_CIPHER
170 *
171 * Enable NULL cipher.
172 * Warning: Only do so when you know what you are doing. This allows for
173 * encryption or channels without any security!
174 *
175 * Requires POLARSSL_ENABLE_WEAK_CIPHERSUITES as well to enable
176 * the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000177 * TLS_RSA_WITH_NULL_MD5
178 * TLS_RSA_WITH_NULL_SHA
179 * TLS_RSA_WITH_NULL_SHA256
Paul Bakkerfab5c822012-02-06 16:45:10 +0000180 *
181 * Uncomment this macro to enable the NULL cipher and ciphersuites
182#define POLARSSL_CIPHER_NULL_CIPHER
183 */
184
185/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000186 * \def POLARSSL_ENABLE_WEAK_CIPHERSUITES
187 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000188 * Enable weak ciphersuites in SSL / TLS
Paul Bakkerfab5c822012-02-06 16:45:10 +0000189 * Warning: Only do so when you know what you are doing. This allows for
Paul Bakker9a736322012-11-14 12:39:52 +0000190 * channels with virtually no security at all!
Paul Bakkerfab5c822012-02-06 16:45:10 +0000191 *
192 * This enables the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000193 * TLS_RSA_WITH_DES_CBC_SHA
194 * TLS_DHE_RSA_WITH_DES_CBC_SHA
Paul Bakkerfab5c822012-02-06 16:45:10 +0000195 *
196 * Uncomment this macro to enable weak ciphersuites
197#define POLARSSL_ENABLE_WEAK_CIPHERSUITES
198 */
199
200/**
Paul Bakker8fe40dc2013-02-02 12:43:08 +0100201 * \def POLARSSL_ERROR_STRERROR_DUMMY
202 *
203 * Enable a dummy error function to make use of error_strerror() in
204 * third party libraries easier.
205 *
206 * Disable if you run into name conflicts and want to really remove the
207 * error_strerror()
208 */
209#define POLARSSL_ERROR_STRERROR_DUMMY
210
211/**
Paul Bakker15566e42011-04-24 21:19:15 +0000212 * \def POLARSSL_GENPRIME
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000213 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000214 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
215 *
Paul Bakker15566e42011-04-24 21:19:15 +0000216 * Enable the RSA prime-number generation code.
Paul Bakker5121ce52009-01-03 21:22:43 +0000217 */
Paul Bakker15566e42011-04-24 21:19:15 +0000218#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000219
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000220/**
Paul Bakker335db3f2011-04-25 15:28:35 +0000221 * \def POLARSSL_FS_IO
222 *
223 * Enable functions that use the filesystem.
224 */
225#define POLARSSL_FS_IO
226
227/**
Paul Bakker43655f42011-12-15 20:11:16 +0000228 * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
229 *
230 * Do not add default entropy sources. These are the platform specific,
231 * hardclock and HAVEGE based poll functions.
232 *
233 * This is useful to have more control over the added entropy sources in an
234 * application.
235 *
236 * Uncomment this macro to prevent loading of default entropy functions.
237#define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
238 */
239
240/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000241 * \def POLARSSL_NO_PLATFORM_ENTROPY
242 *
243 * Do not use built-in platform entropy functions.
244 * This is useful if your platform does not support
245 * standards like the /dev/urandom or Windows CryptoAPI.
246 *
247 * Uncomment this macro to disable the built-in platform entropy functions.
248#define POLARSSL_NO_PLATFORM_ENTROPY
249 */
250
251/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000252 * \def POLARSSL_PKCS1_V21
253 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000254 * Requires: POLARSSL_MD_C, POLARSSL_RSA_C
255 *
Paul Bakker9dcc3222011-03-08 14:16:06 +0000256 * Enable support for PKCS#1 v2.1 encoding.
257 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
258 */
259#define POLARSSL_PKCS1_V21
260
261/**
Paul Bakker0216cc12011-03-26 13:40:23 +0000262 * \def POLARSSL_RSA_NO_CRT
263 *
264 * Do not use the Chinese Remainder Theorem for the RSA private operation.
265 *
266 * Uncomment this macro to disable the use of CRT in RSA.
267 *
268#define POLARSSL_RSA_NO_CRT
269 */
Paul Bakker15566e42011-04-24 21:19:15 +0000270
271/**
272 * \def POLARSSL_SELF_TEST
273 *
274 * Enable the checkup functions (*_self_test).
275 */
276#define POLARSSL_SELF_TEST
Paul Bakker5c721f92011-07-27 16:51:09 +0000277
278/**
Paul Bakker40865c82013-01-31 17:13:13 +0100279 * \def POLARSSL_SSL_ALL_ALERT_MESSAGES
280 *
281 * Enable sending of alert messages in case of encountered errors as per RFC.
282 * If you choose not to send the alert messages, PolarSSL can still communicate
283 * with other servers, only debugging of failures is harder.
284 *
285 * The advantage of not sending alert messages, is that no information is given
286 * about reasons for failures thus preventing adversaries of gaining intel.
287 *
288 * Enable sending of all alert messages
289 */
290#define POLARSSL_SSL_ALERT_MESSAGES
291
292/**
Paul Bakkerd66f0702013-01-31 16:57:45 +0100293 * \def POLARSSL_SSL_DEBUG_ALL
294 *
295 * Enable the debug messages in SSL module for all issues.
296 * Debug messages have been disabled in some places to prevent timing
297 * attacks due to (unbalanced) debugging function calls.
298 *
299 * If you need all error reporting you should enable this during debugging,
300 * but remove this for production servers that should log as well.
301 *
302 * Uncomment this macro to report all debug messages on errors introducing
303 * a timing side-channel.
304 *
305#define POLARSSL_SSL_DEBUG_ALL
306 */
307
308/**
Paul Bakker05ef8352012-05-08 09:17:57 +0000309 * \def POLARSSL_SSL_HW_RECORD_ACCEL
310 *
311 * Enable hooking functions in SSL module for hardware acceleration of
312 * individual records.
313 *
314 * Uncomment this macro to enable hooking functions.
315#define POLARSSL_SSL_HW_RECORD_ACCEL
316 */
317
318/**
Paul Bakker78a8c712013-03-06 17:01:52 +0100319 * \def POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
320 *
321 * Enable support for receiving and parsing SSLv2 Client Hello messages for the
322 * SSL Server module (POLARSSL_SSL_SRV_C)
323 *
324 * Comment this macro to disable support for SSLv2 Client Hello messages.
325 */
326#define POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
327
328/**
Paul Bakker5c721f92011-07-27 16:51:09 +0000329 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
330 *
331 * If set, the X509 parser will not break-off when parsing an X509 certificate
332 * and encountering an unknown critical extension.
333 *
Manuel Pégourié-Gonnard021a1152015-10-05 12:12:39 +0100334 * \warning Depending on your PKI use, enabling this can be a security risk!
Paul Bakker5c721f92011-07-27 16:51:09 +0000335 *
Manuel Pégourié-Gonnard021a1152015-10-05 12:12:39 +0100336 * Uncomment to prevent an error.
Paul Bakker5c721f92011-07-27 16:51:09 +0000337#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
338 */
Paul Bakker2770fbd2012-07-03 13:30:23 +0000339
340/**
341 * \def POLARSSL_ZLIB_SUPPORT
342 *
343 * If set, the SSL/TLS module uses ZLIB to support compression and
344 * decompression of packet data.
345 *
Manuel Pégourié-Gonnard588b66f2014-03-11 10:30:38 +0100346 * \warning TLS-level compression MAY REDUCE SECURITY! See for example the
347 * CRIME attack. Before enabling this option, you should examine with care if
348 * CRIME or similar exploits may be a applicable to your use case.
349 *
Paul Bakker2770fbd2012-07-03 13:30:23 +0000350 * Used in: library/ssl_tls.c
351 * library/ssl_cli.c
352 * library/ssl_srv.c
353 *
354 * This feature requires zlib library and headers to be present.
355 *
356 * Uncomment to enable use of ZLIB
357#define POLARSSL_ZLIB_SUPPORT
358 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000359/* \} name */
360
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000361/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000362 * \name SECTION: PolarSSL modules
363 *
364 * This section enables or disables entire modules in PolarSSL
365 * \{
366 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000367
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000368/**
369 * \def POLARSSL_AES_C
370 *
371 * Enable the AES block cipher.
372 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000373 * Module: library/aes.c
374 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000375 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +0000376 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000377 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000378 * This module enables the following ciphersuites (if other requisites are
379 * enabled as well):
380 * TLS_RSA_WITH_AES_128_CBC_SHA
381 * TLS_RSA_WITH_AES_256_CBC_SHA
382 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA
383 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA
384 * TLS_RSA_WITH_AES_128_CBC_SHA256
385 * TLS_RSA_WITH_AES_256_CBC_SHA256
386 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
387 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
388 * TLS_RSA_WITH_AES_128_GCM_SHA256
389 * TLS_RSA_WITH_AES_256_GCM_SHA384
Paul Bakker6deb37e2013-02-19 13:17:08 +0100390 *
391 * PEM uses AES for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +0000392 */
Paul Bakker40e46942009-01-03 21:51:57 +0000393#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000394
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000395/**
396 * \def POLARSSL_ARC4_C
397 *
398 * Enable the ARCFOUR stream cipher.
399 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000400 * Module: library/arc4.c
401 * Caller: library/ssl_tls.c
402 *
403 * This module enables the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000404 * TLS_RSA_WITH_RC4_128_MD5
405 * TLS_RSA_WITH_RC4_128_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000406 */
Paul Bakker40e46942009-01-03 21:51:57 +0000407#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000408
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000409/**
Paul Bakkerefc30292011-11-10 14:43:23 +0000410 * \def POLARSSL_ASN1_PARSE_C
411 *
412 * Enable the generic ASN1 parser.
413 *
414 * Module: library/asn1.c
415 * Caller: library/x509parse.c
416 */
417#define POLARSSL_ASN1_PARSE_C
418
419/**
Paul Bakkerbdb912d2012-02-13 23:11:30 +0000420 * \def POLARSSL_ASN1_WRITE_C
421 *
422 * Enable the generic ASN1 writer.
423 *
424 * Module: library/asn1write.c
425 */
426#define POLARSSL_ASN1_WRITE_C
427
428/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000429 * \def POLARSSL_BASE64_C
430 *
431 * Enable the Base64 module.
432 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000433 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +0000434 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000435 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000436 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +0000437 */
Paul Bakker40e46942009-01-03 21:51:57 +0000438#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000439
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000440/**
441 * \def POLARSSL_BIGNUM_C
442 *
Paul Bakker9a736322012-11-14 12:39:52 +0000443 * Enable the multi-precision integer library.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000444 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000445 * Module: library/bignum.c
446 * Caller: library/dhm.c
447 * library/rsa.c
448 * library/ssl_tls.c
449 * library/x509parse.c
450 *
451 * This module is required for RSA and DHM support.
452 */
Paul Bakker40e46942009-01-03 21:51:57 +0000453#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000454
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000455/**
Paul Bakkera9379c02012-07-04 11:02:11 +0000456 * \def POLARSSL_BLOWFISH_C
457 *
458 * Enable the Blowfish block cipher.
459 *
460 * Module: library/blowfish.c
461 */
462#define POLARSSL_BLOWFISH_C
463
464/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000465 * \def POLARSSL_CAMELLIA_C
466 *
467 * Enable the Camellia block cipher.
468 *
Paul Bakker38119b12009-01-10 23:31:23 +0000469 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000470 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000471 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000472 * This module enables the following ciphersuites (if other requisites are
473 * enabled as well):
474 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
475 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
476 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
477 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
478 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256
479 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256
480 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
481 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
Paul Bakker38119b12009-01-10 23:31:23 +0000482 */
483#define POLARSSL_CAMELLIA_C
484
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000485/**
486 * \def POLARSSL_CERTS_C
487 *
488 * Enable the test certificates.
489 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000490 * Module: library/certs.c
491 * Caller:
492 *
493 * This module is used for testing (ssl_client/server).
494 */
Paul Bakker40e46942009-01-03 21:51:57 +0000495#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000496
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000497/**
498 * \def POLARSSL_CIPHER_C
499 *
500 * Enable the generic cipher layer.
501 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000502 * Module: library/cipher.c
503 * Caller:
504 *
505 * Uncomment to enable generic cipher wrappers.
506 */
507#define POLARSSL_CIPHER_C
508
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000509/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000510 * \def POLARSSL_CTR_DRBG_C
511 *
512 * Enable the CTR_DRBG AES-256-based random generator
513 *
514 * Module: library/ctr_drbg.c
515 * Caller:
516 *
Paul Bakker6083fd22011-12-03 21:45:14 +0000517 * Requires: POLARSSL_AES_C
518 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000519 * This module provides the CTR_DRBG AES-256 random number generator.
520 */
521#define POLARSSL_CTR_DRBG_C
522
523/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000524 * \def POLARSSL_DEBUG_C
525 *
526 * Enable the debug functions.
527 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000528 * Module: library/debug.c
529 * Caller: library/ssl_cli.c
530 * library/ssl_srv.c
531 * library/ssl_tls.c
532 *
533 * This module provides debugging functions.
534 */
Paul Bakker40e46942009-01-03 21:51:57 +0000535#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000536
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000537/**
538 * \def POLARSSL_DES_C
539 *
540 * Enable the DES block cipher.
541 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000542 * Module: library/des.c
Paul Bakker6deb37e2013-02-19 13:17:08 +0100543 * Caller: library/pem.c
544 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000545 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000546 * This module enables the following ciphersuites (if other requisites are
547 * enabled as well):
548 * TLS_RSA_WITH_3DES_EDE_CBC_SHA
549 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
Paul Bakker6deb37e2013-02-19 13:17:08 +0100550 *
551 * PEM uses DES/3DES for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +0000552 */
Paul Bakker40e46942009-01-03 21:51:57 +0000553#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000554
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000555/**
556 * \def POLARSSL_DHM_C
557 *
558 * Enable the Diffie-Hellman-Merkle key exchange.
559 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000560 * Module: library/dhm.c
561 * Caller: library/ssl_cli.c
562 * library/ssl_srv.c
563 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000564 * This module enables the following ciphersuites (if other requisites are
565 * enabled as well):
566 * TLS_DHE_RSA_WITH_DES_CBC_SHA
567 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
568 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA
569 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA
570 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
571 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
572 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
573 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
574 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
575 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
576 * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
577 * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
Paul Bakker5121ce52009-01-03 21:22:43 +0000578 */
Paul Bakker40e46942009-01-03 21:51:57 +0000579#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000580
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000581/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000582 * \def POLARSSL_ENTROPY_C
583 *
584 * Enable the platform-specific entropy code.
585 *
586 * Module: library/entropy.c
587 * Caller:
588 *
589 * Requires: POLARSSL_SHA4_C
590 *
591 * This module provides a generic entropy pool
592 */
593#define POLARSSL_ENTROPY_C
594
595/**
Paul Bakker9d781402011-05-09 16:17:09 +0000596 * \def POLARSSL_ERROR_C
597 *
598 * Enable error code to error string conversion.
599 *
600 * Module: library/error.c
601 * Caller:
602 *
603 * This module enables err_strerror().
604 */
605#define POLARSSL_ERROR_C
606
607/**
Paul Bakker89e80c92012-03-20 13:50:09 +0000608 * \def POLARSSL_GCM_C
609 *
610 * Enable the Galois/Counter Mode (GCM) for AES
611 *
612 * Module: library/gcm.c
613 *
614 * Requires: POLARSSL_AES_C
Paul Bakker645ce3a2012-10-31 12:32:41 +0000615 *
616 * This module enables the following ciphersuites (if other requisites are
617 * enabled as well):
618 * TLS_RSA_WITH_AES_128_GCM_SHA256
619 * TLS_RSA_WITH_AES_256_GCM_SHA384
Paul Bakker89e80c92012-03-20 13:50:09 +0000620 */
621#define POLARSSL_GCM_C
622
623/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000624 * \def POLARSSL_HAVEGE_C
625 *
626 * Enable the HAVEGE random generator.
627 *
Paul Bakker08f06cf2013-06-06 14:05:26 +0200628 * Warning: the HAVEGE random generator is not suitable for virtualized
629 * environments
630 *
631 * Warning: the HAVEGE random generator is dependent on timing and specific
632 * processor traits. It is therefore not advised to use HAVEGE as
633 * your applications primary random generator or primary entropy pool
634 * input. As a secondary input to your entropy pool, it IS able add
635 * the (limited) extra entropy it provides.
636 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000637 * Module: library/havege.c
638 * Caller:
639 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000640 * Requires: POLARSSL_TIMING_C
641 *
Paul Bakker08f06cf2013-06-06 14:05:26 +0200642 * Uncomment to enable the HAVEGE random generator.
Paul Bakker40e46942009-01-03 21:51:57 +0000643#define POLARSSL_HAVEGE_C
Paul Bakker08f06cf2013-06-06 14:05:26 +0200644 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000645
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000646/**
647 * \def POLARSSL_MD_C
648 *
649 * Enable the generic message digest layer.
650 *
Paul Bakker17373852011-01-06 14:20:01 +0000651 * Module: library/md.c
652 * Caller:
653 *
654 * Uncomment to enable generic message digest wrappers.
655 */
656#define POLARSSL_MD_C
657
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000658/**
659 * \def POLARSSL_MD2_C
660 *
661 * Enable the MD2 hash algorithm
662 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000663 * Module: library/md2.c
664 * Caller: library/x509parse.c
665 *
666 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
667 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000668#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000669 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000670
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000671/**
672 * \def POLARSSL_MD4_C
673 *
674 * Enable the MD4 hash algorithm
675 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000676 * Module: library/md4.c
677 * Caller: library/x509parse.c
678 *
679 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
680 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000681#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000682 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000683
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000684/**
685 * \def POLARSSL_MD5_C
686 *
687 * Enable the MD5 hash algorithm
688 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000689 * Module: library/md5.c
Paul Bakker6deb37e2013-02-19 13:17:08 +0100690 * Caller: library/pem.c
691 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000692 * library/x509parse.c
693 *
694 * This module is required for SSL/TLS and X.509.
Paul Bakker6deb37e2013-02-19 13:17:08 +0100695 * PEM uses MD5 for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +0000696 */
Paul Bakker40e46942009-01-03 21:51:57 +0000697#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000698
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000699/**
700 * \def POLARSSL_NET_C
701 *
702 * Enable the TCP/IP networking routines.
703 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000704 * Module: library/net.c
705 * Caller:
706 *
707 * This module provides TCP/IP networking routines.
708 */
Paul Bakker40e46942009-01-03 21:51:57 +0000709#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000710
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000711/**
712 * \def POLARSSL_PADLOCK_C
713 *
714 * Enable VIA Padlock support on x86.
715 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000716 * Module: library/padlock.c
717 * Caller: library/aes.c
718 *
719 * This modules adds support for the VIA PadLock on x86.
720 */
Paul Bakker40e46942009-01-03 21:51:57 +0000721#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000722
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000723/**
Paul Bakkerf518b162012-08-23 13:03:18 +0000724 * \def POLARSSL_PBKDF2_C
725 *
726 * Enable PKCS#5 PBKDF2 key derivation function
Paul Bakker19bd2972013-06-14 12:06:45 +0200727 * DEPRECATED: Use POLARSSL_PKCS5_C instead
Paul Bakkerf518b162012-08-23 13:03:18 +0000728 *
729 * Module: library/pbkdf2.c
730 *
Paul Bakker19bd2972013-06-14 12:06:45 +0200731 * Requires: POLARSSL_PKCS5_C
Paul Bakkerf518b162012-08-23 13:03:18 +0000732 *
733 * This module adds support for the PKCS#5 PBKDF2 key derivation function.
734#define POLARSSL_PBKDF2_C
735 */
736
737/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000738 * \def POLARSSL_PEM_C
739 *
740 * Enable PEM decoding
741 *
742 * Module: library/pem.c
743 * Caller: library/x509parse.c
744 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000745 * Requires: POLARSSL_BASE64_C
746 *
Paul Bakker96743fc2011-02-12 14:30:57 +0000747 * This modules adds support for decoding PEM files.
748 */
749#define POLARSSL_PEM_C
750
751/**
Paul Bakker19bd2972013-06-14 12:06:45 +0200752 * \def POLARSSL_PKCS5_C
753 *
754 * Enable PKCS#5 functions
755 *
756 * Module: library/pkcs5.c
757 *
758 * Requires: POLARSSL_MD_C
759 *
760 * This module adds support for the PKCS#5 functions.
761 */
762#define POLARSSL_PKCS5_C
763
764/**
Paul Bakker5690efc2011-05-26 13:16:06 +0000765 * \def POLARSSL_PKCS11_C
766 *
Paul Bakkereb2c6582012-09-27 19:15:01 +0000767 * Enable wrapper for PKCS#11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +0000768 *
769 * Module: library/ssl_srv.c
770 * Caller: library/ssl_cli.c
771 * library/ssl_srv.c
772 *
773 * Requires: POLARSSL_SSL_TLS_C
774 *
Paul Bakkereb2c6582012-09-27 19:15:01 +0000775 * This module enables SSL/TLS PKCS #11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +0000776 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
777#define POLARSSL_PKCS11_C
778 */
779
780/**
Paul Bakkercf6e95d2013-06-12 13:18:15 +0200781 * \def POLARSSL_PKCS12_C
782 *
783 * Enable PKCS#12 PBE functions
784 * Adds algorithms for parsing PKCS#8 encrypted private keys
785 *
786 * Module: library/pkcs12.c
787 * Caller: library/x509parse.c
788 *
Paul Bakker602c31b2013-06-18 16:49:18 +0200789 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_CIPHER_C, POLARSSL_MD_C
790 * Can use: POLARSSL_ARC4_C
Paul Bakkercf6e95d2013-06-12 13:18:15 +0200791 *
792 * This module enables PKCS#12 functions.
793 */
794#define POLARSSL_PKCS12_C
795
796/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000797 * \def POLARSSL_RSA_C
798 *
799 * Enable the RSA public-key cryptosystem.
800 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000801 * Module: library/rsa.c
802 * Caller: library/ssl_cli.c
803 * library/ssl_srv.c
804 * library/ssl_tls.c
805 * library/x509.c
806 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000807 * Requires: POLARSSL_BIGNUM_C
808 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000809 * This module is required for SSL/TLS and MD5-signed certificates.
810 */
Paul Bakker40e46942009-01-03 21:51:57 +0000811#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000812
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000813/**
814 * \def POLARSSL_SHA1_C
815 *
816 * Enable the SHA1 cryptographic hash algorithm.
817 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000818 * Module: library/sha1.c
819 * Caller: library/ssl_cli.c
820 * library/ssl_srv.c
821 * library/ssl_tls.c
822 * library/x509parse.c
823 *
824 * This module is required for SSL/TLS and SHA1-signed certificates.
825 */
Paul Bakker40e46942009-01-03 21:51:57 +0000826#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000827
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000828/**
829 * \def POLARSSL_SHA2_C
830 *
831 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
832 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000833 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000834 * Caller: library/md_wrap.c
835 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000836 *
837 * This module adds support for SHA-224 and SHA-256.
Paul Bakker769075d2012-11-24 11:26:46 +0100838 * This module is required for the SSL/TLS 1.2 PRF function.
Paul Bakker5121ce52009-01-03 21:22:43 +0000839 */
Paul Bakker40e46942009-01-03 21:51:57 +0000840#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000841
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000842/**
843 * \def POLARSSL_SHA4_C
844 *
845 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
846 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000847 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000848 * Caller: library/md_wrap.c
849 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000850 *
851 * This module adds support for SHA-384 and SHA-512.
852 */
Paul Bakker40e46942009-01-03 21:51:57 +0000853#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000854
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000855/**
Paul Bakker0a597072012-09-25 21:55:46 +0000856 * \def POLARSSL_SSL_CACHE_C
857 *
858 * Enable simple SSL cache implementation.
859 *
860 * Module: library/ssl_cache.c
861 * Caller:
862 *
863 * Requires: POLARSSL_SSL_CACHE_C
864 */
865#define POLARSSL_SSL_CACHE_C
866
867/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000868 * \def POLARSSL_SSL_CLI_C
869 *
870 * Enable the SSL/TLS client code.
871 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000872 * Module: library/ssl_cli.c
873 * Caller:
874 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000875 * Requires: POLARSSL_SSL_TLS_C
876 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000877 * This module is required for SSL/TLS client support.
878 */
Paul Bakker40e46942009-01-03 21:51:57 +0000879#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000880
Paul Bakker9a736322012-11-14 12:39:52 +0000881/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000882 * \def POLARSSL_SSL_SRV_C
883 *
884 * Enable the SSL/TLS server code.
885 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000886 * Module: library/ssl_srv.c
887 * Caller:
888 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000889 * Requires: POLARSSL_SSL_TLS_C
890 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000891 * This module is required for SSL/TLS server support.
892 */
Paul Bakker40e46942009-01-03 21:51:57 +0000893#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000894
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000895/**
896 * \def POLARSSL_SSL_TLS_C
897 *
Paul Bakkere29ab062011-05-18 13:26:54 +0000898 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000899 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000900 * Module: library/ssl_tls.c
901 * Caller: library/ssl_cli.c
902 * library/ssl_srv.c
903 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000904 * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C
905 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000906 * This module is required for SSL/TLS.
907 */
Paul Bakker40e46942009-01-03 21:51:57 +0000908#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000909
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000910/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000911 * \def POLARSSL_TIMING_C
912 *
913 * Enable the portable timing interface.
914 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000915 * Module: library/timing.c
916 * Caller: library/havege.c
917 *
918 * This module is used by the HAVEGE random number generator.
919 */
Paul Bakker40e46942009-01-03 21:51:57 +0000920#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000921
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000922/**
923 * \def POLARSSL_VERSION_C
924 *
925 * Enable run-time version information.
926 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000927 * Module: library/version.c
928 *
929 * This module provides run-time version information.
930 */
931#define POLARSSL_VERSION_C
932
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000933/**
934 * \def POLARSSL_X509_PARSE_C
935 *
936 * Enable X.509 certificate parsing.
937 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000938 * Module: library/x509parse.c
939 * Caller: library/ssl_cli.c
940 * library/ssl_srv.c
941 * library/ssl_tls.c
942 *
Paul Bakkerefc30292011-11-10 14:43:23 +0000943 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C
Paul Bakker5690efc2011-05-26 13:16:06 +0000944 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000945 * This module is required for X.509 certificate parsing.
946 */
Paul Bakker40e46942009-01-03 21:51:57 +0000947#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000948
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000949/**
Paul Bakkerbdb912d2012-02-13 23:11:30 +0000950 * \def POLARSSL_X509_WRITE_C
951 *
952 * Enable X.509 buffer writing.
953 *
954 * Module: library/x509write.c
955 *
956 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
957 *
958 * This module is required for X.509 certificate request writing.
959 */
960#define POLARSSL_X509_WRITE_C
961
962/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000963 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000964 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000965 * Enable the XTEA block cipher.
966 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000967 * Module: library/xtea.c
968 * Caller:
969 */
970#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000971/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000972
Paul Bakker6fa54882013-06-17 15:44:03 +0200973/**
974 * \name SECTION: Module configuration options
975 *
976 * This section allows for the setting of module specific sizes and
977 * configuration options. The default values are already present in the
978 * relevant header files and should suffice for the regular use cases.
979 * Our advice is to enable POLARSSL_CONFIG_OPTIONS and change values here
980 * only if you have a good reason and know the consequences.
981 *
982 * If POLARSSL_CONFIG_OPTIONS is undefined here the options in the module
983 * header file take precedence.
984 *
985 * Please check the respective header file for documentation on these
986 * parameters (to prevent duplicate documentation).
987 *
988 * Uncomment POLARSSL_CONFIG_OPTIONS to enable using the values defined here.
989 * \{
990 */
991//#define POLARSSL_CONFIG_OPTIONS /**< Enable config.h module value configuration */
992
993#if defined(POLARSSL_CONFIG_OPTIONS)
994
995// MPI / BIGNUM options
996//
997#define POLARSSL_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
998#define POLARSSL_MPI_MAX_SIZE 512 /**< Maximum number of bytes for usable MPIs. */
999
1000// CTR_DRBG options
1001//
1002#define CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default */
1003#define CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
1004#define CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
1005#define CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
1006#define CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
1007
1008// Entropy options
1009//
1010#define ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
1011#define ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
1012
1013// SSL Cache options
1014//
1015#define SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
1016#define SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
1017
1018// SSL options
1019//
1020#define SSL_MAX_CONTENT_LEN 16384 /**< Size of the input / output buffer */
Manuel Pégourié-Gonnard5324d412015-06-26 18:20:34 +02001021#define SSL_MIN_DHM_BYTES 128 /**< Min size of the Diffie-Hellman prime */
Paul Bakker6fa54882013-06-17 15:44:03 +02001022
Manuel Pégourié-Gonnard4cdb3ba2014-11-20 17:12:15 +01001023// X509 options
1024//
1025#define POLARSSL_X509_MAX_INTERMEDIATE_CA 8 /**< Maximum number of intermediate CAs in a verification chain. */
1026
Paul Bakker6fa54882013-06-17 15:44:03 +02001027#endif /* POLARSSL_CONFIG_OPTIONS */
1028
1029/* \} name */
Paul Bakker5121ce52009-01-03 21:22:43 +00001030#endif /* config.h */