blob: c22830b1b117af39f714751d178d7d40b0e8e179 [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 Bakker6fa54882013-06-17 15:44:03 +02006 * Copyright (C) 2006-2013, Brainspark B.V.
Paul Bakkerb96f1542010-07-18 20:36:00 +00007 *
8 * This file is part of PolarSSL (http://www.polarssl.org)
Paul Bakker84f12b72010-07-18 10:13:04 +00009 * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
Paul Bakkerb96f1542010-07-18 20:36:00 +000010 *
Paul Bakker77b385e2009-07-28 17:23:11 +000011 * All rights reserved.
Paul Bakkere0ccd0a2009-01-04 16:27:10 +000012 *
Paul Bakkere0ccd0a2009-01-04 16:27:10 +000013 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 *
Paul Bakker5121ce52009-01-03 21:22:43 +000027 * This set of compile-time options may be used to enable
28 * or disable features selectively, and reduce the global
29 * memory footprint.
30 */
Paul Bakker40e46942009-01-03 21:51:57 +000031#ifndef POLARSSL_CONFIG_H
32#define POLARSSL_CONFIG_H
Paul Bakker5121ce52009-01-03 21:22:43 +000033
Paul Bakkercce9d772011-11-18 14:26:47 +000034#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
Paul Bakker5121ce52009-01-03 21:22:43 +000035#define _CRT_SECURE_NO_DEPRECATE 1
36#endif
37
Paul Bakkerf3b86c12011-01-27 15:24:17 +000038/**
Paul Bakker0a62cd12011-01-21 11:00:08 +000039 * \name SECTION: System support
40 *
41 * This section sets system specific settings.
42 * \{
43 */
44
Paul Bakkerf3b86c12011-01-27 15:24:17 +000045/**
46 * \def POLARSSL_HAVE_INT8
Paul Bakker5121ce52009-01-03 21:22:43 +000047 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +000048 * The system uses 8-bit wide native integers.
49 *
50 * Uncomment if native integers are 8-bit wide.
Paul Bakker40e46942009-01-03 21:51:57 +000051#define POLARSSL_HAVE_INT8
Paul Bakker5121ce52009-01-03 21:22:43 +000052 */
53
Paul Bakkerf3b86c12011-01-27 15:24:17 +000054/**
55 * \def POLARSSL_HAVE_INT16
Paul Bakker5121ce52009-01-03 21:22:43 +000056 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +000057 * The system uses 16-bit wide native integers.
58 *
59 * Uncomment if native integers are 16-bit wide.
Paul Bakker40e46942009-01-03 21:51:57 +000060#define POLARSSL_HAVE_INT16
Paul Bakker5121ce52009-01-03 21:22:43 +000061 */
62
Paul Bakkerf3b86c12011-01-27 15:24:17 +000063/**
Paul Bakker62261d62012-10-02 12:19:31 +000064 * \def POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000065 *
Paul Bakker62261d62012-10-02 12:19:31 +000066 * The compiler supports the 'long long' type.
67 * (Only used on 32-bit platforms)
Paul Bakker5121ce52009-01-03 21:22:43 +000068 */
Paul Bakker62261d62012-10-02 12:19:31 +000069#define POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000070
Paul Bakkerf3b86c12011-01-27 15:24:17 +000071/**
72 * \def POLARSSL_HAVE_ASM
73 *
74 * The compiler has support for asm()
75 *
Paul Bakker5121ce52009-01-03 21:22:43 +000076 * Uncomment to enable the use of assembly code.
Paul Bakker68041ec2009-04-19 21:17:55 +000077 *
78 * Requires support for asm() in compiler.
79 *
80 * Used in:
81 * library/timing.c
82 * library/padlock.c
83 * include/polarssl/bn_mul.h
84 *
Paul Bakker5121ce52009-01-03 21:22:43 +000085 */
Paul Bakker40e46942009-01-03 21:51:57 +000086#define POLARSSL_HAVE_ASM
Paul Bakker5121ce52009-01-03 21:22:43 +000087
Paul Bakkerf3b86c12011-01-27 15:24:17 +000088/**
89 * \def POLARSSL_HAVE_SSE2
90 *
Paul Bakkere23c3152012-10-01 14:42:47 +000091 * CPU supports SSE2 instruction set.
Paul Bakkerf3b86c12011-01-27 15:24:17 +000092 *
Paul Bakker5121ce52009-01-03 21:22:43 +000093 * Uncomment if the CPU supports SSE2 (IA-32 specific).
94 *
Paul Bakker40e46942009-01-03 21:51:57 +000095#define POLARSSL_HAVE_SSE2
Paul Bakker5121ce52009-01-03 21:22:43 +000096 */
Paul Bakker9ccb2112014-07-07 13:43:31 +020097
98/**
99 * \def POLARSSL_HAVE_READDIR_R
100 *
101 * (Non Windows) System has readdir_r().
102 *
103 * Required for x509_crt_parse_path() in non-Windows systems.
104 *
105 * Comment if your system does not have support.
106 */
107#define POLARSSL_HAVE_READDIR_R
Paul Bakker0a62cd12011-01-21 11:00:08 +0000108/* \} name */
109
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000110/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000111 * \name SECTION: PolarSSL feature support
112 *
113 * This section sets support for features that are or are not needed
114 * within the modules that are enabled.
115 * \{
116 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000117
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000118/**
Paul Bakker4087c472013-06-12 16:49:10 +0200119 * \def POLARSSL_XXX_ALT
120 *
121 * Uncomment a macro to let PolarSSL use your alternate core implementation of
122 * a symmetric or hash algorithm (e.g. platform specific assembly optimized
123 * implementations). Keep in mind that the function prototypes should remain
124 * the same.
125 *
126 * Example: In case you uncomment POLARSSL_AES_ALT, PolarSSL will no longer
127 * provide the "struct aes_context" definition and omit the base function
128 * declarations and implementations. "aes_alt.h" will be included from
129 * "aes.h" to include the new function definitions.
130 *
131 * Uncomment a macro to enable alternate implementation for core algorithm
132 * functions
133#define POLARSSL_AES_ALT
134#define POLARSSL_ARC4_ALT
135#define POLARSSL_BLOWFISH_ALT
136#define POLARSSL_CAMELLIA_ALT
137#define POLARSSL_DES_ALT
138#define POLARSSL_XTEA_ALT
139#define POLARSSL_MD2_ALT
140#define POLARSSL_MD4_ALT
141#define POLARSSL_MD5_ALT
142#define POLARSSL_SHA1_ALT
143#define POLARSSL_SHA2_ALT
144#define POLARSSL_SHA4_ALT
145 */
146
147/**
Paul Bakker15566e42011-04-24 21:19:15 +0000148 * \def POLARSSL_AES_ROM_TABLES
149 *
150 * Store the AES tables in ROM.
151 *
152 * Uncomment this macro to store the AES tables in ROM.
153 *
154#define POLARSSL_AES_ROM_TABLES
155 */
156
157/**
Paul Bakkerb6ecaf52011-04-19 14:29:23 +0000158 * \def POLARSSL_CIPHER_MODE_CFB
159 *
160 * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
161 */
162#define POLARSSL_CIPHER_MODE_CFB
163
164/**
165 * \def POLARSSL_CIPHER_MODE_CTR
166 *
167 * Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
168 */
169#define POLARSSL_CIPHER_MODE_CTR
170
171/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000172 * \def POLARSSL_CIPHER_NULL_CIPHER
173 *
174 * Enable NULL cipher.
175 * Warning: Only do so when you know what you are doing. This allows for
176 * encryption or channels without any security!
177 *
178 * Requires POLARSSL_ENABLE_WEAK_CIPHERSUITES as well to enable
179 * the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000180 * TLS_RSA_WITH_NULL_MD5
181 * TLS_RSA_WITH_NULL_SHA
182 * TLS_RSA_WITH_NULL_SHA256
Paul Bakkerfab5c822012-02-06 16:45:10 +0000183 *
184 * Uncomment this macro to enable the NULL cipher and ciphersuites
185#define POLARSSL_CIPHER_NULL_CIPHER
186 */
187
188/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000189 * \def POLARSSL_ENABLE_WEAK_CIPHERSUITES
190 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000191 * Enable weak ciphersuites in SSL / TLS
Paul Bakkerfab5c822012-02-06 16:45:10 +0000192 * Warning: Only do so when you know what you are doing. This allows for
Paul Bakker9a736322012-11-14 12:39:52 +0000193 * channels with virtually no security at all!
Paul Bakkerfab5c822012-02-06 16:45:10 +0000194 *
195 * This enables the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000196 * TLS_RSA_WITH_DES_CBC_SHA
197 * TLS_DHE_RSA_WITH_DES_CBC_SHA
Paul Bakkerfab5c822012-02-06 16:45:10 +0000198 *
199 * Uncomment this macro to enable weak ciphersuites
200#define POLARSSL_ENABLE_WEAK_CIPHERSUITES
201 */
202
203/**
Paul Bakker8fe40dc2013-02-02 12:43:08 +0100204 * \def POLARSSL_ERROR_STRERROR_DUMMY
205 *
206 * Enable a dummy error function to make use of error_strerror() in
207 * third party libraries easier.
208 *
209 * Disable if you run into name conflicts and want to really remove the
210 * error_strerror()
211 */
212#define POLARSSL_ERROR_STRERROR_DUMMY
213
214/**
Paul Bakker15566e42011-04-24 21:19:15 +0000215 * \def POLARSSL_GENPRIME
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000216 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000217 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
218 *
Paul Bakker15566e42011-04-24 21:19:15 +0000219 * Enable the RSA prime-number generation code.
Paul Bakker5121ce52009-01-03 21:22:43 +0000220 */
Paul Bakker15566e42011-04-24 21:19:15 +0000221#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000222
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000223/**
Paul Bakker335db3f2011-04-25 15:28:35 +0000224 * \def POLARSSL_FS_IO
225 *
226 * Enable functions that use the filesystem.
227 */
228#define POLARSSL_FS_IO
229
230/**
Paul Bakker43655f42011-12-15 20:11:16 +0000231 * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
232 *
233 * Do not add default entropy sources. These are the platform specific,
234 * hardclock and HAVEGE based poll functions.
235 *
236 * This is useful to have more control over the added entropy sources in an
237 * application.
238 *
239 * Uncomment this macro to prevent loading of default entropy functions.
240#define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
241 */
242
243/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000244 * \def POLARSSL_NO_PLATFORM_ENTROPY
245 *
246 * Do not use built-in platform entropy functions.
247 * This is useful if your platform does not support
248 * standards like the /dev/urandom or Windows CryptoAPI.
249 *
250 * Uncomment this macro to disable the built-in platform entropy functions.
251#define POLARSSL_NO_PLATFORM_ENTROPY
252 */
253
254/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000255 * \def POLARSSL_PKCS1_V21
256 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000257 * Requires: POLARSSL_MD_C, POLARSSL_RSA_C
258 *
Paul Bakker9dcc3222011-03-08 14:16:06 +0000259 * Enable support for PKCS#1 v2.1 encoding.
260 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
261 */
262#define POLARSSL_PKCS1_V21
263
264/**
Paul Bakker0216cc12011-03-26 13:40:23 +0000265 * \def POLARSSL_RSA_NO_CRT
266 *
267 * Do not use the Chinese Remainder Theorem for the RSA private operation.
268 *
269 * Uncomment this macro to disable the use of CRT in RSA.
270 *
271#define POLARSSL_RSA_NO_CRT
272 */
Paul Bakker15566e42011-04-24 21:19:15 +0000273
274/**
275 * \def POLARSSL_SELF_TEST
276 *
277 * Enable the checkup functions (*_self_test).
278 */
279#define POLARSSL_SELF_TEST
Paul Bakker5c721f92011-07-27 16:51:09 +0000280
281/**
Paul Bakker40865c82013-01-31 17:13:13 +0100282 * \def POLARSSL_SSL_ALL_ALERT_MESSAGES
283 *
284 * Enable sending of alert messages in case of encountered errors as per RFC.
285 * If you choose not to send the alert messages, PolarSSL can still communicate
286 * with other servers, only debugging of failures is harder.
287 *
288 * The advantage of not sending alert messages, is that no information is given
289 * about reasons for failures thus preventing adversaries of gaining intel.
290 *
291 * Enable sending of all alert messages
292 */
293#define POLARSSL_SSL_ALERT_MESSAGES
294
295/**
Paul Bakkerd66f0702013-01-31 16:57:45 +0100296 * \def POLARSSL_SSL_DEBUG_ALL
297 *
298 * Enable the debug messages in SSL module for all issues.
299 * Debug messages have been disabled in some places to prevent timing
300 * attacks due to (unbalanced) debugging function calls.
301 *
302 * If you need all error reporting you should enable this during debugging,
303 * but remove this for production servers that should log as well.
304 *
305 * Uncomment this macro to report all debug messages on errors introducing
306 * a timing side-channel.
307 *
308#define POLARSSL_SSL_DEBUG_ALL
309 */
310
311/**
Paul Bakker05ef8352012-05-08 09:17:57 +0000312 * \def POLARSSL_SSL_HW_RECORD_ACCEL
313 *
314 * Enable hooking functions in SSL module for hardware acceleration of
315 * individual records.
316 *
317 * Uncomment this macro to enable hooking functions.
318#define POLARSSL_SSL_HW_RECORD_ACCEL
319 */
320
321/**
Paul Bakker78a8c712013-03-06 17:01:52 +0100322 * \def POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
323 *
324 * Enable support for receiving and parsing SSLv2 Client Hello messages for the
325 * SSL Server module (POLARSSL_SSL_SRV_C)
326 *
327 * Comment this macro to disable support for SSLv2 Client Hello messages.
328 */
329#define POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
330
331/**
Paul Bakker5c721f92011-07-27 16:51:09 +0000332 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
333 *
334 * If set, the X509 parser will not break-off when parsing an X509 certificate
335 * and encountering an unknown critical extension.
336 *
337 * Uncomment to prevent an error.
338 *
339#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
340 */
Paul Bakker2770fbd2012-07-03 13:30:23 +0000341
342/**
343 * \def POLARSSL_ZLIB_SUPPORT
344 *
345 * If set, the SSL/TLS module uses ZLIB to support compression and
346 * decompression of packet data.
347 *
348 * Used in: library/ssl_tls.c
349 * library/ssl_cli.c
350 * library/ssl_srv.c
351 *
352 * This feature requires zlib library and headers to be present.
353 *
354 * Uncomment to enable use of ZLIB
355#define POLARSSL_ZLIB_SUPPORT
356 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000357/* \} name */
358
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000359/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000360 * \name SECTION: PolarSSL modules
361 *
362 * This section enables or disables entire modules in PolarSSL
363 * \{
364 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000365
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000366/**
367 * \def POLARSSL_AES_C
368 *
369 * Enable the AES block cipher.
370 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000371 * Module: library/aes.c
372 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000373 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +0000374 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000375 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000376 * This module enables the following ciphersuites (if other requisites are
377 * enabled as well):
378 * TLS_RSA_WITH_AES_128_CBC_SHA
379 * TLS_RSA_WITH_AES_256_CBC_SHA
380 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA
381 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA
382 * TLS_RSA_WITH_AES_128_CBC_SHA256
383 * TLS_RSA_WITH_AES_256_CBC_SHA256
384 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
385 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
386 * TLS_RSA_WITH_AES_128_GCM_SHA256
387 * TLS_RSA_WITH_AES_256_GCM_SHA384
Paul Bakker6deb37e2013-02-19 13:17:08 +0100388 *
389 * PEM uses AES for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +0000390 */
Paul Bakker40e46942009-01-03 21:51:57 +0000391#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000392
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000393/**
394 * \def POLARSSL_ARC4_C
395 *
396 * Enable the ARCFOUR stream cipher.
397 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000398 * Module: library/arc4.c
399 * Caller: library/ssl_tls.c
400 *
401 * This module enables the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000402 * TLS_RSA_WITH_RC4_128_MD5
403 * TLS_RSA_WITH_RC4_128_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000404 */
Paul Bakker40e46942009-01-03 21:51:57 +0000405#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000406
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000407/**
Paul Bakkerefc30292011-11-10 14:43:23 +0000408 * \def POLARSSL_ASN1_PARSE_C
409 *
410 * Enable the generic ASN1 parser.
411 *
412 * Module: library/asn1.c
413 * Caller: library/x509parse.c
414 */
415#define POLARSSL_ASN1_PARSE_C
416
417/**
Paul Bakkerbdb912d2012-02-13 23:11:30 +0000418 * \def POLARSSL_ASN1_WRITE_C
419 *
420 * Enable the generic ASN1 writer.
421 *
422 * Module: library/asn1write.c
423 */
424#define POLARSSL_ASN1_WRITE_C
425
426/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000427 * \def POLARSSL_BASE64_C
428 *
429 * Enable the Base64 module.
430 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000431 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +0000432 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000433 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000434 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +0000435 */
Paul Bakker40e46942009-01-03 21:51:57 +0000436#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000437
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000438/**
439 * \def POLARSSL_BIGNUM_C
440 *
Paul Bakker9a736322012-11-14 12:39:52 +0000441 * Enable the multi-precision integer library.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000442 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000443 * Module: library/bignum.c
444 * Caller: library/dhm.c
445 * library/rsa.c
446 * library/ssl_tls.c
447 * library/x509parse.c
448 *
449 * This module is required for RSA and DHM support.
450 */
Paul Bakker40e46942009-01-03 21:51:57 +0000451#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000452
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000453/**
Paul Bakkera9379c02012-07-04 11:02:11 +0000454 * \def POLARSSL_BLOWFISH_C
455 *
456 * Enable the Blowfish block cipher.
457 *
458 * Module: library/blowfish.c
459 */
460#define POLARSSL_BLOWFISH_C
461
462/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000463 * \def POLARSSL_CAMELLIA_C
464 *
465 * Enable the Camellia block cipher.
466 *
Paul Bakker38119b12009-01-10 23:31:23 +0000467 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000468 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000469 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000470 * This module enables the following ciphersuites (if other requisites are
471 * enabled as well):
472 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
473 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
474 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
475 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
476 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256
477 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256
478 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
479 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
Paul Bakker38119b12009-01-10 23:31:23 +0000480 */
481#define POLARSSL_CAMELLIA_C
482
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000483/**
484 * \def POLARSSL_CERTS_C
485 *
486 * Enable the test certificates.
487 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000488 * Module: library/certs.c
489 * Caller:
490 *
491 * This module is used for testing (ssl_client/server).
492 */
Paul Bakker40e46942009-01-03 21:51:57 +0000493#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000494
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000495/**
496 * \def POLARSSL_CIPHER_C
497 *
498 * Enable the generic cipher layer.
499 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000500 * Module: library/cipher.c
501 * Caller:
502 *
503 * Uncomment to enable generic cipher wrappers.
504 */
505#define POLARSSL_CIPHER_C
506
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000507/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000508 * \def POLARSSL_CTR_DRBG_C
509 *
510 * Enable the CTR_DRBG AES-256-based random generator
511 *
512 * Module: library/ctr_drbg.c
513 * Caller:
514 *
Paul Bakker6083fd22011-12-03 21:45:14 +0000515 * Requires: POLARSSL_AES_C
516 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000517 * This module provides the CTR_DRBG AES-256 random number generator.
518 */
519#define POLARSSL_CTR_DRBG_C
520
521/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000522 * \def POLARSSL_DEBUG_C
523 *
524 * Enable the debug functions.
525 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000526 * Module: library/debug.c
527 * Caller: library/ssl_cli.c
528 * library/ssl_srv.c
529 * library/ssl_tls.c
530 *
531 * This module provides debugging functions.
532 */
Paul Bakker40e46942009-01-03 21:51:57 +0000533#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000534
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000535/**
536 * \def POLARSSL_DES_C
537 *
538 * Enable the DES block cipher.
539 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000540 * Module: library/des.c
Paul Bakker6deb37e2013-02-19 13:17:08 +0100541 * Caller: library/pem.c
542 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000543 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000544 * This module enables the following ciphersuites (if other requisites are
545 * enabled as well):
546 * TLS_RSA_WITH_3DES_EDE_CBC_SHA
547 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
Paul Bakker6deb37e2013-02-19 13:17:08 +0100548 *
549 * PEM uses DES/3DES for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +0000550 */
Paul Bakker40e46942009-01-03 21:51:57 +0000551#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000552
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000553/**
554 * \def POLARSSL_DHM_C
555 *
556 * Enable the Diffie-Hellman-Merkle key exchange.
557 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000558 * Module: library/dhm.c
559 * Caller: library/ssl_cli.c
560 * library/ssl_srv.c
561 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000562 * This module enables the following ciphersuites (if other requisites are
563 * enabled as well):
564 * TLS_DHE_RSA_WITH_DES_CBC_SHA
565 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
566 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA
567 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA
568 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
569 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
570 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
571 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
572 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
573 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
574 * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
575 * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
Paul Bakker5121ce52009-01-03 21:22:43 +0000576 */
Paul Bakker40e46942009-01-03 21:51:57 +0000577#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000578
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000579/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000580 * \def POLARSSL_ENTROPY_C
581 *
582 * Enable the platform-specific entropy code.
583 *
584 * Module: library/entropy.c
585 * Caller:
586 *
587 * Requires: POLARSSL_SHA4_C
588 *
589 * This module provides a generic entropy pool
590 */
591#define POLARSSL_ENTROPY_C
592
593/**
Paul Bakker9d781402011-05-09 16:17:09 +0000594 * \def POLARSSL_ERROR_C
595 *
596 * Enable error code to error string conversion.
597 *
598 * Module: library/error.c
599 * Caller:
600 *
601 * This module enables err_strerror().
602 */
603#define POLARSSL_ERROR_C
604
605/**
Paul Bakker89e80c92012-03-20 13:50:09 +0000606 * \def POLARSSL_GCM_C
607 *
608 * Enable the Galois/Counter Mode (GCM) for AES
609 *
610 * Module: library/gcm.c
611 *
612 * Requires: POLARSSL_AES_C
Paul Bakker645ce3a2012-10-31 12:32:41 +0000613 *
614 * This module enables the following ciphersuites (if other requisites are
615 * enabled as well):
616 * TLS_RSA_WITH_AES_128_GCM_SHA256
617 * TLS_RSA_WITH_AES_256_GCM_SHA384
Paul Bakker89e80c92012-03-20 13:50:09 +0000618 */
619#define POLARSSL_GCM_C
620
621/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000622 * \def POLARSSL_HAVEGE_C
623 *
624 * Enable the HAVEGE random generator.
625 *
Paul Bakker08f06cf2013-06-06 14:05:26 +0200626 * Warning: the HAVEGE random generator is not suitable for virtualized
627 * environments
628 *
629 * Warning: the HAVEGE random generator is dependent on timing and specific
630 * processor traits. It is therefore not advised to use HAVEGE as
631 * your applications primary random generator or primary entropy pool
632 * input. As a secondary input to your entropy pool, it IS able add
633 * the (limited) extra entropy it provides.
634 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000635 * Module: library/havege.c
636 * Caller:
637 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000638 * Requires: POLARSSL_TIMING_C
639 *
Paul Bakker08f06cf2013-06-06 14:05:26 +0200640 * Uncomment to enable the HAVEGE random generator.
Paul Bakker40e46942009-01-03 21:51:57 +0000641#define POLARSSL_HAVEGE_C
Paul Bakker08f06cf2013-06-06 14:05:26 +0200642 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000643
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000644/**
645 * \def POLARSSL_MD_C
646 *
647 * Enable the generic message digest layer.
648 *
Paul Bakker17373852011-01-06 14:20:01 +0000649 * Module: library/md.c
650 * Caller:
651 *
652 * Uncomment to enable generic message digest wrappers.
653 */
654#define POLARSSL_MD_C
655
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000656/**
657 * \def POLARSSL_MD2_C
658 *
659 * Enable the MD2 hash algorithm
660 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000661 * Module: library/md2.c
662 * Caller: library/x509parse.c
663 *
664 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
665 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000666#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000667 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000668
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000669/**
670 * \def POLARSSL_MD4_C
671 *
672 * Enable the MD4 hash algorithm
673 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000674 * Module: library/md4.c
675 * Caller: library/x509parse.c
676 *
677 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
678 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000679#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000680 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000681
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000682/**
683 * \def POLARSSL_MD5_C
684 *
685 * Enable the MD5 hash algorithm
686 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000687 * Module: library/md5.c
Paul Bakker6deb37e2013-02-19 13:17:08 +0100688 * Caller: library/pem.c
689 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000690 * library/x509parse.c
691 *
692 * This module is required for SSL/TLS and X.509.
Paul Bakker6deb37e2013-02-19 13:17:08 +0100693 * PEM uses MD5 for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +0000694 */
Paul Bakker40e46942009-01-03 21:51:57 +0000695#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000696
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000697/**
698 * \def POLARSSL_NET_C
699 *
700 * Enable the TCP/IP networking routines.
701 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000702 * Module: library/net.c
703 * Caller:
704 *
705 * This module provides TCP/IP networking routines.
706 */
Paul Bakker40e46942009-01-03 21:51:57 +0000707#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000708
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000709/**
710 * \def POLARSSL_PADLOCK_C
711 *
712 * Enable VIA Padlock support on x86.
713 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000714 * Module: library/padlock.c
715 * Caller: library/aes.c
716 *
717 * This modules adds support for the VIA PadLock on x86.
718 */
Paul Bakker40e46942009-01-03 21:51:57 +0000719#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000720
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000721/**
Paul Bakkerf518b162012-08-23 13:03:18 +0000722 * \def POLARSSL_PBKDF2_C
723 *
724 * Enable PKCS#5 PBKDF2 key derivation function
Paul Bakker19bd2972013-06-14 12:06:45 +0200725 * DEPRECATED: Use POLARSSL_PKCS5_C instead
Paul Bakkerf518b162012-08-23 13:03:18 +0000726 *
727 * Module: library/pbkdf2.c
728 *
Paul Bakker19bd2972013-06-14 12:06:45 +0200729 * Requires: POLARSSL_PKCS5_C
Paul Bakkerf518b162012-08-23 13:03:18 +0000730 *
731 * This module adds support for the PKCS#5 PBKDF2 key derivation function.
732#define POLARSSL_PBKDF2_C
733 */
734
735/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000736 * \def POLARSSL_PEM_C
737 *
738 * Enable PEM decoding
739 *
740 * Module: library/pem.c
741 * Caller: library/x509parse.c
742 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000743 * Requires: POLARSSL_BASE64_C
744 *
Paul Bakker96743fc2011-02-12 14:30:57 +0000745 * This modules adds support for decoding PEM files.
746 */
747#define POLARSSL_PEM_C
748
749/**
Paul Bakker19bd2972013-06-14 12:06:45 +0200750 * \def POLARSSL_PKCS5_C
751 *
752 * Enable PKCS#5 functions
753 *
754 * Module: library/pkcs5.c
755 *
756 * Requires: POLARSSL_MD_C
757 *
758 * This module adds support for the PKCS#5 functions.
759 */
760#define POLARSSL_PKCS5_C
761
762/**
Paul Bakker5690efc2011-05-26 13:16:06 +0000763 * \def POLARSSL_PKCS11_C
764 *
Paul Bakkereb2c6582012-09-27 19:15:01 +0000765 * Enable wrapper for PKCS#11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +0000766 *
767 * Module: library/ssl_srv.c
768 * Caller: library/ssl_cli.c
769 * library/ssl_srv.c
770 *
771 * Requires: POLARSSL_SSL_TLS_C
772 *
Paul Bakkereb2c6582012-09-27 19:15:01 +0000773 * This module enables SSL/TLS PKCS #11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +0000774 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
775#define POLARSSL_PKCS11_C
776 */
777
778/**
Paul Bakkercf6e95d2013-06-12 13:18:15 +0200779 * \def POLARSSL_PKCS12_C
780 *
781 * Enable PKCS#12 PBE functions
782 * Adds algorithms for parsing PKCS#8 encrypted private keys
783 *
784 * Module: library/pkcs12.c
785 * Caller: library/x509parse.c
786 *
Paul Bakker602c31b2013-06-18 16:49:18 +0200787 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_CIPHER_C, POLARSSL_MD_C
788 * Can use: POLARSSL_ARC4_C
Paul Bakkercf6e95d2013-06-12 13:18:15 +0200789 *
790 * This module enables PKCS#12 functions.
791 */
792#define POLARSSL_PKCS12_C
793
794/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000795 * \def POLARSSL_RSA_C
796 *
797 * Enable the RSA public-key cryptosystem.
798 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000799 * Module: library/rsa.c
800 * Caller: library/ssl_cli.c
801 * library/ssl_srv.c
802 * library/ssl_tls.c
803 * library/x509.c
804 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000805 * Requires: POLARSSL_BIGNUM_C
806 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000807 * This module is required for SSL/TLS and MD5-signed certificates.
808 */
Paul Bakker40e46942009-01-03 21:51:57 +0000809#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000810
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000811/**
812 * \def POLARSSL_SHA1_C
813 *
814 * Enable the SHA1 cryptographic hash algorithm.
815 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000816 * Module: library/sha1.c
817 * Caller: library/ssl_cli.c
818 * library/ssl_srv.c
819 * library/ssl_tls.c
820 * library/x509parse.c
821 *
822 * This module is required for SSL/TLS and SHA1-signed certificates.
823 */
Paul Bakker40e46942009-01-03 21:51:57 +0000824#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000825
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000826/**
827 * \def POLARSSL_SHA2_C
828 *
829 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
830 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000831 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000832 * Caller: library/md_wrap.c
833 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000834 *
835 * This module adds support for SHA-224 and SHA-256.
Paul Bakker769075d2012-11-24 11:26:46 +0100836 * This module is required for the SSL/TLS 1.2 PRF function.
Paul Bakker5121ce52009-01-03 21:22:43 +0000837 */
Paul Bakker40e46942009-01-03 21:51:57 +0000838#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000839
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000840/**
841 * \def POLARSSL_SHA4_C
842 *
843 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
844 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000845 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000846 * Caller: library/md_wrap.c
847 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000848 *
849 * This module adds support for SHA-384 and SHA-512.
850 */
Paul Bakker40e46942009-01-03 21:51:57 +0000851#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000852
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000853/**
Paul Bakker0a597072012-09-25 21:55:46 +0000854 * \def POLARSSL_SSL_CACHE_C
855 *
856 * Enable simple SSL cache implementation.
857 *
858 * Module: library/ssl_cache.c
859 * Caller:
860 *
861 * Requires: POLARSSL_SSL_CACHE_C
862 */
863#define POLARSSL_SSL_CACHE_C
864
865/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000866 * \def POLARSSL_SSL_CLI_C
867 *
868 * Enable the SSL/TLS client code.
869 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000870 * Module: library/ssl_cli.c
871 * Caller:
872 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000873 * Requires: POLARSSL_SSL_TLS_C
874 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000875 * This module is required for SSL/TLS client support.
876 */
Paul Bakker40e46942009-01-03 21:51:57 +0000877#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000878
Paul Bakker9a736322012-11-14 12:39:52 +0000879/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000880 * \def POLARSSL_SSL_SRV_C
881 *
882 * Enable the SSL/TLS server code.
883 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000884 * Module: library/ssl_srv.c
885 * Caller:
886 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000887 * Requires: POLARSSL_SSL_TLS_C
888 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000889 * This module is required for SSL/TLS server support.
890 */
Paul Bakker40e46942009-01-03 21:51:57 +0000891#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000892
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000893/**
894 * \def POLARSSL_SSL_TLS_C
895 *
Paul Bakkere29ab062011-05-18 13:26:54 +0000896 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000897 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000898 * Module: library/ssl_tls.c
899 * Caller: library/ssl_cli.c
900 * library/ssl_srv.c
901 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000902 * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C
903 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000904 * This module is required for SSL/TLS.
905 */
Paul Bakker40e46942009-01-03 21:51:57 +0000906#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000907
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000908/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000909 * \def POLARSSL_TIMING_C
910 *
911 * Enable the portable timing interface.
912 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000913 * Module: library/timing.c
914 * Caller: library/havege.c
915 *
916 * This module is used by the HAVEGE random number generator.
917 */
Paul Bakker40e46942009-01-03 21:51:57 +0000918#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000919
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000920/**
921 * \def POLARSSL_VERSION_C
922 *
923 * Enable run-time version information.
924 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000925 * Module: library/version.c
926 *
927 * This module provides run-time version information.
928 */
929#define POLARSSL_VERSION_C
930
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000931/**
932 * \def POLARSSL_X509_PARSE_C
933 *
934 * Enable X.509 certificate parsing.
935 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000936 * Module: library/x509parse.c
937 * Caller: library/ssl_cli.c
938 * library/ssl_srv.c
939 * library/ssl_tls.c
940 *
Paul Bakkerefc30292011-11-10 14:43:23 +0000941 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C
Paul Bakker5690efc2011-05-26 13:16:06 +0000942 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000943 * This module is required for X.509 certificate parsing.
944 */
Paul Bakker40e46942009-01-03 21:51:57 +0000945#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000946
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000947/**
Paul Bakkerbdb912d2012-02-13 23:11:30 +0000948 * \def POLARSSL_X509_WRITE_C
949 *
950 * Enable X.509 buffer writing.
951 *
952 * Module: library/x509write.c
953 *
954 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
955 *
956 * This module is required for X.509 certificate request writing.
957 */
958#define POLARSSL_X509_WRITE_C
959
960/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000961 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000962 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000963 * Enable the XTEA block cipher.
964 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000965 * Module: library/xtea.c
966 * Caller:
967 */
968#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000969/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000970
Paul Bakker6fa54882013-06-17 15:44:03 +0200971/**
972 * \name SECTION: Module configuration options
973 *
974 * This section allows for the setting of module specific sizes and
975 * configuration options. The default values are already present in the
976 * relevant header files and should suffice for the regular use cases.
977 * Our advice is to enable POLARSSL_CONFIG_OPTIONS and change values here
978 * only if you have a good reason and know the consequences.
979 *
980 * If POLARSSL_CONFIG_OPTIONS is undefined here the options in the module
981 * header file take precedence.
982 *
983 * Please check the respective header file for documentation on these
984 * parameters (to prevent duplicate documentation).
985 *
986 * Uncomment POLARSSL_CONFIG_OPTIONS to enable using the values defined here.
987 * \{
988 */
989//#define POLARSSL_CONFIG_OPTIONS /**< Enable config.h module value configuration */
990
991#if defined(POLARSSL_CONFIG_OPTIONS)
992
993// MPI / BIGNUM options
994//
995#define POLARSSL_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
996#define POLARSSL_MPI_MAX_SIZE 512 /**< Maximum number of bytes for usable MPIs. */
997
998// CTR_DRBG options
999//
1000#define CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default */
1001#define CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
1002#define CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
1003#define CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
1004#define CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
1005
1006// Entropy options
1007//
1008#define ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
1009#define ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
1010
1011// SSL Cache options
1012//
1013#define SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
1014#define SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
1015
1016// SSL options
1017//
1018#define SSL_MAX_CONTENT_LEN 16384 /**< Size of the input / output buffer */
1019
1020#endif /* POLARSSL_CONFIG_OPTIONS */
1021
1022/* \} name */
Paul Bakker5121ce52009-01-03 21:22:43 +00001023#endif /* config.h */