blob: ea518d77d90885788572ebe6136347ee8a6c40d3 [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 Bakkerefc30292011-11-10 14:43:23 +00006 * Copyright (C) 2006-2011, 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/**
64 * \def POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000065 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +000066 * The compiler supports the use of long long.
67 *
68 * Uncomment if the compiler supports long long.
Paul Bakker40e46942009-01-03 21:51:57 +000069#define POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000070 */
71
Paul Bakkerf3b86c12011-01-27 15:24:17 +000072/**
73 * \def POLARSSL_HAVE_ASM
74 *
75 * The compiler has support for asm()
76 *
Paul Bakker5121ce52009-01-03 21:22:43 +000077 * Uncomment to enable the use of assembly code.
Paul Bakker68041ec2009-04-19 21:17:55 +000078 *
79 * Requires support for asm() in compiler.
80 *
81 * Used in:
82 * library/timing.c
83 * library/padlock.c
84 * include/polarssl/bn_mul.h
85 *
Paul Bakker5121ce52009-01-03 21:22:43 +000086 */
Paul Bakker40e46942009-01-03 21:51:57 +000087#define POLARSSL_HAVE_ASM
Paul Bakker5121ce52009-01-03 21:22:43 +000088
Paul Bakkerf3b86c12011-01-27 15:24:17 +000089/**
90 * \def POLARSSL_HAVE_SSE2
91 *
92 * CPI supports SSE2 instruction set.
93 *
Paul Bakker5121ce52009-01-03 21:22:43 +000094 * Uncomment if the CPU supports SSE2 (IA-32 specific).
95 *
Paul Bakker40e46942009-01-03 21:51:57 +000096#define POLARSSL_HAVE_SSE2
Paul Bakker5121ce52009-01-03 21:22:43 +000097 */
Paul Bakker0a62cd12011-01-21 11:00:08 +000098/* \} name */
99
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000100/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000101 * \name SECTION: PolarSSL feature support
102 *
103 * This section sets support for features that are or are not needed
104 * within the modules that are enabled.
105 * \{
106 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000107
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000108/**
Paul Bakker15566e42011-04-24 21:19:15 +0000109 * \def POLARSSL_AES_ROM_TABLES
110 *
111 * Store the AES tables in ROM.
112 *
113 * Uncomment this macro to store the AES tables in ROM.
114 *
115#define POLARSSL_AES_ROM_TABLES
116 */
117
118/**
Paul Bakkerb6ecaf52011-04-19 14:29:23 +0000119 * \def POLARSSL_CIPHER_MODE_CFB
120 *
121 * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
122 */
123#define POLARSSL_CIPHER_MODE_CFB
124
125/**
126 * \def POLARSSL_CIPHER_MODE_CTR
127 *
128 * Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
129 */
130#define POLARSSL_CIPHER_MODE_CTR
131
132/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000133 * \def POLARSSL_DEBUG_MSG
134 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000135 * Requires: POLARSSL_DEBUG_C
136 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000137 * Enable all SSL/TLS debugging messages.
138 */
Paul Bakker40e46942009-01-03 21:51:57 +0000139#define POLARSSL_DEBUG_MSG
Paul Bakker5121ce52009-01-03 21:22:43 +0000140
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000141/**
Paul Bakker15566e42011-04-24 21:19:15 +0000142 * \def POLARSSL_GENPRIME
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000143 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000144 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
145 *
Paul Bakker15566e42011-04-24 21:19:15 +0000146 * Enable the RSA prime-number generation code.
Paul Bakker5121ce52009-01-03 21:22:43 +0000147 */
Paul Bakker15566e42011-04-24 21:19:15 +0000148#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000149
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000150/**
Paul Bakker335db3f2011-04-25 15:28:35 +0000151 * \def POLARSSL_FS_IO
152 *
153 * Enable functions that use the filesystem.
154 */
155#define POLARSSL_FS_IO
156
157/**
Paul Bakker43655f42011-12-15 20:11:16 +0000158 * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
159 *
160 * Do not add default entropy sources. These are the platform specific,
161 * hardclock and HAVEGE based poll functions.
162 *
163 * This is useful to have more control over the added entropy sources in an
164 * application.
165 *
166 * Uncomment this macro to prevent loading of default entropy functions.
167#define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
168 */
169
170/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000171 * \def POLARSSL_NO_PLATFORM_ENTROPY
172 *
173 * Do not use built-in platform entropy functions.
174 * This is useful if your platform does not support
175 * standards like the /dev/urandom or Windows CryptoAPI.
176 *
177 * Uncomment this macro to disable the built-in platform entropy functions.
178#define POLARSSL_NO_PLATFORM_ENTROPY
179 */
180
181/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000182 * \def POLARSSL_PKCS1_V21
183 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000184 * Requires: POLARSSL_MD_C, POLARSSL_RSA_C
185 *
Paul Bakker9dcc3222011-03-08 14:16:06 +0000186 * Enable support for PKCS#1 v2.1 encoding.
187 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
188 */
189#define POLARSSL_PKCS1_V21
190
191/**
Paul Bakker0216cc12011-03-26 13:40:23 +0000192 * \def POLARSSL_RSA_NO_CRT
193 *
194 * Do not use the Chinese Remainder Theorem for the RSA private operation.
195 *
196 * Uncomment this macro to disable the use of CRT in RSA.
197 *
198#define POLARSSL_RSA_NO_CRT
199 */
Paul Bakker15566e42011-04-24 21:19:15 +0000200
201/**
202 * \def POLARSSL_SELF_TEST
203 *
204 * Enable the checkup functions (*_self_test).
205 */
206#define POLARSSL_SELF_TEST
Paul Bakker5c721f92011-07-27 16:51:09 +0000207
208/**
209 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
210 *
211 * If set, the X509 parser will not break-off when parsing an X509 certificate
212 * and encountering an unknown critical extension.
213 *
214 * Uncomment to prevent an error.
215 *
216#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
217 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000218/* \} name */
219
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000220/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000221 * \name SECTION: PolarSSL modules
222 *
223 * This section enables or disables entire modules in PolarSSL
224 * \{
225 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000226
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000227/**
228 * \def POLARSSL_AES_C
229 *
230 * Enable the AES block cipher.
231 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000232 * Module: library/aes.c
233 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000234 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +0000235 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000236 *
237 * This module enables the following ciphersuites:
238 * SSL_RSA_AES_128_SHA
239 * SSL_RSA_AES_256_SHA
240 * SSL_EDH_RSA_AES_256_SHA
241 */
Paul Bakker40e46942009-01-03 21:51:57 +0000242#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000243
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000244/**
245 * \def POLARSSL_ARC4_C
246 *
247 * Enable the ARCFOUR stream cipher.
248 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000249 * Module: library/arc4.c
250 * Caller: library/ssl_tls.c
251 *
252 * This module enables the following ciphersuites:
253 * SSL_RSA_RC4_128_MD5
254 * SSL_RSA_RC4_128_SHA
255 */
Paul Bakker40e46942009-01-03 21:51:57 +0000256#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000257
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000258/**
Paul Bakkerefc30292011-11-10 14:43:23 +0000259 * \def POLARSSL_ASN1_PARSE_C
260 *
261 * Enable the generic ASN1 parser.
262 *
263 * Module: library/asn1.c
264 * Caller: library/x509parse.c
265 */
266#define POLARSSL_ASN1_PARSE_C
267
268/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000269 * \def POLARSSL_BASE64_C
270 *
271 * Enable the Base64 module.
272 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000273 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +0000274 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000275 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000276 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +0000277 */
Paul Bakker40e46942009-01-03 21:51:57 +0000278#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000279
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000280/**
281 * \def POLARSSL_BIGNUM_C
282 *
283 * Enable the multo-precision integer library.
284 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000285 * Module: library/bignum.c
286 * Caller: library/dhm.c
287 * library/rsa.c
288 * library/ssl_tls.c
289 * library/x509parse.c
290 *
291 * This module is required for RSA and DHM support.
292 */
Paul Bakker40e46942009-01-03 21:51:57 +0000293#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000294
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000295/**
296 * \def POLARSSL_CAMELLIA_C
297 *
298 * Enable the Camellia block cipher.
299 *
Paul Bakker38119b12009-01-10 23:31:23 +0000300 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000301 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000302 *
303 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000304 * SSL_RSA_CAMELLIA_128_SHA
305 * SSL_RSA_CAMELLIA_256_SHA
306 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000307 */
308#define POLARSSL_CAMELLIA_C
309
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000310/**
311 * \def POLARSSL_CERTS_C
312 *
313 * Enable the test certificates.
314 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000315 * Module: library/certs.c
316 * Caller:
317 *
318 * This module is used for testing (ssl_client/server).
319 */
Paul Bakker40e46942009-01-03 21:51:57 +0000320#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000321
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000322/**
323 * \def POLARSSL_CIPHER_C
324 *
325 * Enable the generic cipher layer.
326 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000327 * Module: library/cipher.c
328 * Caller:
329 *
330 * Uncomment to enable generic cipher wrappers.
331 */
332#define POLARSSL_CIPHER_C
333
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000334/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000335 * \def POLARSSL_CTR_DRBG_C
336 *
337 * Enable the CTR_DRBG AES-256-based random generator
338 *
339 * Module: library/ctr_drbg.c
340 * Caller:
341 *
Paul Bakker6083fd22011-12-03 21:45:14 +0000342 * Requires: POLARSSL_AES_C
343 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000344 * This module provides the CTR_DRBG AES-256 random number generator.
345 */
346#define POLARSSL_CTR_DRBG_C
347
348/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000349 * \def POLARSSL_DEBUG_C
350 *
351 * Enable the debug functions.
352 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000353 * Module: library/debug.c
354 * Caller: library/ssl_cli.c
355 * library/ssl_srv.c
356 * library/ssl_tls.c
357 *
358 * This module provides debugging functions.
359 */
Paul Bakker40e46942009-01-03 21:51:57 +0000360#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000361
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000362/**
363 * \def POLARSSL_DES_C
364 *
365 * Enable the DES block cipher.
366 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000367 * Module: library/des.c
368 * Caller: library/ssl_tls.c
369 *
370 * This module enables the following ciphersuites:
371 * SSL_RSA_DES_168_SHA
372 * SSL_EDH_RSA_DES_168_SHA
373 */
Paul Bakker40e46942009-01-03 21:51:57 +0000374#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000375
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000376/**
377 * \def POLARSSL_DHM_C
378 *
379 * Enable the Diffie-Hellman-Merkle key exchange.
380 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000381 * Module: library/dhm.c
382 * Caller: library/ssl_cli.c
383 * library/ssl_srv.c
384 *
385 * This module enables the following ciphersuites:
386 * SSL_EDH_RSA_DES_168_SHA
387 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000388 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000389 */
Paul Bakker40e46942009-01-03 21:51:57 +0000390#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000391
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000392/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000393 * \def POLARSSL_ENTROPY_C
394 *
395 * Enable the platform-specific entropy code.
396 *
397 * Module: library/entropy.c
398 * Caller:
399 *
400 * Requires: POLARSSL_SHA4_C
401 *
402 * This module provides a generic entropy pool
403 */
404#define POLARSSL_ENTROPY_C
405
406/**
Paul Bakker9d781402011-05-09 16:17:09 +0000407 * \def POLARSSL_ERROR_C
408 *
409 * Enable error code to error string conversion.
410 *
411 * Module: library/error.c
412 * Caller:
413 *
414 * This module enables err_strerror().
415 */
416#define POLARSSL_ERROR_C
417
418/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000419 * \def POLARSSL_HAVEGE_C
420 *
421 * Enable the HAVEGE random generator.
422 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000423 * Module: library/havege.c
424 * Caller:
425 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000426 * Requires: POLARSSL_TIMING_C
427 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000428 * This module enables the HAVEGE random number generator.
429 */
Paul Bakker40e46942009-01-03 21:51:57 +0000430#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000431
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000432/**
433 * \def POLARSSL_MD_C
434 *
435 * Enable the generic message digest layer.
436 *
Paul Bakker17373852011-01-06 14:20:01 +0000437 * Module: library/md.c
438 * Caller:
439 *
440 * Uncomment to enable generic message digest wrappers.
441 */
442#define POLARSSL_MD_C
443
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000444/**
445 * \def POLARSSL_MD2_C
446 *
447 * Enable the MD2 hash algorithm
448 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000449 * Module: library/md2.c
450 * Caller: library/x509parse.c
451 *
452 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
453 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000454#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000455 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000456
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000457/**
458 * \def POLARSSL_MD4_C
459 *
460 * Enable the MD4 hash algorithm
461 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000462 * Module: library/md4.c
463 * Caller: library/x509parse.c
464 *
465 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
466 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000467#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000468 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000469
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000470/**
471 * \def POLARSSL_MD5_C
472 *
473 * Enable the MD5 hash algorithm
474 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000475 * Module: library/md5.c
476 * Caller: library/ssl_tls.c
477 * library/x509parse.c
478 *
479 * This module is required for SSL/TLS and X.509.
480 */
Paul Bakker40e46942009-01-03 21:51:57 +0000481#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000482
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000483/**
484 * \def POLARSSL_NET_C
485 *
486 * Enable the TCP/IP networking routines.
487 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000488 * Module: library/net.c
489 * Caller:
490 *
491 * This module provides TCP/IP networking routines.
492 */
Paul Bakker40e46942009-01-03 21:51:57 +0000493#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000494
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000495/**
496 * \def POLARSSL_PADLOCK_C
497 *
498 * Enable VIA Padlock support on x86.
499 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000500 * Module: library/padlock.c
501 * Caller: library/aes.c
502 *
503 * This modules adds support for the VIA PadLock on x86.
504 */
Paul Bakker40e46942009-01-03 21:51:57 +0000505#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000506
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000507/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000508 * \def POLARSSL_PEM_C
509 *
510 * Enable PEM decoding
511 *
512 * Module: library/pem.c
513 * Caller: library/x509parse.c
514 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000515 * Requires: POLARSSL_BASE64_C
516 *
Paul Bakker96743fc2011-02-12 14:30:57 +0000517 * This modules adds support for decoding PEM files.
518 */
519#define POLARSSL_PEM_C
520
521/**
Paul Bakker5690efc2011-05-26 13:16:06 +0000522 * \def POLARSSL_PKCS11_C
523 *
524 * Enable support for PKCS#11 smartcard support.
525 *
526 * Module: library/ssl_srv.c
527 * Caller: library/ssl_cli.c
528 * library/ssl_srv.c
529 *
530 * Requires: POLARSSL_SSL_TLS_C
531 *
532 * This module is required for SSL/TLS PKCS #11 smartcard support.
533 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
534#define POLARSSL_PKCS11_C
535 */
536
537/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000538 * \def POLARSSL_RSA_C
539 *
540 * Enable the RSA public-key cryptosystem.
541 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000542 * Module: library/rsa.c
543 * Caller: library/ssl_cli.c
544 * library/ssl_srv.c
545 * library/ssl_tls.c
546 * library/x509.c
547 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000548 * Requires: POLARSSL_BIGNUM_C
549 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000550 * This module is required for SSL/TLS and MD5-signed certificates.
551 */
Paul Bakker40e46942009-01-03 21:51:57 +0000552#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000553
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000554/**
555 * \def POLARSSL_SHA1_C
556 *
557 * Enable the SHA1 cryptographic hash algorithm.
558 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000559 * Module: library/sha1.c
560 * Caller: library/ssl_cli.c
561 * library/ssl_srv.c
562 * library/ssl_tls.c
563 * library/x509parse.c
564 *
565 * This module is required for SSL/TLS and SHA1-signed certificates.
566 */
Paul Bakker40e46942009-01-03 21:51:57 +0000567#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000568
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000569/**
570 * \def POLARSSL_SHA2_C
571 *
572 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
573 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000574 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000575 * Caller: library/md_wrap.c
576 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000577 *
578 * This module adds support for SHA-224 and SHA-256.
579 */
Paul Bakker40e46942009-01-03 21:51:57 +0000580#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000581
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000582/**
583 * \def POLARSSL_SHA4_C
584 *
585 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
586 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000587 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000588 * Caller: library/md_wrap.c
589 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000590 *
591 * This module adds support for SHA-384 and SHA-512.
592 */
Paul Bakker40e46942009-01-03 21:51:57 +0000593#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000594
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000595/**
596 * \def POLARSSL_SSL_CLI_C
597 *
598 * Enable the SSL/TLS client code.
599 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000600 * Module: library/ssl_cli.c
601 * Caller:
602 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000603 * Requires: POLARSSL_SSL_TLS_C
604 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000605 * This module is required for SSL/TLS client support.
606 */
Paul Bakker40e46942009-01-03 21:51:57 +0000607#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000608
609/*
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000610 * \def POLARSSL_SSL_SRV_C
611 *
612 * Enable the SSL/TLS server code.
613 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000614 * Module: library/ssl_srv.c
615 * Caller:
616 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000617 * Requires: POLARSSL_SSL_TLS_C
618 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000619 * This module is required for SSL/TLS server support.
620 */
Paul Bakker40e46942009-01-03 21:51:57 +0000621#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000622
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000623/**
624 * \def POLARSSL_SSL_TLS_C
625 *
Paul Bakkere29ab062011-05-18 13:26:54 +0000626 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000627 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000628 * Module: library/ssl_tls.c
629 * Caller: library/ssl_cli.c
630 * library/ssl_srv.c
631 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000632 * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C
633 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000634 * This module is required for SSL/TLS.
635 */
Paul Bakker40e46942009-01-03 21:51:57 +0000636#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000637
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000638/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000639 * \def POLARSSL_TIMING_C
640 *
641 * Enable the portable timing interface.
642 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000643 * Module: library/timing.c
644 * Caller: library/havege.c
645 *
646 * This module is used by the HAVEGE random number generator.
647 */
Paul Bakker40e46942009-01-03 21:51:57 +0000648#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000649
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000650/**
651 * \def POLARSSL_VERSION_C
652 *
653 * Enable run-time version information.
654 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000655 * Module: library/version.c
656 *
657 * This module provides run-time version information.
658 */
659#define POLARSSL_VERSION_C
660
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000661/**
662 * \def POLARSSL_X509_PARSE_C
663 *
664 * Enable X.509 certificate parsing.
665 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000666 * Module: library/x509parse.c
667 * Caller: library/ssl_cli.c
668 * library/ssl_srv.c
669 * library/ssl_tls.c
670 *
Paul Bakkerefc30292011-11-10 14:43:23 +0000671 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C
Paul Bakker5690efc2011-05-26 13:16:06 +0000672 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000673 * This module is required for X.509 certificate parsing.
674 */
Paul Bakker40e46942009-01-03 21:51:57 +0000675#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000676
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000677/**
678 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000679 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000680 * Enable the XTEA block cipher.
681 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000682 * Module: library/xtea.c
683 * Caller:
684 */
685#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000686/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000687
Paul Bakker5121ce52009-01-03 21:22:43 +0000688#endif /* config.h */