blob: 27f520b257cb2228321fcb0e1aaab165dd8c2829 [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 Bakker9dcc3222011-03-08 14:16:06 +0000158 * \def POLARSSL_PKCS1_V21
159 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000160 * Requires: POLARSSL_MD_C, POLARSSL_RSA_C
161 *
Paul Bakker9dcc3222011-03-08 14:16:06 +0000162 * Enable support for PKCS#1 v2.1 encoding.
163 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
164 */
165#define POLARSSL_PKCS1_V21
166
167/**
Paul Bakker0216cc12011-03-26 13:40:23 +0000168 * \def POLARSSL_RSA_NO_CRT
169 *
170 * Do not use the Chinese Remainder Theorem for the RSA private operation.
171 *
172 * Uncomment this macro to disable the use of CRT in RSA.
173 *
174#define POLARSSL_RSA_NO_CRT
175 */
Paul Bakker15566e42011-04-24 21:19:15 +0000176
177/**
178 * \def POLARSSL_SELF_TEST
179 *
180 * Enable the checkup functions (*_self_test).
181 */
182#define POLARSSL_SELF_TEST
Paul Bakker5c721f92011-07-27 16:51:09 +0000183
184/**
185 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
186 *
187 * If set, the X509 parser will not break-off when parsing an X509 certificate
188 * and encountering an unknown critical extension.
189 *
190 * Uncomment to prevent an error.
191 *
192#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
193 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000194/* \} name */
195
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000196/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000197 * \name SECTION: PolarSSL modules
198 *
199 * This section enables or disables entire modules in PolarSSL
200 * \{
201 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000202
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000203/**
204 * \def POLARSSL_AES_C
205 *
206 * Enable the AES block cipher.
207 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000208 * Module: library/aes.c
209 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000210 * library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000211 *
212 * This module enables the following ciphersuites:
213 * SSL_RSA_AES_128_SHA
214 * SSL_RSA_AES_256_SHA
215 * SSL_EDH_RSA_AES_256_SHA
216 */
Paul Bakker40e46942009-01-03 21:51:57 +0000217#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000218
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000219/**
220 * \def POLARSSL_ARC4_C
221 *
222 * Enable the ARCFOUR stream cipher.
223 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000224 * Module: library/arc4.c
225 * Caller: library/ssl_tls.c
226 *
227 * This module enables the following ciphersuites:
228 * SSL_RSA_RC4_128_MD5
229 * SSL_RSA_RC4_128_SHA
230 */
Paul Bakker40e46942009-01-03 21:51:57 +0000231#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000232
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000233/**
Paul Bakkerefc30292011-11-10 14:43:23 +0000234 * \def POLARSSL_ASN1_PARSE_C
235 *
236 * Enable the generic ASN1 parser.
237 *
238 * Module: library/asn1.c
239 * Caller: library/x509parse.c
240 */
241#define POLARSSL_ASN1_PARSE_C
242
243/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000244 * \def POLARSSL_BASE64_C
245 *
246 * Enable the Base64 module.
247 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000248 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +0000249 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000250 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000251 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +0000252 */
Paul Bakker40e46942009-01-03 21:51:57 +0000253#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000254
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000255/**
256 * \def POLARSSL_BIGNUM_C
257 *
258 * Enable the multo-precision integer library.
259 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000260 * Module: library/bignum.c
261 * Caller: library/dhm.c
262 * library/rsa.c
263 * library/ssl_tls.c
264 * library/x509parse.c
265 *
266 * This module is required for RSA and DHM support.
267 */
Paul Bakker40e46942009-01-03 21:51:57 +0000268#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000269
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000270/**
271 * \def POLARSSL_CAMELLIA_C
272 *
273 * Enable the Camellia block cipher.
274 *
Paul Bakker38119b12009-01-10 23:31:23 +0000275 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000276 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000277 *
278 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000279 * SSL_RSA_CAMELLIA_128_SHA
280 * SSL_RSA_CAMELLIA_256_SHA
281 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000282 */
283#define POLARSSL_CAMELLIA_C
284
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000285/**
286 * \def POLARSSL_CERTS_C
287 *
288 * Enable the test certificates.
289 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000290 * Module: library/certs.c
291 * Caller:
292 *
293 * This module is used for testing (ssl_client/server).
294 */
Paul Bakker40e46942009-01-03 21:51:57 +0000295#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000296
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000297/**
298 * \def POLARSSL_CIPHER_C
299 *
300 * Enable the generic cipher layer.
301 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000302 * Module: library/cipher.c
303 * Caller:
304 *
305 * Uncomment to enable generic cipher wrappers.
306 */
307#define POLARSSL_CIPHER_C
308
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000309/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000310 * \def POLARSSL_CTR_DRBG_C
311 *
312 * Enable the CTR_DRBG AES-256-based random generator
313 *
314 * Module: library/ctr_drbg.c
315 * Caller:
316 *
317 * This module provides the CTR_DRBG AES-256 random number generator.
318 */
319#define POLARSSL_CTR_DRBG_C
320
321/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000322 * \def POLARSSL_DEBUG_C
323 *
324 * Enable the debug functions.
325 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000326 * Module: library/debug.c
327 * Caller: library/ssl_cli.c
328 * library/ssl_srv.c
329 * library/ssl_tls.c
330 *
331 * This module provides debugging functions.
332 */
Paul Bakker40e46942009-01-03 21:51:57 +0000333#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000334
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000335/**
336 * \def POLARSSL_DES_C
337 *
338 * Enable the DES block cipher.
339 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000340 * Module: library/des.c
341 * Caller: library/ssl_tls.c
342 *
343 * This module enables the following ciphersuites:
344 * SSL_RSA_DES_168_SHA
345 * SSL_EDH_RSA_DES_168_SHA
346 */
Paul Bakker40e46942009-01-03 21:51:57 +0000347#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000348
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000349/**
350 * \def POLARSSL_DHM_C
351 *
352 * Enable the Diffie-Hellman-Merkle key exchange.
353 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000354 * Module: library/dhm.c
355 * Caller: library/ssl_cli.c
356 * library/ssl_srv.c
357 *
358 * This module enables the following ciphersuites:
359 * SSL_EDH_RSA_DES_168_SHA
360 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000361 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000362 */
Paul Bakker40e46942009-01-03 21:51:57 +0000363#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000364
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000365/**
Paul Bakker9d781402011-05-09 16:17:09 +0000366 * \def POLARSSL_ERROR_C
367 *
368 * Enable error code to error string conversion.
369 *
370 * Module: library/error.c
371 * Caller:
372 *
373 * This module enables err_strerror().
374 */
375#define POLARSSL_ERROR_C
376
377/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000378 * \def POLARSSL_HAVEGE_C
379 *
380 * Enable the HAVEGE random generator.
381 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000382 * Module: library/havege.c
383 * Caller:
384 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000385 * Requires: POLARSSL_TIMING_C
386 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000387 * This module enables the HAVEGE random number generator.
388 */
Paul Bakker40e46942009-01-03 21:51:57 +0000389#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000390
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000391/**
392 * \def POLARSSL_MD_C
393 *
394 * Enable the generic message digest layer.
395 *
Paul Bakker17373852011-01-06 14:20:01 +0000396 * Module: library/md.c
397 * Caller:
398 *
399 * Uncomment to enable generic message digest wrappers.
400 */
401#define POLARSSL_MD_C
402
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000403/**
404 * \def POLARSSL_MD2_C
405 *
406 * Enable the MD2 hash algorithm
407 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000408 * Module: library/md2.c
409 * Caller: library/x509parse.c
410 *
411 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
412 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000413#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000414 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000415
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000416/**
417 * \def POLARSSL_MD4_C
418 *
419 * Enable the MD4 hash algorithm
420 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000421 * Module: library/md4.c
422 * Caller: library/x509parse.c
423 *
424 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
425 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000426#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000427 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000428
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000429/**
430 * \def POLARSSL_MD5_C
431 *
432 * Enable the MD5 hash algorithm
433 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000434 * Module: library/md5.c
435 * Caller: library/ssl_tls.c
436 * library/x509parse.c
437 *
438 * This module is required for SSL/TLS and X.509.
439 */
Paul Bakker40e46942009-01-03 21:51:57 +0000440#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000441
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000442/**
443 * \def POLARSSL_NET_C
444 *
445 * Enable the TCP/IP networking routines.
446 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000447 * Module: library/net.c
448 * Caller:
449 *
450 * This module provides TCP/IP networking routines.
451 */
Paul Bakker40e46942009-01-03 21:51:57 +0000452#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000453
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000454/**
455 * \def POLARSSL_PADLOCK_C
456 *
457 * Enable VIA Padlock support on x86.
458 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000459 * Module: library/padlock.c
460 * Caller: library/aes.c
461 *
462 * This modules adds support for the VIA PadLock on x86.
463 */
Paul Bakker40e46942009-01-03 21:51:57 +0000464#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000465
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000466/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000467 * \def POLARSSL_PEM_C
468 *
469 * Enable PEM decoding
470 *
471 * Module: library/pem.c
472 * Caller: library/x509parse.c
473 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000474 * Requires: POLARSSL_BASE64_C
475 *
Paul Bakker96743fc2011-02-12 14:30:57 +0000476 * This modules adds support for decoding PEM files.
477 */
478#define POLARSSL_PEM_C
479
480/**
Paul Bakker5690efc2011-05-26 13:16:06 +0000481 * \def POLARSSL_PKCS11_C
482 *
483 * Enable support for PKCS#11 smartcard support.
484 *
485 * Module: library/ssl_srv.c
486 * Caller: library/ssl_cli.c
487 * library/ssl_srv.c
488 *
489 * Requires: POLARSSL_SSL_TLS_C
490 *
491 * This module is required for SSL/TLS PKCS #11 smartcard support.
492 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
493#define POLARSSL_PKCS11_C
494 */
495
496/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000497 * \def POLARSSL_RSA_C
498 *
499 * Enable the RSA public-key cryptosystem.
500 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000501 * Module: library/rsa.c
502 * Caller: library/ssl_cli.c
503 * library/ssl_srv.c
504 * library/ssl_tls.c
505 * library/x509.c
506 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000507 * Requires: POLARSSL_BIGNUM_C
508 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000509 * This module is required for SSL/TLS and MD5-signed certificates.
510 */
Paul Bakker40e46942009-01-03 21:51:57 +0000511#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000512
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000513/**
514 * \def POLARSSL_SHA1_C
515 *
516 * Enable the SHA1 cryptographic hash algorithm.
517 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000518 * Module: library/sha1.c
519 * Caller: library/ssl_cli.c
520 * library/ssl_srv.c
521 * library/ssl_tls.c
522 * library/x509parse.c
523 *
524 * This module is required for SSL/TLS and SHA1-signed certificates.
525 */
Paul Bakker40e46942009-01-03 21:51:57 +0000526#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000527
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000528/**
529 * \def POLARSSL_SHA2_C
530 *
531 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
532 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000533 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000534 * Caller: library/md_wrap.c
535 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000536 *
537 * This module adds support for SHA-224 and SHA-256.
538 */
Paul Bakker40e46942009-01-03 21:51:57 +0000539#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000540
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000541/**
542 * \def POLARSSL_SHA4_C
543 *
544 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
545 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000546 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000547 * Caller: library/md_wrap.c
548 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000549 *
550 * This module adds support for SHA-384 and SHA-512.
551 */
Paul Bakker40e46942009-01-03 21:51:57 +0000552#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000553
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000554/**
555 * \def POLARSSL_SSL_CLI_C
556 *
557 * Enable the SSL/TLS client code.
558 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000559 * Module: library/ssl_cli.c
560 * Caller:
561 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000562 * Requires: POLARSSL_SSL_TLS_C
563 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000564 * This module is required for SSL/TLS client support.
565 */
Paul Bakker40e46942009-01-03 21:51:57 +0000566#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000567
568/*
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000569 * \def POLARSSL_SSL_SRV_C
570 *
571 * Enable the SSL/TLS server code.
572 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000573 * Module: library/ssl_srv.c
574 * Caller:
575 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000576 * Requires: POLARSSL_SSL_TLS_C
577 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000578 * This module is required for SSL/TLS server support.
579 */
Paul Bakker40e46942009-01-03 21:51:57 +0000580#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000581
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000582/**
583 * \def POLARSSL_SSL_TLS_C
584 *
Paul Bakkere29ab062011-05-18 13:26:54 +0000585 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000586 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000587 * Module: library/ssl_tls.c
588 * Caller: library/ssl_cli.c
589 * library/ssl_srv.c
590 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000591 * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C
592 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000593 * This module is required for SSL/TLS.
594 */
Paul Bakker40e46942009-01-03 21:51:57 +0000595#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000596
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000597/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000598 * \def POLARSSL_TIMING_C
599 *
600 * Enable the portable timing interface.
601 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000602 * Module: library/timing.c
603 * Caller: library/havege.c
604 *
605 * This module is used by the HAVEGE random number generator.
606 */
Paul Bakker40e46942009-01-03 21:51:57 +0000607#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000608
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000609/**
610 * \def POLARSSL_VERSION_C
611 *
612 * Enable run-time version information.
613 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000614 * Module: library/version.c
615 *
616 * This module provides run-time version information.
617 */
618#define POLARSSL_VERSION_C
619
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000620/**
621 * \def POLARSSL_X509_PARSE_C
622 *
623 * Enable X.509 certificate parsing.
624 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000625 * Module: library/x509parse.c
626 * Caller: library/ssl_cli.c
627 * library/ssl_srv.c
628 * library/ssl_tls.c
629 *
Paul Bakkerefc30292011-11-10 14:43:23 +0000630 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C
Paul Bakker5690efc2011-05-26 13:16:06 +0000631 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000632 * This module is required for X.509 certificate parsing.
633 */
Paul Bakker40e46942009-01-03 21:51:57 +0000634#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000635
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000636/**
637 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000638 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000639 * Enable the XTEA block cipher.
640 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000641 * Module: library/xtea.c
642 * Caller:
643 */
644#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000645/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000646
Paul Bakker5121ce52009-01-03 21:22:43 +0000647#endif /* config.h */