Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1 | /** |
| 2 | * \file config.h |
| 3 | * |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 4 | * \brief Configuration options (set of defines) |
| 5 | * |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 6 | * Copyright (C) 2006-2012, Brainspark B.V. |
Paul Bakker | b96f154 | 2010-07-18 20:36:00 +0000 | [diff] [blame] | 7 | * |
| 8 | * This file is part of PolarSSL (http://www.polarssl.org) |
Paul Bakker | 84f12b7 | 2010-07-18 10:13:04 +0000 | [diff] [blame] | 9 | * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> |
Paul Bakker | b96f154 | 2010-07-18 20:36:00 +0000 | [diff] [blame] | 10 | * |
Paul Bakker | 77b385e | 2009-07-28 17:23:11 +0000 | [diff] [blame] | 11 | * All rights reserved. |
Paul Bakker | e0ccd0a | 2009-01-04 16:27:10 +0000 | [diff] [blame] | 12 | * |
Paul Bakker | e0ccd0a | 2009-01-04 16:27:10 +0000 | [diff] [blame] | 13 | * 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 Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 27 | * 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 Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 31 | #ifndef POLARSSL_CONFIG_H |
| 32 | #define POLARSSL_CONFIG_H |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 33 | |
Paul Bakker | cce9d77 | 2011-11-18 14:26:47 +0000 | [diff] [blame] | 34 | #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 35 | #define _CRT_SECURE_NO_DEPRECATE 1 |
| 36 | #endif |
| 37 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 38 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 39 | * \name SECTION: System support |
| 40 | * |
| 41 | * This section sets system specific settings. |
| 42 | * \{ |
| 43 | */ |
| 44 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 45 | /** |
| 46 | * \def POLARSSL_HAVE_INT8 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 47 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 48 | * The system uses 8-bit wide native integers. |
| 49 | * |
| 50 | * Uncomment if native integers are 8-bit wide. |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 51 | #define POLARSSL_HAVE_INT8 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 52 | */ |
| 53 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 54 | /** |
| 55 | * \def POLARSSL_HAVE_INT16 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 56 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 57 | * The system uses 16-bit wide native integers. |
| 58 | * |
| 59 | * Uncomment if native integers are 16-bit wide. |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 60 | #define POLARSSL_HAVE_INT16 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 61 | */ |
| 62 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 63 | /** |
Paul Bakker | 62261d6 | 2012-10-02 12:19:31 +0000 | [diff] [blame] | 64 | * \def POLARSSL_HAVE_LONGLONG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 65 | * |
Paul Bakker | 62261d6 | 2012-10-02 12:19:31 +0000 | [diff] [blame] | 66 | * The compiler supports the 'long long' type. |
| 67 | * (Only used on 32-bit platforms) |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 68 | */ |
Paul Bakker | 62261d6 | 2012-10-02 12:19:31 +0000 | [diff] [blame] | 69 | #define POLARSSL_HAVE_LONGLONG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 70 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 71 | /** |
| 72 | * \def POLARSSL_HAVE_ASM |
| 73 | * |
| 74 | * The compiler has support for asm() |
| 75 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 76 | * Uncomment to enable the use of assembly code. |
Paul Bakker | 68041ec | 2009-04-19 21:17:55 +0000 | [diff] [blame] | 77 | * |
| 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 Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 85 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 86 | #define POLARSSL_HAVE_ASM |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 87 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 88 | /** |
| 89 | * \def POLARSSL_HAVE_SSE2 |
| 90 | * |
Paul Bakker | e23c315 | 2012-10-01 14:42:47 +0000 | [diff] [blame] | 91 | * CPU supports SSE2 instruction set. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 92 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 93 | * Uncomment if the CPU supports SSE2 (IA-32 specific). |
| 94 | * |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 95 | #define POLARSSL_HAVE_SSE2 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 96 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 97 | /* \} name */ |
| 98 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 99 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 100 | * \name SECTION: PolarSSL feature support |
| 101 | * |
| 102 | * This section sets support for features that are or are not needed |
| 103 | * within the modules that are enabled. |
| 104 | * \{ |
| 105 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 106 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 107 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 108 | * \def POLARSSL_AES_ROM_TABLES |
| 109 | * |
| 110 | * Store the AES tables in ROM. |
| 111 | * |
| 112 | * Uncomment this macro to store the AES tables in ROM. |
| 113 | * |
| 114 | #define POLARSSL_AES_ROM_TABLES |
| 115 | */ |
| 116 | |
| 117 | /** |
Paul Bakker | b6ecaf5 | 2011-04-19 14:29:23 +0000 | [diff] [blame] | 118 | * \def POLARSSL_CIPHER_MODE_CFB |
| 119 | * |
| 120 | * Enable Cipher Feedback mode (CFB) for symmetric ciphers. |
| 121 | */ |
| 122 | #define POLARSSL_CIPHER_MODE_CFB |
| 123 | |
| 124 | /** |
| 125 | * \def POLARSSL_CIPHER_MODE_CTR |
| 126 | * |
| 127 | * Enable Counter Block Cipher mode (CTR) for symmetric ciphers. |
| 128 | */ |
| 129 | #define POLARSSL_CIPHER_MODE_CTR |
| 130 | |
| 131 | /** |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 132 | * \def POLARSSL_CIPHER_NULL_CIPHER |
| 133 | * |
| 134 | * Enable NULL cipher. |
| 135 | * Warning: Only do so when you know what you are doing. This allows for |
| 136 | * encryption or channels without any security! |
| 137 | * |
| 138 | * Requires POLARSSL_ENABLE_WEAK_CIPHERSUITES as well to enable |
| 139 | * the following ciphersuites: |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 140 | * TLS_RSA_WITH_NULL_MD5 |
| 141 | * TLS_RSA_WITH_NULL_SHA |
| 142 | * TLS_RSA_WITH_NULL_SHA256 |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame^] | 143 | * TLS_ECDHE_RSA_WITH_NULL_SHA |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 144 | * |
| 145 | * Uncomment this macro to enable the NULL cipher and ciphersuites |
| 146 | #define POLARSSL_CIPHER_NULL_CIPHER |
| 147 | */ |
| 148 | |
| 149 | /** |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 150 | * \def POLARSSL_ENABLE_WEAK_CIPHERSUITES |
| 151 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 152 | * Enable weak ciphersuites in SSL / TLS |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 153 | * Warning: Only do so when you know what you are doing. This allows for |
Paul Bakker | 9a73632 | 2012-11-14 12:39:52 +0000 | [diff] [blame] | 154 | * channels with virtually no security at all! |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 155 | * |
| 156 | * This enables the following ciphersuites: |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 157 | * TLS_RSA_WITH_DES_CBC_SHA |
| 158 | * TLS_DHE_RSA_WITH_DES_CBC_SHA |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 159 | * |
| 160 | * Uncomment this macro to enable weak ciphersuites |
| 161 | #define POLARSSL_ENABLE_WEAK_CIPHERSUITES |
| 162 | */ |
| 163 | |
| 164 | /** |
Paul Bakker | 8fe40dc | 2013-02-02 12:43:08 +0100 | [diff] [blame] | 165 | * \def POLARSSL_ERROR_STRERROR_DUMMY |
| 166 | * |
| 167 | * Enable a dummy error function to make use of error_strerror() in |
| 168 | * third party libraries easier. |
| 169 | * |
| 170 | * Disable if you run into name conflicts and want to really remove the |
| 171 | * error_strerror() |
| 172 | */ |
| 173 | #define POLARSSL_ERROR_STRERROR_DUMMY |
| 174 | |
| 175 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 176 | * \def POLARSSL_GENPRIME |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 177 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 178 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
| 179 | * |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 180 | * Enable the RSA prime-number generation code. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 181 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 182 | #define POLARSSL_GENPRIME |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 183 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 184 | /** |
Paul Bakker | 335db3f | 2011-04-25 15:28:35 +0000 | [diff] [blame] | 185 | * \def POLARSSL_FS_IO |
| 186 | * |
| 187 | * Enable functions that use the filesystem. |
| 188 | */ |
| 189 | #define POLARSSL_FS_IO |
| 190 | |
| 191 | /** |
Paul Bakker | 43655f4 | 2011-12-15 20:11:16 +0000 | [diff] [blame] | 192 | * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES |
| 193 | * |
| 194 | * Do not add default entropy sources. These are the platform specific, |
| 195 | * hardclock and HAVEGE based poll functions. |
| 196 | * |
| 197 | * This is useful to have more control over the added entropy sources in an |
| 198 | * application. |
| 199 | * |
| 200 | * Uncomment this macro to prevent loading of default entropy functions. |
| 201 | #define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES |
| 202 | */ |
| 203 | |
| 204 | /** |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 205 | * \def POLARSSL_NO_PLATFORM_ENTROPY |
| 206 | * |
| 207 | * Do not use built-in platform entropy functions. |
| 208 | * This is useful if your platform does not support |
| 209 | * standards like the /dev/urandom or Windows CryptoAPI. |
| 210 | * |
| 211 | * Uncomment this macro to disable the built-in platform entropy functions. |
| 212 | #define POLARSSL_NO_PLATFORM_ENTROPY |
| 213 | */ |
| 214 | |
| 215 | /** |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 216 | * \def POLARSSL_PKCS1_V21 |
| 217 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 218 | * Requires: POLARSSL_MD_C, POLARSSL_RSA_C |
| 219 | * |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 220 | * Enable support for PKCS#1 v2.1 encoding. |
| 221 | * This enables support for RSAES-OAEP and RSASSA-PSS operations. |
| 222 | */ |
| 223 | #define POLARSSL_PKCS1_V21 |
| 224 | |
| 225 | /** |
Paul Bakker | 0216cc1 | 2011-03-26 13:40:23 +0000 | [diff] [blame] | 226 | * \def POLARSSL_RSA_NO_CRT |
| 227 | * |
| 228 | * Do not use the Chinese Remainder Theorem for the RSA private operation. |
| 229 | * |
| 230 | * Uncomment this macro to disable the use of CRT in RSA. |
| 231 | * |
| 232 | #define POLARSSL_RSA_NO_CRT |
| 233 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 234 | |
| 235 | /** |
| 236 | * \def POLARSSL_SELF_TEST |
| 237 | * |
| 238 | * Enable the checkup functions (*_self_test). |
| 239 | */ |
| 240 | #define POLARSSL_SELF_TEST |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 241 | |
| 242 | /** |
Paul Bakker | 40865c8 | 2013-01-31 17:13:13 +0100 | [diff] [blame] | 243 | * \def POLARSSL_SSL_ALL_ALERT_MESSAGES |
| 244 | * |
| 245 | * Enable sending of alert messages in case of encountered errors as per RFC. |
| 246 | * If you choose not to send the alert messages, PolarSSL can still communicate |
| 247 | * with other servers, only debugging of failures is harder. |
| 248 | * |
| 249 | * The advantage of not sending alert messages, is that no information is given |
| 250 | * about reasons for failures thus preventing adversaries of gaining intel. |
| 251 | * |
| 252 | * Enable sending of all alert messages |
| 253 | */ |
| 254 | #define POLARSSL_SSL_ALERT_MESSAGES |
| 255 | |
| 256 | /** |
Paul Bakker | d66f070 | 2013-01-31 16:57:45 +0100 | [diff] [blame] | 257 | * \def POLARSSL_SSL_DEBUG_ALL |
| 258 | * |
| 259 | * Enable the debug messages in SSL module for all issues. |
| 260 | * Debug messages have been disabled in some places to prevent timing |
| 261 | * attacks due to (unbalanced) debugging function calls. |
| 262 | * |
| 263 | * If you need all error reporting you should enable this during debugging, |
| 264 | * but remove this for production servers that should log as well. |
| 265 | * |
| 266 | * Uncomment this macro to report all debug messages on errors introducing |
| 267 | * a timing side-channel. |
| 268 | * |
| 269 | #define POLARSSL_SSL_DEBUG_ALL |
| 270 | */ |
| 271 | |
| 272 | /** |
Paul Bakker | 05ef835 | 2012-05-08 09:17:57 +0000 | [diff] [blame] | 273 | * \def POLARSSL_SSL_HW_RECORD_ACCEL |
| 274 | * |
| 275 | * Enable hooking functions in SSL module for hardware acceleration of |
| 276 | * individual records. |
| 277 | * |
| 278 | * Uncomment this macro to enable hooking functions. |
| 279 | #define POLARSSL_SSL_HW_RECORD_ACCEL |
| 280 | */ |
| 281 | |
| 282 | /** |
Paul Bakker | 78a8c71 | 2013-03-06 17:01:52 +0100 | [diff] [blame] | 283 | * \def POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO |
| 284 | * |
| 285 | * Enable support for receiving and parsing SSLv2 Client Hello messages for the |
| 286 | * SSL Server module (POLARSSL_SSL_SRV_C) |
| 287 | * |
| 288 | * Comment this macro to disable support for SSLv2 Client Hello messages. |
| 289 | */ |
| 290 | #define POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO |
| 291 | |
| 292 | /** |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 293 | * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 294 | * |
| 295 | * If set, the X509 parser will not break-off when parsing an X509 certificate |
| 296 | * and encountering an unknown critical extension. |
| 297 | * |
| 298 | * Uncomment to prevent an error. |
| 299 | * |
| 300 | #define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 301 | */ |
Paul Bakker | 2770fbd | 2012-07-03 13:30:23 +0000 | [diff] [blame] | 302 | |
| 303 | /** |
| 304 | * \def POLARSSL_ZLIB_SUPPORT |
| 305 | * |
| 306 | * If set, the SSL/TLS module uses ZLIB to support compression and |
| 307 | * decompression of packet data. |
| 308 | * |
| 309 | * Used in: library/ssl_tls.c |
| 310 | * library/ssl_cli.c |
| 311 | * library/ssl_srv.c |
| 312 | * |
| 313 | * This feature requires zlib library and headers to be present. |
| 314 | * |
| 315 | * Uncomment to enable use of ZLIB |
| 316 | #define POLARSSL_ZLIB_SUPPORT |
| 317 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 318 | /* \} name */ |
| 319 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 320 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 321 | * \name SECTION: PolarSSL modules |
| 322 | * |
| 323 | * This section enables or disables entire modules in PolarSSL |
| 324 | * \{ |
| 325 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 326 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 327 | /** |
| 328 | * \def POLARSSL_AES_C |
| 329 | * |
| 330 | * Enable the AES block cipher. |
| 331 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 332 | * Module: library/aes.c |
| 333 | * Caller: library/ssl_tls.c |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 334 | * library/pem.c |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 335 | * library/ctr_drbg.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 336 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 337 | * This module enables the following ciphersuites (if other requisites are |
| 338 | * enabled as well): |
| 339 | * TLS_RSA_WITH_AES_128_CBC_SHA |
| 340 | * TLS_RSA_WITH_AES_256_CBC_SHA |
| 341 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA |
| 342 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA |
| 343 | * TLS_RSA_WITH_AES_128_CBC_SHA256 |
| 344 | * TLS_RSA_WITH_AES_256_CBC_SHA256 |
| 345 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 |
| 346 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
| 347 | * TLS_RSA_WITH_AES_128_GCM_SHA256 |
| 348 | * TLS_RSA_WITH_AES_256_GCM_SHA384 |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame^] | 349 | * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA |
| 350 | * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 351 | * |
| 352 | * PEM uses AES for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 353 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 354 | #define POLARSSL_AES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 355 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 356 | /** |
| 357 | * \def POLARSSL_ARC4_C |
| 358 | * |
| 359 | * Enable the ARCFOUR stream cipher. |
| 360 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 361 | * Module: library/arc4.c |
| 362 | * Caller: library/ssl_tls.c |
| 363 | * |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame^] | 364 | * This module enables the following ciphersuites (if other requisites are |
| 365 | * enabled as well): |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 366 | * TLS_RSA_WITH_RC4_128_MD5 |
| 367 | * TLS_RSA_WITH_RC4_128_SHA |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame^] | 368 | * TLS_ECDHE_RSA_WITH_RC4_128_SHA |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 369 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 370 | #define POLARSSL_ARC4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 371 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 372 | /** |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame] | 373 | * \def POLARSSL_ASN1_PARSE_C |
| 374 | * |
| 375 | * Enable the generic ASN1 parser. |
| 376 | * |
| 377 | * Module: library/asn1.c |
| 378 | * Caller: library/x509parse.c |
| 379 | */ |
| 380 | #define POLARSSL_ASN1_PARSE_C |
| 381 | |
| 382 | /** |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 383 | * \def POLARSSL_ASN1_WRITE_C |
| 384 | * |
| 385 | * Enable the generic ASN1 writer. |
| 386 | * |
| 387 | * Module: library/asn1write.c |
| 388 | */ |
| 389 | #define POLARSSL_ASN1_WRITE_C |
| 390 | |
| 391 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 392 | * \def POLARSSL_BASE64_C |
| 393 | * |
| 394 | * Enable the Base64 module. |
| 395 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 396 | * Module: library/base64.c |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 397 | * Caller: library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 398 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 399 | * This module is required for PEM support (required by X.509). |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 400 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 401 | #define POLARSSL_BASE64_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 402 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 403 | /** |
| 404 | * \def POLARSSL_BIGNUM_C |
| 405 | * |
Paul Bakker | 9a73632 | 2012-11-14 12:39:52 +0000 | [diff] [blame] | 406 | * Enable the multi-precision integer library. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 407 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 408 | * Module: library/bignum.c |
| 409 | * Caller: library/dhm.c |
| 410 | * library/rsa.c |
| 411 | * library/ssl_tls.c |
| 412 | * library/x509parse.c |
| 413 | * |
| 414 | * This module is required for RSA and DHM support. |
| 415 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 416 | #define POLARSSL_BIGNUM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 417 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 418 | /** |
Paul Bakker | a9379c0 | 2012-07-04 11:02:11 +0000 | [diff] [blame] | 419 | * \def POLARSSL_BLOWFISH_C |
| 420 | * |
| 421 | * Enable the Blowfish block cipher. |
| 422 | * |
| 423 | * Module: library/blowfish.c |
| 424 | */ |
| 425 | #define POLARSSL_BLOWFISH_C |
| 426 | |
| 427 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 428 | * \def POLARSSL_CAMELLIA_C |
| 429 | * |
| 430 | * Enable the Camellia block cipher. |
| 431 | * |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 432 | * Module: library/camellia.c |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 433 | * Caller: library/ssl_tls.c |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 434 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 435 | * This module enables the following ciphersuites (if other requisites are |
| 436 | * enabled as well): |
| 437 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 438 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 439 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 440 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 441 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 442 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
| 443 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 444 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 445 | */ |
| 446 | #define POLARSSL_CAMELLIA_C |
| 447 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 448 | /** |
| 449 | * \def POLARSSL_CERTS_C |
| 450 | * |
| 451 | * Enable the test certificates. |
| 452 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 453 | * Module: library/certs.c |
| 454 | * Caller: |
| 455 | * |
| 456 | * This module is used for testing (ssl_client/server). |
| 457 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 458 | #define POLARSSL_CERTS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 459 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 460 | /** |
| 461 | * \def POLARSSL_CIPHER_C |
| 462 | * |
| 463 | * Enable the generic cipher layer. |
| 464 | * |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 465 | * Module: library/cipher.c |
| 466 | * Caller: |
| 467 | * |
| 468 | * Uncomment to enable generic cipher wrappers. |
| 469 | */ |
| 470 | #define POLARSSL_CIPHER_C |
| 471 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 472 | /** |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 473 | * \def POLARSSL_CTR_DRBG_C |
| 474 | * |
| 475 | * Enable the CTR_DRBG AES-256-based random generator |
| 476 | * |
| 477 | * Module: library/ctr_drbg.c |
| 478 | * Caller: |
| 479 | * |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 480 | * Requires: POLARSSL_AES_C |
| 481 | * |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 482 | * This module provides the CTR_DRBG AES-256 random number generator. |
| 483 | */ |
| 484 | #define POLARSSL_CTR_DRBG_C |
| 485 | |
| 486 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 487 | * \def POLARSSL_DEBUG_C |
| 488 | * |
| 489 | * Enable the debug functions. |
| 490 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 491 | * Module: library/debug.c |
| 492 | * Caller: library/ssl_cli.c |
| 493 | * library/ssl_srv.c |
| 494 | * library/ssl_tls.c |
| 495 | * |
| 496 | * This module provides debugging functions. |
| 497 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 498 | #define POLARSSL_DEBUG_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 499 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 500 | /** |
| 501 | * \def POLARSSL_DES_C |
| 502 | * |
| 503 | * Enable the DES block cipher. |
| 504 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 505 | * Module: library/des.c |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 506 | * Caller: library/pem.c |
| 507 | * library/ssl_tls.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 508 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 509 | * This module enables the following ciphersuites (if other requisites are |
| 510 | * enabled as well): |
| 511 | * TLS_RSA_WITH_3DES_EDE_CBC_SHA |
| 512 | * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame^] | 513 | * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 514 | * |
| 515 | * PEM uses DES/3DES for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 516 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 517 | #define POLARSSL_DES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 518 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 519 | /** |
| 520 | * \def POLARSSL_DHM_C |
| 521 | * |
| 522 | * Enable the Diffie-Hellman-Merkle key exchange. |
| 523 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 524 | * Module: library/dhm.c |
| 525 | * Caller: library/ssl_cli.c |
| 526 | * library/ssl_srv.c |
| 527 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 528 | * This module enables the following ciphersuites (if other requisites are |
| 529 | * enabled as well): |
| 530 | * TLS_DHE_RSA_WITH_DES_CBC_SHA |
| 531 | * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA |
| 532 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA |
| 533 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA |
| 534 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 |
| 535 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
| 536 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 537 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 538 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 539 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
| 540 | * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 |
| 541 | * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 542 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 543 | #define POLARSSL_DHM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 544 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 545 | /** |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 546 | * \def POLARSSL_ECDH_C |
| 547 | * |
| 548 | * Enable the elliptic curve Diffie-Hellman library. |
| 549 | * |
| 550 | * Module: library/ecdh.c |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame^] | 551 | * Caller: library/ssl_cli.c |
| 552 | * library/ssl_srv.c |
| 553 | * |
| 554 | * This module enables the following ciphersuites (if other requisites are |
| 555 | * enabled as well): |
| 556 | * TLS_ECDHE_RSA_WITH_NULL_SHA |
| 557 | * TLS_ECDHE_RSA_WITH_RC4_128_SHA |
| 558 | * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA |
| 559 | * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA |
| 560 | * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 561 | * |
| 562 | * Requires: POLARSSL_ECP_C |
| 563 | */ |
| 564 | #define POLARSSL_ECDH_C |
| 565 | |
| 566 | /** |
| 567 | * \def POLARSSL_ECDSA_C |
| 568 | * |
| 569 | * Enable the elliptic curve DSA library. |
| 570 | * |
| 571 | * Module: library/ecdsa.c |
| 572 | * Caller: |
| 573 | * |
| 574 | * Requires: POLARSSL_ECP_C |
| 575 | */ |
| 576 | #define POLARSSL_ECDSA_C |
| 577 | |
| 578 | /** |
| 579 | * \def POLARSSL_ECP_C |
| 580 | * |
| 581 | * Enable the elliptic curve over GF(p) library. |
| 582 | * |
| 583 | * Module: library/ecp.c |
| 584 | * Caller: library/ecdh.c |
| 585 | * library/ecdsa.c |
| 586 | * |
| 587 | * Requires: POLARSSL_BIGNUM_C |
| 588 | */ |
| 589 | #define POLARSSL_ECP_C |
| 590 | |
| 591 | /** |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 592 | * \def POLARSSL_ENTROPY_C |
| 593 | * |
| 594 | * Enable the platform-specific entropy code. |
| 595 | * |
| 596 | * Module: library/entropy.c |
| 597 | * Caller: |
| 598 | * |
| 599 | * Requires: POLARSSL_SHA4_C |
| 600 | * |
| 601 | * This module provides a generic entropy pool |
| 602 | */ |
| 603 | #define POLARSSL_ENTROPY_C |
| 604 | |
| 605 | /** |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 606 | * \def POLARSSL_ERROR_C |
| 607 | * |
| 608 | * Enable error code to error string conversion. |
| 609 | * |
| 610 | * Module: library/error.c |
| 611 | * Caller: |
| 612 | * |
| 613 | * This module enables err_strerror(). |
| 614 | */ |
| 615 | #define POLARSSL_ERROR_C |
| 616 | |
| 617 | /** |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 618 | * \def POLARSSL_GCM_C |
| 619 | * |
| 620 | * Enable the Galois/Counter Mode (GCM) for AES |
| 621 | * |
| 622 | * Module: library/gcm.c |
| 623 | * |
| 624 | * Requires: POLARSSL_AES_C |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 625 | * |
| 626 | * This module enables the following ciphersuites (if other requisites are |
| 627 | * enabled as well): |
| 628 | * TLS_RSA_WITH_AES_128_GCM_SHA256 |
| 629 | * TLS_RSA_WITH_AES_256_GCM_SHA384 |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 630 | */ |
| 631 | #define POLARSSL_GCM_C |
| 632 | |
| 633 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 634 | * \def POLARSSL_HAVEGE_C |
| 635 | * |
| 636 | * Enable the HAVEGE random generator. |
| 637 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 638 | * Module: library/havege.c |
| 639 | * Caller: |
| 640 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 641 | * Requires: POLARSSL_TIMING_C |
| 642 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 643 | * This module enables the HAVEGE random number generator. |
| 644 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 645 | #define POLARSSL_HAVEGE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 646 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 647 | /** |
| 648 | * \def POLARSSL_MD_C |
| 649 | * |
| 650 | * Enable the generic message digest layer. |
| 651 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 652 | * Module: library/md.c |
| 653 | * Caller: |
| 654 | * |
| 655 | * Uncomment to enable generic message digest wrappers. |
| 656 | */ |
| 657 | #define POLARSSL_MD_C |
| 658 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 659 | /** |
| 660 | * \def POLARSSL_MD2_C |
| 661 | * |
| 662 | * Enable the MD2 hash algorithm |
| 663 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 664 | * Module: library/md2.c |
| 665 | * Caller: library/x509parse.c |
| 666 | * |
| 667 | * Uncomment to enable support for (rare) MD2-signed X.509 certs. |
| 668 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 669 | #define POLARSSL_MD2_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 670 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 671 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 672 | /** |
| 673 | * \def POLARSSL_MD4_C |
| 674 | * |
| 675 | * Enable the MD4 hash algorithm |
| 676 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 677 | * Module: library/md4.c |
| 678 | * Caller: library/x509parse.c |
| 679 | * |
| 680 | * Uncomment to enable support for (rare) MD4-signed X.509 certs. |
| 681 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 682 | #define POLARSSL_MD4_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 683 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 684 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 685 | /** |
| 686 | * \def POLARSSL_MD5_C |
| 687 | * |
| 688 | * Enable the MD5 hash algorithm |
| 689 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 690 | * Module: library/md5.c |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 691 | * Caller: library/pem.c |
| 692 | * library/ssl_tls.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 693 | * library/x509parse.c |
| 694 | * |
| 695 | * This module is required for SSL/TLS and X.509. |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 696 | * PEM uses MD5 for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 697 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 698 | #define POLARSSL_MD5_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 699 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 700 | /** |
| 701 | * \def POLARSSL_NET_C |
| 702 | * |
| 703 | * Enable the TCP/IP networking routines. |
| 704 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 705 | * Module: library/net.c |
| 706 | * Caller: |
| 707 | * |
| 708 | * This module provides TCP/IP networking routines. |
| 709 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 710 | #define POLARSSL_NET_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 711 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 712 | /** |
| 713 | * \def POLARSSL_PADLOCK_C |
| 714 | * |
| 715 | * Enable VIA Padlock support on x86. |
| 716 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 717 | * Module: library/padlock.c |
| 718 | * Caller: library/aes.c |
| 719 | * |
| 720 | * This modules adds support for the VIA PadLock on x86. |
| 721 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 722 | #define POLARSSL_PADLOCK_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 723 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 724 | /** |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 725 | * \def POLARSSL_PBKDF2_C |
| 726 | * |
| 727 | * Enable PKCS#5 PBKDF2 key derivation function |
| 728 | * |
| 729 | * Module: library/pbkdf2.c |
| 730 | * |
| 731 | * Requires: POLARSSL_MD_C |
| 732 | * |
| 733 | * This module adds support for the PKCS#5 PBKDF2 key derivation function. |
| 734 | #define POLARSSL_PBKDF2_C |
| 735 | */ |
| 736 | |
| 737 | /** |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 738 | * \def POLARSSL_PEM_C |
| 739 | * |
| 740 | * Enable PEM decoding |
| 741 | * |
| 742 | * Module: library/pem.c |
| 743 | * Caller: library/x509parse.c |
| 744 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 745 | * Requires: POLARSSL_BASE64_C |
| 746 | * |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 747 | * This modules adds support for decoding PEM files. |
| 748 | */ |
| 749 | #define POLARSSL_PEM_C |
| 750 | |
| 751 | /** |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 752 | * \def POLARSSL_PKCS11_C |
| 753 | * |
Paul Bakker | eb2c658 | 2012-09-27 19:15:01 +0000 | [diff] [blame] | 754 | * Enable wrapper for PKCS#11 smartcard support. |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 755 | * |
| 756 | * Module: library/ssl_srv.c |
| 757 | * Caller: library/ssl_cli.c |
| 758 | * library/ssl_srv.c |
| 759 | * |
| 760 | * Requires: POLARSSL_SSL_TLS_C |
| 761 | * |
Paul Bakker | eb2c658 | 2012-09-27 19:15:01 +0000 | [diff] [blame] | 762 | * This module enables SSL/TLS PKCS #11 smartcard support. |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 763 | * Requires the presence of the PKCS#11 helper library (libpkcs11-helper) |
| 764 | #define POLARSSL_PKCS11_C |
| 765 | */ |
| 766 | |
| 767 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 768 | * \def POLARSSL_RSA_C |
| 769 | * |
| 770 | * Enable the RSA public-key cryptosystem. |
| 771 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 772 | * Module: library/rsa.c |
| 773 | * Caller: library/ssl_cli.c |
| 774 | * library/ssl_srv.c |
| 775 | * library/ssl_tls.c |
| 776 | * library/x509.c |
| 777 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 778 | * Requires: POLARSSL_BIGNUM_C |
| 779 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 780 | * This module is required for SSL/TLS and MD5-signed certificates. |
| 781 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 782 | #define POLARSSL_RSA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 783 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 784 | /** |
| 785 | * \def POLARSSL_SHA1_C |
| 786 | * |
| 787 | * Enable the SHA1 cryptographic hash algorithm. |
| 788 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 789 | * Module: library/sha1.c |
| 790 | * Caller: library/ssl_cli.c |
| 791 | * library/ssl_srv.c |
| 792 | * library/ssl_tls.c |
| 793 | * library/x509parse.c |
| 794 | * |
| 795 | * This module is required for SSL/TLS and SHA1-signed certificates. |
| 796 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 797 | #define POLARSSL_SHA1_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 798 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 799 | /** |
| 800 | * \def POLARSSL_SHA2_C |
| 801 | * |
| 802 | * Enable the SHA-224 and SHA-256 cryptographic hash algorithms. |
| 803 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 804 | * Module: library/sha2.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 805 | * Caller: library/md_wrap.c |
| 806 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 807 | * |
| 808 | * This module adds support for SHA-224 and SHA-256. |
Paul Bakker | 769075d | 2012-11-24 11:26:46 +0100 | [diff] [blame] | 809 | * This module is required for the SSL/TLS 1.2 PRF function. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 810 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 811 | #define POLARSSL_SHA2_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 812 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 813 | /** |
| 814 | * \def POLARSSL_SHA4_C |
| 815 | * |
| 816 | * Enable the SHA-384 and SHA-512 cryptographic hash algorithms. |
| 817 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 818 | * Module: library/sha4.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 819 | * Caller: library/md_wrap.c |
| 820 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 821 | * |
| 822 | * This module adds support for SHA-384 and SHA-512. |
| 823 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 824 | #define POLARSSL_SHA4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 825 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 826 | /** |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 827 | * \def POLARSSL_SSL_CACHE_C |
| 828 | * |
| 829 | * Enable simple SSL cache implementation. |
| 830 | * |
| 831 | * Module: library/ssl_cache.c |
| 832 | * Caller: |
| 833 | * |
| 834 | * Requires: POLARSSL_SSL_CACHE_C |
| 835 | */ |
| 836 | #define POLARSSL_SSL_CACHE_C |
| 837 | |
| 838 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 839 | * \def POLARSSL_SSL_CLI_C |
| 840 | * |
| 841 | * Enable the SSL/TLS client code. |
| 842 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 843 | * Module: library/ssl_cli.c |
| 844 | * Caller: |
| 845 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 846 | * Requires: POLARSSL_SSL_TLS_C |
| 847 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 848 | * This module is required for SSL/TLS client support. |
| 849 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 850 | #define POLARSSL_SSL_CLI_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 851 | |
Paul Bakker | 9a73632 | 2012-11-14 12:39:52 +0000 | [diff] [blame] | 852 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 853 | * \def POLARSSL_SSL_SRV_C |
| 854 | * |
| 855 | * Enable the SSL/TLS server code. |
| 856 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 857 | * Module: library/ssl_srv.c |
| 858 | * Caller: |
| 859 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 860 | * Requires: POLARSSL_SSL_TLS_C |
| 861 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 862 | * This module is required for SSL/TLS server support. |
| 863 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 864 | #define POLARSSL_SSL_SRV_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 865 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 866 | /** |
| 867 | * \def POLARSSL_SSL_TLS_C |
| 868 | * |
Paul Bakker | e29ab06 | 2011-05-18 13:26:54 +0000 | [diff] [blame] | 869 | * Enable the generic SSL/TLS code. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 870 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 871 | * Module: library/ssl_tls.c |
| 872 | * Caller: library/ssl_cli.c |
| 873 | * library/ssl_srv.c |
| 874 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 875 | * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C |
| 876 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 877 | * This module is required for SSL/TLS. |
| 878 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 879 | #define POLARSSL_SSL_TLS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 880 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 881 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 882 | * \def POLARSSL_TIMING_C |
| 883 | * |
| 884 | * Enable the portable timing interface. |
| 885 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 886 | * Module: library/timing.c |
| 887 | * Caller: library/havege.c |
| 888 | * |
| 889 | * This module is used by the HAVEGE random number generator. |
| 890 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 891 | #define POLARSSL_TIMING_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 892 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 893 | /** |
| 894 | * \def POLARSSL_VERSION_C |
| 895 | * |
| 896 | * Enable run-time version information. |
| 897 | * |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 898 | * Module: library/version.c |
| 899 | * |
| 900 | * This module provides run-time version information. |
| 901 | */ |
| 902 | #define POLARSSL_VERSION_C |
| 903 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 904 | /** |
| 905 | * \def POLARSSL_X509_PARSE_C |
| 906 | * |
| 907 | * Enable X.509 certificate parsing. |
| 908 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 909 | * Module: library/x509parse.c |
| 910 | * Caller: library/ssl_cli.c |
| 911 | * library/ssl_srv.c |
| 912 | * library/ssl_tls.c |
| 913 | * |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame] | 914 | * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 915 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 916 | * This module is required for X.509 certificate parsing. |
| 917 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 918 | #define POLARSSL_X509_PARSE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 919 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 920 | /** |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 921 | * \def POLARSSL_X509_WRITE_C |
| 922 | * |
| 923 | * Enable X.509 buffer writing. |
| 924 | * |
| 925 | * Module: library/x509write.c |
| 926 | * |
| 927 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
| 928 | * |
| 929 | * This module is required for X.509 certificate request writing. |
| 930 | */ |
| 931 | #define POLARSSL_X509_WRITE_C |
| 932 | |
| 933 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 934 | * \def POLARSSL_XTEA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 935 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 936 | * Enable the XTEA block cipher. |
| 937 | * |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 938 | * Module: library/xtea.c |
| 939 | * Caller: |
| 940 | */ |
| 941 | #define POLARSSL_XTEA_C |
Manuel Pégourié-Gonnard | 39d2adb | 2012-10-31 09:26:55 +0100 | [diff] [blame] | 942 | |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 943 | /* \} name */ |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 944 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 945 | #endif /* config.h */ |