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 | defc0ca | 2014-02-04 17:30:24 +0100 | [diff] [blame] | 6 | * Copyright (C) 2006-2014, 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 | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 51 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 52 | //#define POLARSSL_HAVE_INT8 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 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 | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 60 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 61 | //#define POLARSSL_HAVE_INT16 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 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 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 74 | * The compiler has support for asm(). |
Paul Bakker | 68041ec | 2009-04-19 21:17:55 +0000 | [diff] [blame] | 75 | * |
| 76 | * Requires support for asm() in compiler. |
| 77 | * |
| 78 | * Used in: |
| 79 | * library/timing.c |
| 80 | * library/padlock.c |
| 81 | * include/polarssl/bn_mul.h |
| 82 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 83 | * Comment to disable the use of assembly code. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 84 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 85 | #define POLARSSL_HAVE_ASM |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 86 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 87 | /** |
| 88 | * \def POLARSSL_HAVE_SSE2 |
| 89 | * |
Paul Bakker | e23c315 | 2012-10-01 14:42:47 +0000 | [diff] [blame] | 90 | * CPU supports SSE2 instruction set. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 91 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 92 | * Uncomment if the CPU supports SSE2 (IA-32 specific). |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 93 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 94 | //#define POLARSSL_HAVE_SSE2 |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 95 | |
| 96 | /** |
| 97 | * \def POLARSSL_HAVE_TIME |
| 98 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 99 | * System has time.h and time() / localtime() / gettimeofday(). |
Paul Bakker | fa9b100 | 2013-07-03 15:31:03 +0200 | [diff] [blame] | 100 | * |
| 101 | * Comment if your system does not support time functions |
| 102 | */ |
| 103 | #define POLARSSL_HAVE_TIME |
Manuel Pégourié-Gonnard | 10934de | 2013-12-13 12:54:09 +0100 | [diff] [blame] | 104 | |
| 105 | /** |
| 106 | * \def POLARSSL_HAVE_IPV6 |
| 107 | * |
| 108 | * System supports the basic socket interface for IPv6 (RFC 3493), |
Manuel Pégourié-Gonnard | 767f02c | 2013-12-13 16:23:39 +0100 | [diff] [blame] | 109 | * specifically getaddrinfo(), freeaddrinfo() and struct sockaddr_storage. |
Manuel Pégourié-Gonnard | 10934de | 2013-12-13 12:54:09 +0100 | [diff] [blame] | 110 | * |
Manuel Pégourié-Gonnard | 1321135 | 2013-12-17 17:38:55 +0100 | [diff] [blame] | 111 | * Note: on Windows/MingW, XP or higher is required. |
| 112 | * |
Manuel Pégourié-Gonnard | 10934de | 2013-12-13 12:54:09 +0100 | [diff] [blame] | 113 | * Comment if your system does not support the IPv6 socket interface |
| 114 | */ |
| 115 | #define POLARSSL_HAVE_IPV6 |
Paul Bakker | 747a83a | 2014-02-01 22:50:07 +0100 | [diff] [blame] | 116 | |
| 117 | /** |
Paul Bakker | defc0ca | 2014-02-04 17:30:24 +0100 | [diff] [blame] | 118 | * \def POLARSSL_PLATFORM_MEMORY |
| 119 | * |
| 120 | * Enable the memory allocation layer. |
| 121 | * |
| 122 | * By default PolarSSL uses the system-provided malloc() and free(). |
| 123 | * This allows different allocators (self-implemented or provided) to be |
| 124 | * provided to the platform abstraction layer. |
| 125 | * |
| 126 | * Enabling POLARSSL_PLATFORM_MEMORY will provide "platform_set_malloc_free()" |
| 127 | * to allow you to set an alternative malloc() and free() function pointer. |
| 128 | * |
| 129 | * Requires: POLARSSL_PLATFORM_C |
| 130 | * |
| 131 | * Enable this layer to allow use of alternative memory allocators. |
| 132 | */ |
| 133 | //#define POLARSSL_PLATFORM_MEMORY |
| 134 | |
| 135 | /** |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 136 | * \def POLARSSL_PLATFORM_NO_STD_FUNCTIONS |
| 137 | * |
| 138 | * Do not assign standard functions in the platform layer (e.g. malloc() to |
| 139 | * POLARSSL_PLATFORM_STD_MALLOC and printf() to POLARSSL_PLATFORM_STD_PRINTF) |
| 140 | * |
| 141 | * This makes sure there are no linking errors on platforms that do not support |
| 142 | * these functions. You will HAVE to provide alternatives, either at runtime |
| 143 | * via the platform_set_xxx() functions or at compile time by setting |
| 144 | * the POLARSSL_PLATFORM_STD_XXX defines. |
| 145 | * |
| 146 | * Requires: POLARSSL_PLATFORM_C |
| 147 | * |
| 148 | * Uncomment to prevent default assignment of standard functions in the |
| 149 | * platform layer. |
| 150 | */ |
| 151 | //#define POLARSSL_PLATFORM_NO_STD_FUNCTIONS |
| 152 | |
| 153 | /** |
Paul Bakker | 747a83a | 2014-02-01 22:50:07 +0100 | [diff] [blame] | 154 | * \def POLARSSL_PLATFORM_XXX_ALT |
| 155 | * |
| 156 | * Uncomment a macro to let PolarSSL support the function in the platform |
| 157 | * abstraction layer. |
| 158 | * |
| 159 | * Example: In case you uncomment POLARSSL_PLATFORM_PRINTF_ALT, PolarSSL will |
| 160 | * provide a function "platform_set_printf()" that allows you to set an |
| 161 | * alternative printf function pointer. |
| 162 | * |
| 163 | * All these define require POLARSSL_PLATFORM_C to be defined! |
| 164 | * |
| 165 | * Uncomment a macro to enable alternate implementation of specific base |
| 166 | * platform function |
| 167 | */ |
| 168 | //#define POLARSSL_PLATFORM_PRINTF_ALT |
| 169 | //#define POLARSSL_PLATFORM_FPRINTF_ALT |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 170 | /* \} name SECTION: System support */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 171 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 172 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 173 | * \name SECTION: PolarSSL feature support |
| 174 | * |
| 175 | * This section sets support for features that are or are not needed |
| 176 | * within the modules that are enabled. |
| 177 | * \{ |
| 178 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 179 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 180 | /** |
Paul Bakker | f2561b3 | 2014-02-06 15:11:55 +0100 | [diff] [blame] | 181 | * \def POLARSSL_TIMING_ALT |
| 182 | * |
| 183 | * Uncomment to provide your own alternate implementation for hardclock(), |
| 184 | * get_timer(), set_alarm() and m_sleep(). |
| 185 | * |
| 186 | * Only works if you have POLARSSL_TIMING_C enabled. |
| 187 | * |
| 188 | * You will need to provide a header "timing_alt.h" and an implementation at |
| 189 | * compile time. |
| 190 | */ |
| 191 | //#define POLARSSL_TIMING_ALT |
| 192 | |
| 193 | /** |
Paul Bakker | 90995b5 | 2013-06-24 19:20:35 +0200 | [diff] [blame] | 194 | * \def POLARSSL_XXX_ALT |
| 195 | * |
| 196 | * Uncomment a macro to let PolarSSL use your alternate core implementation of |
| 197 | * a symmetric or hash algorithm (e.g. platform specific assembly optimized |
| 198 | * implementations). Keep in mind that the function prototypes should remain |
| 199 | * the same. |
| 200 | * |
| 201 | * Example: In case you uncomment POLARSSL_AES_ALT, PolarSSL will no longer |
| 202 | * provide the "struct aes_context" definition and omit the base function |
| 203 | * declarations and implementations. "aes_alt.h" will be included from |
| 204 | * "aes.h" to include the new function definitions. |
| 205 | * |
| 206 | * Uncomment a macro to enable alternate implementation for core algorithm |
| 207 | * functions |
Paul Bakker | 90995b5 | 2013-06-24 19:20:35 +0200 | [diff] [blame] | 208 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 209 | //#define POLARSSL_AES_ALT |
| 210 | //#define POLARSSL_ARC4_ALT |
| 211 | //#define POLARSSL_BLOWFISH_ALT |
| 212 | //#define POLARSSL_CAMELLIA_ALT |
| 213 | //#define POLARSSL_DES_ALT |
| 214 | //#define POLARSSL_XTEA_ALT |
| 215 | //#define POLARSSL_MD2_ALT |
| 216 | //#define POLARSSL_MD4_ALT |
| 217 | //#define POLARSSL_MD5_ALT |
Paul Bakker | 9f4c162 | 2014-01-22 14:14:26 +0100 | [diff] [blame] | 218 | //#define POLARSSL_RIPEMD160_ALT |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 219 | //#define POLARSSL_SHA1_ALT |
| 220 | //#define POLARSSL_SHA256_ALT |
| 221 | //#define POLARSSL_SHA512_ALT |
Paul Bakker | 90995b5 | 2013-06-24 19:20:35 +0200 | [diff] [blame] | 222 | |
| 223 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 224 | * \def POLARSSL_AES_ROM_TABLES |
| 225 | * |
| 226 | * Store the AES tables in ROM. |
| 227 | * |
| 228 | * Uncomment this macro to store the AES tables in ROM. |
| 229 | * |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 230 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 231 | //#define POLARSSL_AES_ROM_TABLES |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 232 | |
| 233 | /** |
Manuel Pégourié-Gonnard | f7dc378 | 2013-09-13 14:10:44 +0200 | [diff] [blame] | 234 | * \def POLARSSL_CIPHER_MODE_CBC |
| 235 | * |
| 236 | * Enable Cipher Block Chaining mode (CBC) for symmetric ciphers. |
| 237 | */ |
| 238 | #define POLARSSL_CIPHER_MODE_CBC |
| 239 | |
| 240 | /** |
Paul Bakker | b6ecaf5 | 2011-04-19 14:29:23 +0000 | [diff] [blame] | 241 | * \def POLARSSL_CIPHER_MODE_CFB |
| 242 | * |
| 243 | * Enable Cipher Feedback mode (CFB) for symmetric ciphers. |
| 244 | */ |
| 245 | #define POLARSSL_CIPHER_MODE_CFB |
| 246 | |
| 247 | /** |
| 248 | * \def POLARSSL_CIPHER_MODE_CTR |
| 249 | * |
| 250 | * Enable Counter Block Cipher mode (CTR) for symmetric ciphers. |
| 251 | */ |
| 252 | #define POLARSSL_CIPHER_MODE_CTR |
| 253 | |
| 254 | /** |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 255 | * \def POLARSSL_CIPHER_NULL_CIPHER |
| 256 | * |
| 257 | * Enable NULL cipher. |
| 258 | * Warning: Only do so when you know what you are doing. This allows for |
| 259 | * encryption or channels without any security! |
| 260 | * |
| 261 | * Requires POLARSSL_ENABLE_WEAK_CIPHERSUITES as well to enable |
| 262 | * the following ciphersuites: |
Manuel Pégourié-Gonnard | 25781b2 | 2013-12-11 16:17:10 +0100 | [diff] [blame] | 263 | * TLS_ECDH_ECDSA_WITH_NULL_SHA |
| 264 | * TLS_ECDH_RSA_WITH_NULL_SHA |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 265 | * TLS_ECDHE_ECDSA_WITH_NULL_SHA |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 266 | * TLS_ECDHE_RSA_WITH_NULL_SHA |
Manuel Pégourié-Gonnard | 225d6aa | 2013-10-11 19:07:56 +0200 | [diff] [blame] | 267 | * TLS_ECDHE_PSK_WITH_NULL_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 268 | * TLS_ECDHE_PSK_WITH_NULL_SHA256 |
| 269 | * TLS_ECDHE_PSK_WITH_NULL_SHA |
| 270 | * TLS_DHE_PSK_WITH_NULL_SHA384 |
| 271 | * TLS_DHE_PSK_WITH_NULL_SHA256 |
| 272 | * TLS_DHE_PSK_WITH_NULL_SHA |
| 273 | * TLS_RSA_WITH_NULL_SHA256 |
| 274 | * TLS_RSA_WITH_NULL_SHA |
| 275 | * TLS_RSA_WITH_NULL_MD5 |
| 276 | * TLS_RSA_PSK_WITH_NULL_SHA384 |
| 277 | * TLS_RSA_PSK_WITH_NULL_SHA256 |
| 278 | * TLS_RSA_PSK_WITH_NULL_SHA |
| 279 | * TLS_PSK_WITH_NULL_SHA384 |
| 280 | * TLS_PSK_WITH_NULL_SHA256 |
| 281 | * TLS_PSK_WITH_NULL_SHA |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 282 | * |
| 283 | * Uncomment this macro to enable the NULL cipher and ciphersuites |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 284 | */ |
Paul Bakker | 03b6a46 | 2014-04-17 16:22:31 +0200 | [diff] [blame] | 285 | //#define POLARSSL_CIPHER_NULL_CIPHER |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 286 | |
| 287 | /** |
Paul Bakker | 48e93c8 | 2013-08-14 12:21:18 +0200 | [diff] [blame] | 288 | * \def POLARSSL_CIPHER_PADDING_XXX |
| 289 | * |
| 290 | * Uncomment or comment macros to add support for specific padding modes |
| 291 | * in the cipher layer with cipher modes that support padding (e.g. CBC) |
| 292 | * |
| 293 | * If you disable all padding modes, only full blocks can be used with CBC. |
| 294 | * |
| 295 | * Enable padding modes in the cipher layer. |
| 296 | */ |
| 297 | #define POLARSSL_CIPHER_PADDING_PKCS7 |
| 298 | #define POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS |
| 299 | #define POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN |
| 300 | #define POLARSSL_CIPHER_PADDING_ZEROS |
| 301 | |
| 302 | /** |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 303 | * \def POLARSSL_ENABLE_WEAK_CIPHERSUITES |
| 304 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 305 | * Enable weak ciphersuites in SSL / TLS. |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 306 | * 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] | 307 | * channels with virtually no security at all! |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 308 | * |
| 309 | * This enables the following ciphersuites: |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 310 | * TLS_RSA_WITH_DES_CBC_SHA |
| 311 | * TLS_DHE_RSA_WITH_DES_CBC_SHA |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 312 | * |
| 313 | * Uncomment this macro to enable weak ciphersuites |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 314 | */ |
Paul Bakker | 03b6a46 | 2014-04-17 16:22:31 +0200 | [diff] [blame] | 315 | //#define POLARSSL_ENABLE_WEAK_CIPHERSUITES |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 316 | |
| 317 | /** |
Paul Bakker | 5dc6b5f | 2013-06-29 23:26:34 +0200 | [diff] [blame] | 318 | * \def POLARSSL_ECP_XXXX_ENABLED |
| 319 | * |
| 320 | * Enables specific curves within the Elliptic Curve module. |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 321 | * By default all supported curves are enabled. |
Paul Bakker | 5dc6b5f | 2013-06-29 23:26:34 +0200 | [diff] [blame] | 322 | * |
| 323 | * Comment macros to disable the curve and functions for it |
| 324 | */ |
| 325 | #define POLARSSL_ECP_DP_SECP192R1_ENABLED |
| 326 | #define POLARSSL_ECP_DP_SECP224R1_ENABLED |
| 327 | #define POLARSSL_ECP_DP_SECP256R1_ENABLED |
| 328 | #define POLARSSL_ECP_DP_SECP384R1_ENABLED |
| 329 | #define POLARSSL_ECP_DP_SECP521R1_ENABLED |
Manuel Pégourié-Gonnard | ea499a7 | 2014-01-11 15:58:47 +0100 | [diff] [blame] | 330 | #define POLARSSL_ECP_DP_SECP192K1_ENABLED |
Manuel Pégourié-Gonnard | 18e3ec9 | 2014-01-11 15:22:07 +0100 | [diff] [blame] | 331 | #define POLARSSL_ECP_DP_SECP224K1_ENABLED |
Manuel Pégourié-Gonnard | f51c8fc | 2014-01-10 18:17:18 +0100 | [diff] [blame] | 332 | #define POLARSSL_ECP_DP_SECP256K1_ENABLED |
Manuel Pégourié-Gonnard | 8195c1a | 2013-10-07 19:40:41 +0200 | [diff] [blame] | 333 | #define POLARSSL_ECP_DP_BP256R1_ENABLED |
| 334 | #define POLARSSL_ECP_DP_BP384R1_ENABLED |
| 335 | #define POLARSSL_ECP_DP_BP512R1_ENABLED |
Manuel Pégourié-Gonnard | 6615366 | 2013-12-03 14:12:26 +0100 | [diff] [blame] | 336 | //#define POLARSSL_ECP_DP_M221_ENABLED // Not implemented yet! |
| 337 | #define POLARSSL_ECP_DP_M255_ENABLED |
| 338 | //#define POLARSSL_ECP_DP_M383_ENABLED // Not implemented yet! |
| 339 | //#define POLARSSL_ECP_DP_M511_ENABLED // Not implemented yet! |
Paul Bakker | 5dc6b5f | 2013-06-29 23:26:34 +0200 | [diff] [blame] | 340 | |
| 341 | /** |
Manuel Pégourié-Gonnard | c04c530 | 2013-10-23 16:11:52 +0200 | [diff] [blame] | 342 | * \def POLARSSL_ECP_NIST_OPTIM |
| 343 | * |
| 344 | * Enable specific 'modulo p' routines for each NIST prime. |
| 345 | * Depending on the prime and architecture, makes operations 4 to 8 times |
| 346 | * faster on the corresponding curve. |
| 347 | * |
| 348 | * Comment this macro to disable NIST curves optimisation. |
| 349 | */ |
| 350 | #define POLARSSL_ECP_NIST_OPTIM |
| 351 | |
| 352 | /** |
Manuel Pégourié-Gonnard | 461d416 | 2014-01-06 10:16:28 +0100 | [diff] [blame] | 353 | * \def POLARSSL_ECDSA_DETERMINISTIC |
| 354 | * |
| 355 | * Enable deterministic ECDSA (RFC 6979). |
| 356 | * Standard ECDSA is "fragile" in the sense that lack of entropy when signing |
| 357 | * may result in a compromise of the long-term signing key. This is avoided by |
| 358 | * the deterministic variant. |
| 359 | * |
Manuel Pégourié-Gonnard | 7845fc0 | 2014-01-27 14:24:03 +0100 | [diff] [blame] | 360 | * Requires: POLARSSL_HMAC_DRBG_C |
Manuel Pégourié-Gonnard | 5b1a573 | 2014-01-07 16:46:17 +0100 | [diff] [blame] | 361 | * |
Manuel Pégourié-Gonnard | 461d416 | 2014-01-06 10:16:28 +0100 | [diff] [blame] | 362 | * Comment this macro to disable deterministic ECDSA. |
| 363 | */ |
| 364 | #define POLARSSL_ECDSA_DETERMINISTIC |
| 365 | |
| 366 | /** |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 367 | * \def POLARSSL_KEY_EXCHANGE_PSK_ENABLED |
| 368 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 369 | * Enable the PSK based ciphersuite modes in SSL / TLS. |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 370 | * |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 371 | * This enables the following ciphersuites (if other requisites are |
| 372 | * enabled as well): |
Paul Bakker | 45bda90 | 2013-04-19 22:28:21 +0200 | [diff] [blame] | 373 | * TLS_PSK_WITH_AES_256_GCM_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 374 | * TLS_PSK_WITH_AES_256_CBC_SHA384 |
| 375 | * TLS_PSK_WITH_AES_256_CBC_SHA |
| 376 | * TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384 |
| 377 | * TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384 |
| 378 | * TLS_PSK_WITH_AES_128_GCM_SHA256 |
| 379 | * TLS_PSK_WITH_AES_128_CBC_SHA256 |
| 380 | * TLS_PSK_WITH_AES_128_CBC_SHA |
| 381 | * TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256 |
| 382 | * TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256 |
| 383 | * TLS_PSK_WITH_3DES_EDE_CBC_SHA |
| 384 | * TLS_PSK_WITH_RC4_128_SHA |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 385 | */ |
| 386 | #define POLARSSL_KEY_EXCHANGE_PSK_ENABLED |
| 387 | |
| 388 | /** |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 389 | * \def POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED |
| 390 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 391 | * Enable the DHE-PSK based ciphersuite modes in SSL / TLS. |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 392 | * |
| 393 | * Requires: POLARSSL_DHM_C |
| 394 | * |
| 395 | * This enables the following ciphersuites (if other requisites are |
| 396 | * enabled as well): |
Paul Bakker | 45bda90 | 2013-04-19 22:28:21 +0200 | [diff] [blame] | 397 | * TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 398 | * TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 |
| 399 | * TLS_DHE_PSK_WITH_AES_256_CBC_SHA |
| 400 | * TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384 |
| 401 | * TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 |
| 402 | * TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 |
| 403 | * TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 |
| 404 | * TLS_DHE_PSK_WITH_AES_128_CBC_SHA |
| 405 | * TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256 |
| 406 | * TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 |
| 407 | * TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA |
| 408 | * TLS_DHE_PSK_WITH_RC4_128_SHA |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 409 | */ |
Paul Bakker | 48f7a5d | 2013-04-19 14:30:58 +0200 | [diff] [blame] | 410 | #define POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 411 | |
| 412 | /** |
Manuel Pégourié-Gonnard | 3ce3bbd | 2013-10-11 16:53:50 +0200 | [diff] [blame] | 413 | * \def POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED |
| 414 | * |
| 415 | * Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS. |
| 416 | * |
| 417 | * Requires: POLARSSL_ECDH_C |
| 418 | * |
| 419 | * This enables the following ciphersuites (if other requisites are |
| 420 | * enabled as well): |
Manuel Pégourié-Gonnard | 225d6aa | 2013-10-11 19:07:56 +0200 | [diff] [blame] | 421 | * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 422 | * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA |
Manuel Pégourié-Gonnard | 225d6aa | 2013-10-11 19:07:56 +0200 | [diff] [blame] | 423 | * TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 424 | * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 |
| 425 | * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA |
| 426 | * TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 |
| 427 | * TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA |
| 428 | * TLS_ECDHE_PSK_WITH_RC4_128_SHA |
Manuel Pégourié-Gonnard | 3ce3bbd | 2013-10-11 16:53:50 +0200 | [diff] [blame] | 429 | */ |
| 430 | #define POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED |
| 431 | |
| 432 | /** |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 433 | * \def POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED |
| 434 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 435 | * Enable the RSA-PSK based ciphersuite modes in SSL / TLS. |
Manuel Pégourié-Gonnard | 0fae60b | 2013-10-14 17:39:48 +0200 | [diff] [blame] | 436 | * |
Manuel Pégourié-Gonnard | 1032c1d | 2013-09-18 17:18:34 +0200 | [diff] [blame] | 437 | * Requires: POLARSSL_RSA_C, POLARSSL_PKCS1_V15, |
Manuel Pégourié-Gonnard | cbf3ef3 | 2013-09-23 12:20:02 +0200 | [diff] [blame] | 438 | * POLARSSL_X509_CRT_PARSE_C |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 439 | * |
| 440 | * This enables the following ciphersuites (if other requisites are |
| 441 | * enabled as well): |
Paul Bakker | 45bda90 | 2013-04-19 22:28:21 +0200 | [diff] [blame] | 442 | * TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 443 | * TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 |
| 444 | * TLS_RSA_PSK_WITH_AES_256_CBC_SHA |
| 445 | * TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384 |
| 446 | * TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 |
| 447 | * TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 |
| 448 | * TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 |
| 449 | * TLS_RSA_PSK_WITH_AES_128_CBC_SHA |
| 450 | * TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256 |
| 451 | * TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 |
| 452 | * TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA |
| 453 | * TLS_RSA_PSK_WITH_RC4_128_SHA |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 454 | */ |
Manuel Pégourié-Gonnard | 0fae60b | 2013-10-14 17:39:48 +0200 | [diff] [blame] | 455 | #define POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 456 | |
| 457 | /** |
| 458 | * \def POLARSSL_KEY_EXCHANGE_RSA_ENABLED |
| 459 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 460 | * Enable the RSA-only based ciphersuite modes in SSL / TLS. |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 461 | * |
Manuel Pégourié-Gonnard | 1032c1d | 2013-09-18 17:18:34 +0200 | [diff] [blame] | 462 | * Requires: POLARSSL_RSA_C, POLARSSL_PKCS1_V15, |
Manuel Pégourié-Gonnard | cbf3ef3 | 2013-09-23 12:20:02 +0200 | [diff] [blame] | 463 | * POLARSSL_X509_CRT_PARSE_C |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 464 | * |
| 465 | * This enables the following ciphersuites (if other requisites are |
| 466 | * enabled as well): |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 467 | * TLS_RSA_WITH_AES_256_GCM_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 468 | * TLS_RSA_WITH_AES_256_CBC_SHA256 |
| 469 | * TLS_RSA_WITH_AES_256_CBC_SHA |
| 470 | * TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384 |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 471 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 472 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 473 | * TLS_RSA_WITH_AES_128_GCM_SHA256 |
| 474 | * TLS_RSA_WITH_AES_128_CBC_SHA256 |
| 475 | * TLS_RSA_WITH_AES_128_CBC_SHA |
| 476 | * TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 477 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 478 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 479 | * TLS_RSA_WITH_3DES_EDE_CBC_SHA |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 480 | * TLS_RSA_WITH_RC4_128_SHA |
| 481 | * TLS_RSA_WITH_RC4_128_MD5 |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 482 | */ |
| 483 | #define POLARSSL_KEY_EXCHANGE_RSA_ENABLED |
| 484 | |
| 485 | /** |
| 486 | * \def POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED |
| 487 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 488 | * Enable the DHE-RSA based ciphersuite modes in SSL / TLS. |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 489 | * |
Manuel Pégourié-Gonnard | 1032c1d | 2013-09-18 17:18:34 +0200 | [diff] [blame] | 490 | * Requires: POLARSSL_DHM_C, POLARSSL_RSA_C, POLARSSL_PKCS1_V15, |
Manuel Pégourié-Gonnard | cbf3ef3 | 2013-09-23 12:20:02 +0200 | [diff] [blame] | 491 | * POLARSSL_X509_CRT_PARSE_C |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 492 | * |
| 493 | * This enables the following ciphersuites (if other requisites are |
| 494 | * enabled as well): |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 495 | * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 496 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 497 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA |
| 498 | * TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384 |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 499 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 500 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 501 | * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 |
| 502 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 |
| 503 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA |
| 504 | * TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 505 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 506 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 507 | * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA |
| 508 | */ |
| 509 | #define POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED |
| 510 | |
| 511 | /** |
| 512 | * \def POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED |
| 513 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 514 | * Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS. |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 515 | * |
Manuel Pégourié-Gonnard | 1032c1d | 2013-09-18 17:18:34 +0200 | [diff] [blame] | 516 | * Requires: POLARSSL_ECDH_C, POLARSSL_RSA_C, POLARSSL_PKCS1_V15, |
Manuel Pégourié-Gonnard | cbf3ef3 | 2013-09-23 12:20:02 +0200 | [diff] [blame] | 517 | * POLARSSL_X509_CRT_PARSE_C |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 518 | * |
| 519 | * This enables the following ciphersuites (if other requisites are |
| 520 | * enabled as well): |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 521 | * TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 522 | * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 |
| 523 | * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA |
| 524 | * TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384 |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 525 | * TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 526 | * TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 |
| 527 | * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 |
| 528 | * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA |
| 529 | * TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 530 | * TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 531 | * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA |
| 532 | * TLS_ECDHE_RSA_WITH_RC4_128_SHA |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 533 | */ |
| 534 | #define POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED |
| 535 | |
| 536 | /** |
Manuel Pégourié-Gonnard | 32ea60a | 2013-08-17 17:39:04 +0200 | [diff] [blame] | 537 | * \def POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED |
| 538 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 539 | * Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS. |
Manuel Pégourié-Gonnard | 32ea60a | 2013-08-17 17:39:04 +0200 | [diff] [blame] | 540 | * |
Manuel Pégourié-Gonnard | 1032c1d | 2013-09-18 17:18:34 +0200 | [diff] [blame] | 541 | * Requires: POLARSSL_ECDH_C, POLARSSL_ECDSA_C, POLARSSL_X509_CRT_PARSE_C, |
Manuel Pégourié-Gonnard | 32ea60a | 2013-08-17 17:39:04 +0200 | [diff] [blame] | 542 | * |
| 543 | * This enables the following ciphersuites (if other requisites are |
| 544 | * enabled as well): |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 545 | * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 |
| 546 | * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 |
| 547 | * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA |
| 548 | * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 |
| 549 | * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 |
| 550 | * TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 |
| 551 | * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 |
| 552 | * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA |
| 553 | * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 554 | * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 555 | * TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA |
| 556 | * TLS_ECDHE_ECDSA_WITH_RC4_128_SHA |
Manuel Pégourié-Gonnard | 32ea60a | 2013-08-17 17:39:04 +0200 | [diff] [blame] | 557 | */ |
| 558 | #define POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED |
| 559 | |
| 560 | /** |
Manuel Pégourié-Gonnard | 25781b2 | 2013-12-11 16:17:10 +0100 | [diff] [blame] | 561 | * \def POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED |
| 562 | * |
| 563 | * Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS. |
| 564 | * |
| 565 | * Requires: POLARSSL_ECDH_C, POLARSSL_X509_CRT_PARSE_C |
| 566 | * |
| 567 | * This enables the following ciphersuites (if other requisites are |
| 568 | * enabled as well): |
| 569 | * TLS_ECDH_ECDSA_WITH_RC4_128_SHA |
| 570 | * TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA |
| 571 | * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA |
| 572 | * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA |
| 573 | * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 |
| 574 | * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 |
| 575 | * TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 |
| 576 | * TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 |
| 577 | * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 578 | * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 |
| 579 | * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 580 | * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 |
| 581 | */ |
| 582 | #define POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED |
| 583 | |
| 584 | /** |
| 585 | * \def POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED |
| 586 | * |
| 587 | * Enable the ECDH-RSA based ciphersuite modes in SSL / TLS. |
| 588 | * |
| 589 | * Requires: POLARSSL_ECDH_C, POLARSSL_X509_CRT_PARSE_C |
| 590 | * |
| 591 | * This enables the following ciphersuites (if other requisites are |
| 592 | * enabled as well): |
| 593 | * TLS_ECDH_RSA_WITH_RC4_128_SHA |
| 594 | * TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA |
| 595 | * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA |
| 596 | * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA |
| 597 | * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 |
| 598 | * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 |
| 599 | * TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 |
| 600 | * TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 |
| 601 | * TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 602 | * TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 |
| 603 | * TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 604 | * TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384 |
| 605 | */ |
| 606 | #define POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED |
| 607 | |
| 608 | /** |
Manuel Pégourié-Gonnard | 6fac351 | 2014-03-19 16:39:52 +0100 | [diff] [blame] | 609 | * \def POLARSSL_PK_PARSE_EC_EXTENDED |
| 610 | * |
| 611 | * Enhance support for reading EC keys using variants of SEC1 not allowed by |
| 612 | * RFC 5915 and RFC 5480. |
| 613 | * |
| 614 | * Currently this means parsing the SpecifiedECDomain choice of EC |
| 615 | * parameters (only known groups are supported, not arbitrary domains, to |
| 616 | * avoid validation issues). |
| 617 | * |
| 618 | * Disable if you only need to support RFC 5915 + 5480 key formats. |
| 619 | */ |
| 620 | #define POLARSSL_PK_PARSE_EC_EXTENDED |
| 621 | |
| 622 | /** |
Paul Bakker | e2ab84f | 2013-06-29 18:24:32 +0200 | [diff] [blame] | 623 | * \def POLARSSL_ERROR_STRERROR_BC |
| 624 | * |
| 625 | * Make available the backward compatible error_strerror() next to the |
| 626 | * current polarssl_strerror(). |
| 627 | * |
| 628 | * Disable if you run into name conflicts and want to really remove the |
| 629 | * error_strerror() |
| 630 | */ |
| 631 | #define POLARSSL_ERROR_STRERROR_BC |
| 632 | |
| 633 | /** |
Paul Bakker | 8fe40dc | 2013-02-02 12:43:08 +0100 | [diff] [blame] | 634 | * \def POLARSSL_ERROR_STRERROR_DUMMY |
| 635 | * |
Paul Bakker | eba3ccf | 2013-09-09 15:55:12 +0200 | [diff] [blame] | 636 | * Enable a dummy error function to make use of polarssl_strerror() in |
Paul Bakker | 8fe40dc | 2013-02-02 12:43:08 +0100 | [diff] [blame] | 637 | * third party libraries easier. |
| 638 | * |
| 639 | * Disable if you run into name conflicts and want to really remove the |
Paul Bakker | eba3ccf | 2013-09-09 15:55:12 +0200 | [diff] [blame] | 640 | * polarssl_strerror() |
Paul Bakker | 8fe40dc | 2013-02-02 12:43:08 +0100 | [diff] [blame] | 641 | */ |
| 642 | #define POLARSSL_ERROR_STRERROR_DUMMY |
| 643 | |
| 644 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 645 | * \def POLARSSL_GENPRIME |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 646 | * |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 647 | * Enable the prime-number generation code. |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 648 | * |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 649 | * Requires: POLARSSL_BIGNUM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 650 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 651 | #define POLARSSL_GENPRIME |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 652 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 653 | /** |
Paul Bakker | 335db3f | 2011-04-25 15:28:35 +0000 | [diff] [blame] | 654 | * \def POLARSSL_FS_IO |
| 655 | * |
| 656 | * Enable functions that use the filesystem. |
| 657 | */ |
| 658 | #define POLARSSL_FS_IO |
| 659 | |
| 660 | /** |
Paul Bakker | 43655f4 | 2011-12-15 20:11:16 +0000 | [diff] [blame] | 661 | * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES |
| 662 | * |
| 663 | * Do not add default entropy sources. These are the platform specific, |
| 664 | * hardclock and HAVEGE based poll functions. |
| 665 | * |
Shuo Chen | 95a0d11 | 2014-04-04 21:04:40 -0700 | [diff] [blame] | 666 | * This is useful to have more control over the added entropy sources in an |
Paul Bakker | 43655f4 | 2011-12-15 20:11:16 +0000 | [diff] [blame] | 667 | * application. |
| 668 | * |
| 669 | * Uncomment this macro to prevent loading of default entropy functions. |
Paul Bakker | 43655f4 | 2011-12-15 20:11:16 +0000 | [diff] [blame] | 670 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 671 | //#define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES |
Paul Bakker | 43655f4 | 2011-12-15 20:11:16 +0000 | [diff] [blame] | 672 | |
| 673 | /** |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 674 | * \def POLARSSL_NO_PLATFORM_ENTROPY |
| 675 | * |
| 676 | * Do not use built-in platform entropy functions. |
| 677 | * This is useful if your platform does not support |
| 678 | * standards like the /dev/urandom or Windows CryptoAPI. |
| 679 | * |
| 680 | * Uncomment this macro to disable the built-in platform entropy functions. |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 681 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 682 | //#define POLARSSL_NO_PLATFORM_ENTROPY |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 683 | |
| 684 | /** |
Paul Bakker | 2ceda57 | 2014-02-06 15:55:25 +0100 | [diff] [blame] | 685 | * \def POLARSSL_ENTROPY_FORCE_SHA256 |
| 686 | * |
| 687 | * Force the entropy accumulator to use a SHA-256 accumulator instead of the |
| 688 | * default SHA-512 based one (if both are available). |
| 689 | * |
| 690 | * Requires: POLARSSL_SHA256_C |
| 691 | * |
| 692 | * On 32-bit systems SHA-256 can be much faster than SHA-512. Use this option |
| 693 | * if you have performance concerns. |
| 694 | * |
| 695 | * This option is only useful if both POLARSSL_SHA256_C and |
| 696 | * POLARSSL_SHA512_C are defined. Otherwise the available hash module is used. |
| 697 | */ |
| 698 | //#define POLARSSL_ENTROPY_FORCE_SHA256 |
| 699 | |
| 700 | /** |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 701 | * \def POLARSSL_MEMORY_DEBUG |
| 702 | * |
| 703 | * Enable debugging of buffer allocator memory issues. Automatically prints |
| 704 | * (to stderr) all (fatal) messages on memory allocation issues. Enables |
| 705 | * function for 'debug output' of allocated memory. |
| 706 | * |
| 707 | * Requires: POLARSSL_MEMORY_BUFFER_ALLOC_C |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 708 | * |
| 709 | * Uncomment this macro to let the buffer allocator print out error messages. |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 710 | */ |
| 711 | //#define POLARSSL_MEMORY_DEBUG |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 712 | |
| 713 | /** |
| 714 | * \def POLARSSL_MEMORY_BACKTRACE |
| 715 | * |
| 716 | * Include backtrace information with each allocated block. |
| 717 | * |
| 718 | * Requires: POLARSSL_MEMORY_BUFFER_ALLOC_C |
| 719 | * GLIBC-compatible backtrace() an backtrace_symbols() support |
| 720 | * |
| 721 | * Uncomment this macro to include backtrace information |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 722 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 723 | //#define POLARSSL_MEMORY_BACKTRACE |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 724 | |
| 725 | /** |
Paul Bakker | 48377d9 | 2013-08-30 12:06:24 +0200 | [diff] [blame] | 726 | * \def POLARSSL_PKCS1_V15 |
| 727 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 728 | * Enable support for PKCS#1 v1.5 encoding. |
| 729 | * |
Paul Bakker | 48377d9 | 2013-08-30 12:06:24 +0200 | [diff] [blame] | 730 | * Requires: POLARSSL_RSA_C |
| 731 | * |
Paul Bakker | 48377d9 | 2013-08-30 12:06:24 +0200 | [diff] [blame] | 732 | * This enables support for PKCS#1 v1.5 operations. |
| 733 | */ |
| 734 | #define POLARSSL_PKCS1_V15 |
| 735 | |
| 736 | /** |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 737 | * \def POLARSSL_PKCS1_V21 |
| 738 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 739 | * Enable support for PKCS#1 v2.1 encoding. |
| 740 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 741 | * Requires: POLARSSL_MD_C, POLARSSL_RSA_C |
| 742 | * |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 743 | * This enables support for RSAES-OAEP and RSASSA-PSS operations. |
| 744 | */ |
| 745 | #define POLARSSL_PKCS1_V21 |
| 746 | |
| 747 | /** |
Paul Bakker | 0216cc1 | 2011-03-26 13:40:23 +0000 | [diff] [blame] | 748 | * \def POLARSSL_RSA_NO_CRT |
| 749 | * |
| 750 | * Do not use the Chinese Remainder Theorem for the RSA private operation. |
| 751 | * |
| 752 | * Uncomment this macro to disable the use of CRT in RSA. |
| 753 | * |
Paul Bakker | 0216cc1 | 2011-03-26 13:40:23 +0000 | [diff] [blame] | 754 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 755 | //#define POLARSSL_RSA_NO_CRT |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 756 | |
| 757 | /** |
| 758 | * \def POLARSSL_SELF_TEST |
| 759 | * |
| 760 | * Enable the checkup functions (*_self_test). |
| 761 | */ |
| 762 | #define POLARSSL_SELF_TEST |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 763 | |
| 764 | /** |
Paul Bakker | 40865c8 | 2013-01-31 17:13:13 +0100 | [diff] [blame] | 765 | * \def POLARSSL_SSL_ALL_ALERT_MESSAGES |
| 766 | * |
| 767 | * Enable sending of alert messages in case of encountered errors as per RFC. |
| 768 | * If you choose not to send the alert messages, PolarSSL can still communicate |
| 769 | * with other servers, only debugging of failures is harder. |
| 770 | * |
| 771 | * The advantage of not sending alert messages, is that no information is given |
| 772 | * about reasons for failures thus preventing adversaries of gaining intel. |
| 773 | * |
| 774 | * Enable sending of all alert messages |
| 775 | */ |
| 776 | #define POLARSSL_SSL_ALERT_MESSAGES |
| 777 | |
| 778 | /** |
Paul Bakker | d66f070 | 2013-01-31 16:57:45 +0100 | [diff] [blame] | 779 | * \def POLARSSL_SSL_DEBUG_ALL |
| 780 | * |
| 781 | * Enable the debug messages in SSL module for all issues. |
| 782 | * Debug messages have been disabled in some places to prevent timing |
| 783 | * attacks due to (unbalanced) debugging function calls. |
| 784 | * |
| 785 | * If you need all error reporting you should enable this during debugging, |
| 786 | * but remove this for production servers that should log as well. |
| 787 | * |
| 788 | * Uncomment this macro to report all debug messages on errors introducing |
| 789 | * a timing side-channel. |
| 790 | * |
Paul Bakker | d66f070 | 2013-01-31 16:57:45 +0100 | [diff] [blame] | 791 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 792 | //#define POLARSSL_SSL_DEBUG_ALL |
Paul Bakker | d66f070 | 2013-01-31 16:57:45 +0100 | [diff] [blame] | 793 | |
| 794 | /** |
Paul Bakker | 05ef835 | 2012-05-08 09:17:57 +0000 | [diff] [blame] | 795 | * \def POLARSSL_SSL_HW_RECORD_ACCEL |
| 796 | * |
| 797 | * Enable hooking functions in SSL module for hardware acceleration of |
| 798 | * individual records. |
| 799 | * |
| 800 | * Uncomment this macro to enable hooking functions. |
Paul Bakker | 05ef835 | 2012-05-08 09:17:57 +0000 | [diff] [blame] | 801 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 802 | //#define POLARSSL_SSL_HW_RECORD_ACCEL |
Paul Bakker | 05ef835 | 2012-05-08 09:17:57 +0000 | [diff] [blame] | 803 | |
| 804 | /** |
Paul Bakker | 78a8c71 | 2013-03-06 17:01:52 +0100 | [diff] [blame] | 805 | * \def POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO |
| 806 | * |
| 807 | * Enable support for receiving and parsing SSLv2 Client Hello messages for the |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 808 | * SSL Server module (POLARSSL_SSL_SRV_C). |
Paul Bakker | 78a8c71 | 2013-03-06 17:01:52 +0100 | [diff] [blame] | 809 | * |
| 810 | * Comment this macro to disable support for SSLv2 Client Hello messages. |
| 811 | */ |
| 812 | #define POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO |
| 813 | |
| 814 | /** |
Manuel Pégourié-Gonnard | 1a9f2c7 | 2013-11-30 18:30:06 +0100 | [diff] [blame] | 815 | * \def POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE |
| 816 | * |
| 817 | * Pick the ciphersuite according to the client's preferences rather than ours |
| 818 | * in the SSL Server module (POLARSSL_SSL_SRV_C). |
| 819 | * |
| 820 | * Uncomment this macro to respect client's ciphersuite order |
| 821 | */ |
| 822 | //#define POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE |
| 823 | |
| 824 | /** |
Paul Bakker | 05decb2 | 2013-08-15 13:33:48 +0200 | [diff] [blame] | 825 | * \def POLARSSL_SSL_MAX_FRAGMENT_LENGTH |
| 826 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 827 | * Enable support for RFC 6066 max_fragment_length extension in SSL. |
Paul Bakker | 05decb2 | 2013-08-15 13:33:48 +0200 | [diff] [blame] | 828 | * |
| 829 | * Comment this macro to disable support for the max_fragment_length extension |
| 830 | */ |
| 831 | #define POLARSSL_SSL_MAX_FRAGMENT_LENGTH |
| 832 | |
| 833 | /** |
Paul Bakker | d2f068e | 2013-08-27 21:19:20 +0200 | [diff] [blame] | 834 | * \def POLARSSL_SSL_PROTO_SSL3 |
| 835 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 836 | * Enable support for SSL 3.0. |
Paul Bakker | d2f068e | 2013-08-27 21:19:20 +0200 | [diff] [blame] | 837 | * |
| 838 | * Requires: POLARSSL_MD5_C |
| 839 | * POLARSSL_SHA1_C |
| 840 | * |
| 841 | * Comment this macro to disable support for SSL 3.0 |
| 842 | */ |
| 843 | #define POLARSSL_SSL_PROTO_SSL3 |
| 844 | |
| 845 | /** |
| 846 | * \def POLARSSL_SSL_PROTO_TLS1 |
| 847 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 848 | * Enable support for TLS 1.0. |
Paul Bakker | d2f068e | 2013-08-27 21:19:20 +0200 | [diff] [blame] | 849 | * |
| 850 | * Requires: POLARSSL_MD5_C |
| 851 | * POLARSSL_SHA1_C |
| 852 | * |
| 853 | * Comment this macro to disable support for TLS 1.0 |
| 854 | */ |
| 855 | #define POLARSSL_SSL_PROTO_TLS1 |
| 856 | |
| 857 | /** |
| 858 | * \def POLARSSL_SSL_PROTO_TLS1_1 |
| 859 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 860 | * Enable support for TLS 1.1. |
Paul Bakker | d2f068e | 2013-08-27 21:19:20 +0200 | [diff] [blame] | 861 | * |
| 862 | * Requires: POLARSSL_MD5_C |
| 863 | * POLARSSL_SHA1_C |
| 864 | * |
| 865 | * Comment this macro to disable support for TLS 1.1 |
| 866 | */ |
| 867 | #define POLARSSL_SSL_PROTO_TLS1_1 |
| 868 | |
| 869 | /** |
| 870 | * \def POLARSSL_SSL_PROTO_TLS1_2 |
| 871 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 872 | * Enable support for TLS 1.2. |
Paul Bakker | d2f068e | 2013-08-27 21:19:20 +0200 | [diff] [blame] | 873 | * |
Manuel Pégourié-Gonnard | 7c3291e | 2013-10-27 14:29:51 +0100 | [diff] [blame] | 874 | * Requires: POLARSSL_SHA1_C or POLARSSL_SHA256_C or POLARSSL_SHA512_C |
Paul Bakker | d2f068e | 2013-08-27 21:19:20 +0200 | [diff] [blame] | 875 | * (Depends on ciphersuites) |
| 876 | * |
| 877 | * Comment this macro to disable support for TLS 1.2 |
| 878 | */ |
| 879 | #define POLARSSL_SSL_PROTO_TLS1_2 |
| 880 | |
| 881 | /** |
Manuel Pégourié-Gonnard | 7e250d4 | 2014-04-04 16:08:41 +0200 | [diff] [blame] | 882 | * \def POLARSSL_SSL_ALPN |
| 883 | * |
| 884 | * Enable support for Application Layer Protocol Negotiation. |
| 885 | * draft-ietf-tls-applayerprotoneg-05 |
| 886 | * |
Paul Bakker | 27e36d3 | 2014-04-08 12:33:37 +0200 | [diff] [blame] | 887 | * Comment this macro to disable support for ALPN. |
Manuel Pégourié-Gonnard | 7e250d4 | 2014-04-04 16:08:41 +0200 | [diff] [blame] | 888 | */ |
Paul Bakker | 27e36d3 | 2014-04-08 12:33:37 +0200 | [diff] [blame] | 889 | #define POLARSSL_SSL_ALPN |
Manuel Pégourié-Gonnard | 7e250d4 | 2014-04-04 16:08:41 +0200 | [diff] [blame] | 890 | |
| 891 | /** |
Paul Bakker | a503a63 | 2013-08-14 13:48:06 +0200 | [diff] [blame] | 892 | * \def POLARSSL_SSL_SESSION_TICKETS |
| 893 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 894 | * Enable support for RFC 5077 session tickets in SSL. |
Paul Bakker | a503a63 | 2013-08-14 13:48:06 +0200 | [diff] [blame] | 895 | * |
| 896 | * Requires: POLARSSL_AES_C |
| 897 | * POLARSSL_SHA256_C |
Manuel Pégourié-Gonnard | 92cb1d3 | 2013-09-13 16:24:20 +0200 | [diff] [blame] | 898 | * POLARSSL_CIPHER_MODE_CBC |
Paul Bakker | a503a63 | 2013-08-14 13:48:06 +0200 | [diff] [blame] | 899 | * |
| 900 | * Comment this macro to disable support for SSL session tickets |
| 901 | */ |
| 902 | #define POLARSSL_SSL_SESSION_TICKETS |
| 903 | |
| 904 | /** |
Paul Bakker | 0be444a | 2013-08-27 21:55:01 +0200 | [diff] [blame] | 905 | * \def POLARSSL_SSL_SERVER_NAME_INDICATION |
| 906 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 907 | * Enable support for RFC 6066 server name indication (SNI) in SSL. |
Paul Bakker | 0be444a | 2013-08-27 21:55:01 +0200 | [diff] [blame] | 908 | * |
| 909 | * Comment this macro to disable support for server name indication in SSL |
| 910 | */ |
| 911 | #define POLARSSL_SSL_SERVER_NAME_INDICATION |
| 912 | |
| 913 | /** |
Paul Bakker | 1f2bc62 | 2013-08-15 13:45:55 +0200 | [diff] [blame] | 914 | * \def POLARSSL_SSL_TRUNCATED_HMAC |
| 915 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 916 | * Enable support for RFC 6066 truncated HMAC in SSL. |
Paul Bakker | 1f2bc62 | 2013-08-15 13:45:55 +0200 | [diff] [blame] | 917 | * |
| 918 | * Comment this macro to disable support for truncated HMAC in SSL |
| 919 | */ |
| 920 | #define POLARSSL_SSL_TRUNCATED_HMAC |
| 921 | |
| 922 | /** |
Manuel Pégourié-Gonnard | de05390 | 2014-02-04 13:58:39 +0100 | [diff] [blame] | 923 | * \def POLARSSL_SSL_SET_CURVES |
Manuel Pégourié-Gonnard | 5de2580 | 2014-02-03 15:56:49 +0100 | [diff] [blame] | 924 | * |
Manuel Pégourié-Gonnard | de05390 | 2014-02-04 13:58:39 +0100 | [diff] [blame] | 925 | * Enable ssl_set_curves(). |
Manuel Pégourié-Gonnard | 5de2580 | 2014-02-03 15:56:49 +0100 | [diff] [blame] | 926 | * |
| 927 | * This is disabled by default since it breaks binary compatibility with the |
| 928 | * 1.3.x line. If you choose to enable it, you will need to rebuild your |
| 929 | * application against the new header files, relinking will not be enough. |
| 930 | * It will be enabled by default, or no longer an option, in the 1.4 branch. |
| 931 | * |
Manuel Pégourié-Gonnard | de05390 | 2014-02-04 13:58:39 +0100 | [diff] [blame] | 932 | * Uncomment to make ssl_set_curves() available. |
Manuel Pégourié-Gonnard | 5de2580 | 2014-02-03 15:56:49 +0100 | [diff] [blame] | 933 | */ |
Manuel Pégourié-Gonnard | 7926570 | 2014-02-06 10:23:14 +0100 | [diff] [blame] | 934 | //#define POLARSSL_SSL_SET_CURVES |
Manuel Pégourié-Gonnard | 5de2580 | 2014-02-03 15:56:49 +0100 | [diff] [blame] | 935 | |
| 936 | /** |
Paul Bakker | 2466d93 | 2013-09-28 14:40:38 +0200 | [diff] [blame] | 937 | * \def POLARSSL_THREADING_ALT |
| 938 | * |
| 939 | * Provide your own alternate threading implementation. |
| 940 | * |
| 941 | * Requires: POLARSSL_THREADING_C |
| 942 | * |
| 943 | * Uncomment this to allow your own alternate threading implementation. |
Paul Bakker | 2466d93 | 2013-09-28 14:40:38 +0200 | [diff] [blame] | 944 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 945 | //#define POLARSSL_THREADING_ALT |
Paul Bakker | 2466d93 | 2013-09-28 14:40:38 +0200 | [diff] [blame] | 946 | |
| 947 | /** |
Paul Bakker | 2466d93 | 2013-09-28 14:40:38 +0200 | [diff] [blame] | 948 | * \def POLARSSL_THREADING_PTHREAD |
| 949 | * |
| 950 | * Enable the pthread wrapper layer for the threading layer. |
| 951 | * |
| 952 | * Requires: POLARSSL_THREADING_C |
| 953 | * |
| 954 | * Uncomment this to enable pthread mutexes. |
Paul Bakker | 2466d93 | 2013-09-28 14:40:38 +0200 | [diff] [blame] | 955 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 956 | //#define POLARSSL_THREADING_PTHREAD |
Paul Bakker | 2466d93 | 2013-09-28 14:40:38 +0200 | [diff] [blame] | 957 | |
| 958 | /** |
Paul Bakker | 0f90d7d | 2014-04-30 11:49:44 +0200 | [diff] [blame] | 959 | * \def POLARSSL_VERSION_FEATURES |
| 960 | * |
| 961 | * Allow run-time checking of compile-time enabled features. Thus allowing users |
| 962 | * to check at run-time if the library is for instance compiled with threading |
| 963 | * support via version_check_feature(). |
| 964 | * |
| 965 | * Requires: POLARSSL_VERSION_C |
| 966 | * |
| 967 | * Comment this to disable run-time checking and save ROM space |
| 968 | */ |
| 969 | #define POLARSSL_VERSION_FEATURES |
| 970 | |
| 971 | /** |
Paul Bakker | c27c4e2 | 2013-09-23 15:01:36 +0200 | [diff] [blame] | 972 | * \def POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3 |
| 973 | * |
| 974 | * If set, the X509 parser will not break-off when parsing an X509 certificate |
| 975 | * and encountering an extension in a v1 or v2 certificate. |
| 976 | * |
| 977 | * Uncomment to prevent an error. |
Paul Bakker | c27c4e2 | 2013-09-23 15:01:36 +0200 | [diff] [blame] | 978 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 979 | //#define POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3 |
Paul Bakker | c27c4e2 | 2013-09-23 15:01:36 +0200 | [diff] [blame] | 980 | |
| 981 | /** |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 982 | * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 983 | * |
| 984 | * If set, the X509 parser will not break-off when parsing an X509 certificate |
| 985 | * and encountering an unknown critical extension. |
| 986 | * |
| 987 | * Uncomment to prevent an error. |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 988 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 989 | //#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
Paul Bakker | 2770fbd | 2012-07-03 13:30:23 +0000 | [diff] [blame] | 990 | |
| 991 | /** |
Manuel Pégourié-Gonnard | 603116c | 2014-04-09 09:50:03 +0200 | [diff] [blame] | 992 | * \def POLARSSL_X509_CHECK_KEY_USAGE |
| 993 | * |
| 994 | * Enable verification of the keyUsage extension (CA and leaf certificates). |
| 995 | * |
| 996 | * Disabling this avoids problems with mis-issued and/or misused |
| 997 | * (intermediate) CA and leaf certificates. |
| 998 | * |
| 999 | * \warning Depending on your PKI use, disabling this can be a security risk! |
| 1000 | * |
| 1001 | * Comment to skip keyUsage checking for both CA and leaf certificates. |
| 1002 | */ |
| 1003 | #define POLARSSL_X509_CHECK_KEY_USAGE |
| 1004 | |
| 1005 | /** |
Manuel Pégourié-Gonnard | 7afb8a0 | 2014-04-10 17:53:56 +0200 | [diff] [blame] | 1006 | * \def POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE |
| 1007 | * |
| 1008 | * Enable verification of the extendedKeyUsage extension (leaf certificates). |
| 1009 | * |
| 1010 | * Disabling this avoids problems with mis-issued and/or misused certificates. |
| 1011 | * |
| 1012 | * \warning Depending on your PKI use, disabling this can be a security risk! |
| 1013 | * |
| 1014 | * Comment to skip extendedKeyUsage checking for certificates. |
| 1015 | */ |
| 1016 | #define POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE |
| 1017 | |
| 1018 | /** |
Manuel Pégourié-Gonnard | d1539b1 | 2014-06-06 16:42:37 +0200 | [diff] [blame] | 1019 | * \def POLARSSL_X509_RSASSA_PSS_SUPPORT |
| 1020 | * |
| 1021 | * Enable parsing and verification of X.509 certificates, CRLs and CSRS |
| 1022 | * signed with RSASSA-PSS (aka PKCS#1 v2.1). |
| 1023 | * |
| 1024 | * Comment this macro to disallow using RSASSA-PSS in certificates. |
| 1025 | */ |
| 1026 | #define POLARSSL_X509_RSASSA_PSS_SUPPORT |
| 1027 | |
| 1028 | /** |
Paul Bakker | 2770fbd | 2012-07-03 13:30:23 +0000 | [diff] [blame] | 1029 | * \def POLARSSL_ZLIB_SUPPORT |
| 1030 | * |
| 1031 | * If set, the SSL/TLS module uses ZLIB to support compression and |
| 1032 | * decompression of packet data. |
| 1033 | * |
Manuel Pégourié-Gonnard | bb4dd37 | 2014-03-11 10:30:38 +0100 | [diff] [blame] | 1034 | * \warning TLS-level compression MAY REDUCE SECURITY! See for example the |
| 1035 | * CRIME attack. Before enabling this option, you should examine with care if |
| 1036 | * CRIME or similar exploits may be a applicable to your use case. |
| 1037 | * |
Paul Bakker | 2770fbd | 2012-07-03 13:30:23 +0000 | [diff] [blame] | 1038 | * Used in: library/ssl_tls.c |
| 1039 | * library/ssl_cli.c |
| 1040 | * library/ssl_srv.c |
| 1041 | * |
| 1042 | * This feature requires zlib library and headers to be present. |
| 1043 | * |
| 1044 | * Uncomment to enable use of ZLIB |
Paul Bakker | 2770fbd | 2012-07-03 13:30:23 +0000 | [diff] [blame] | 1045 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 1046 | //#define POLARSSL_ZLIB_SUPPORT |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1047 | /* \} name SECTION: PolarSSL feature support */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 1048 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1049 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 1050 | * \name SECTION: PolarSSL modules |
| 1051 | * |
| 1052 | * This section enables or disables entire modules in PolarSSL |
| 1053 | * \{ |
| 1054 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1055 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1056 | /** |
Manuel Pégourié-Gonnard | 92ac76f | 2013-12-16 17:12:53 +0100 | [diff] [blame] | 1057 | * \def POLARSSL_AESNI_C |
| 1058 | * |
| 1059 | * Enable AES-NI support on x86-64. |
| 1060 | * |
| 1061 | * Module: library/aesni.c |
| 1062 | * Caller: library/aes.c |
| 1063 | * |
| 1064 | * Requires: POLARSSL_HAVE_ASM |
| 1065 | * |
| 1066 | * This modules adds support for the AES-NI instructions on x86-64 |
| 1067 | */ |
| 1068 | #define POLARSSL_AESNI_C |
| 1069 | |
| 1070 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1071 | * \def POLARSSL_AES_C |
| 1072 | * |
| 1073 | * Enable the AES block cipher. |
| 1074 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1075 | * Module: library/aes.c |
| 1076 | * Caller: library/ssl_tls.c |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 1077 | * library/pem.c |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 1078 | * library/ctr_drbg.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1079 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 1080 | * This module enables the following ciphersuites (if other requisites are |
| 1081 | * enabled as well): |
Manuel Pégourié-Gonnard | 25781b2 | 2013-12-11 16:17:10 +0100 | [diff] [blame] | 1082 | * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA |
| 1083 | * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA |
| 1084 | * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA |
| 1085 | * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA |
| 1086 | * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 |
| 1087 | * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 |
| 1088 | * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 |
| 1089 | * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 |
| 1090 | * TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 |
| 1091 | * TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 |
| 1092 | * TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 |
| 1093 | * TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1094 | * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 |
| 1095 | * TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 |
| 1096 | * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 |
| 1097 | * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 |
| 1098 | * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 1099 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1100 | * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 1101 | * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1102 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA |
| 1103 | * TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 |
| 1104 | * TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 |
| 1105 | * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 |
| 1106 | * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 |
| 1107 | * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 |
| 1108 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 |
| 1109 | * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA |
| 1110 | * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA |
| 1111 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA |
| 1112 | * TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 |
| 1113 | * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384 |
| 1114 | * TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 |
| 1115 | * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA |
| 1116 | * TLS_DHE_PSK_WITH_AES_256_CBC_SHA |
| 1117 | * TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 |
| 1118 | * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 |
| 1119 | * TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 |
| 1120 | * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA |
| 1121 | * TLS_DHE_PSK_WITH_AES_128_CBC_SHA |
| 1122 | * TLS_RSA_WITH_AES_256_GCM_SHA384 |
| 1123 | * TLS_RSA_WITH_AES_256_CBC_SHA256 |
| 1124 | * TLS_RSA_WITH_AES_256_CBC_SHA |
| 1125 | * TLS_RSA_WITH_AES_128_GCM_SHA256 |
| 1126 | * TLS_RSA_WITH_AES_128_CBC_SHA256 |
| 1127 | * TLS_RSA_WITH_AES_128_CBC_SHA |
| 1128 | * TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 |
| 1129 | * TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 |
| 1130 | * TLS_RSA_PSK_WITH_AES_256_CBC_SHA |
| 1131 | * TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 |
| 1132 | * TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 |
| 1133 | * TLS_RSA_PSK_WITH_AES_128_CBC_SHA |
| 1134 | * TLS_PSK_WITH_AES_256_GCM_SHA384 |
| 1135 | * TLS_PSK_WITH_AES_256_CBC_SHA384 |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 1136 | * TLS_PSK_WITH_AES_256_CBC_SHA |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1137 | * TLS_PSK_WITH_AES_128_GCM_SHA256 |
| 1138 | * TLS_PSK_WITH_AES_128_CBC_SHA256 |
| 1139 | * TLS_PSK_WITH_AES_128_CBC_SHA |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 1140 | * |
Paul Bakker | cff6842 | 2013-09-15 20:43:33 +0200 | [diff] [blame] | 1141 | * PEM_PARSE uses AES for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1142 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1143 | #define POLARSSL_AES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1144 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1145 | /** |
| 1146 | * \def POLARSSL_ARC4_C |
| 1147 | * |
| 1148 | * Enable the ARCFOUR stream cipher. |
| 1149 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1150 | * Module: library/arc4.c |
| 1151 | * Caller: library/ssl_tls.c |
| 1152 | * |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 1153 | * This module enables the following ciphersuites (if other requisites are |
| 1154 | * enabled as well): |
Manuel Pégourié-Gonnard | 25781b2 | 2013-12-11 16:17:10 +0100 | [diff] [blame] | 1155 | * TLS_ECDH_ECDSA_WITH_RC4_128_SHA |
| 1156 | * TLS_ECDH_RSA_WITH_RC4_128_SHA |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1157 | * TLS_ECDHE_ECDSA_WITH_RC4_128_SHA |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 1158 | * TLS_ECDHE_RSA_WITH_RC4_128_SHA |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1159 | * TLS_ECDHE_PSK_WITH_RC4_128_SHA |
| 1160 | * TLS_DHE_PSK_WITH_RC4_128_SHA |
| 1161 | * TLS_RSA_WITH_RC4_128_SHA |
| 1162 | * TLS_RSA_WITH_RC4_128_MD5 |
| 1163 | * TLS_RSA_PSK_WITH_RC4_128_SHA |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 1164 | * TLS_PSK_WITH_RC4_128_SHA |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1165 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1166 | #define POLARSSL_ARC4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1167 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1168 | /** |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame] | 1169 | * \def POLARSSL_ASN1_PARSE_C |
| 1170 | * |
| 1171 | * Enable the generic ASN1 parser. |
| 1172 | * |
| 1173 | * Module: library/asn1.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1174 | * Caller: library/x509.c |
| 1175 | * library/dhm.c |
| 1176 | * library/pkcs12.c |
| 1177 | * library/pkcs5.c |
| 1178 | * library/pkparse.c |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame] | 1179 | */ |
| 1180 | #define POLARSSL_ASN1_PARSE_C |
| 1181 | |
| 1182 | /** |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 1183 | * \def POLARSSL_ASN1_WRITE_C |
| 1184 | * |
| 1185 | * Enable the generic ASN1 writer. |
| 1186 | * |
| 1187 | * Module: library/asn1write.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1188 | * Caller: library/ecdsa.c |
| 1189 | * library/pkwrite.c |
| 1190 | * library/x509_create.c |
| 1191 | * library/x509write_crt.c |
| 1192 | * library/x509write_csr.c |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 1193 | */ |
| 1194 | #define POLARSSL_ASN1_WRITE_C |
| 1195 | |
| 1196 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1197 | * \def POLARSSL_BASE64_C |
| 1198 | * |
| 1199 | * Enable the Base64 module. |
| 1200 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1201 | * Module: library/base64.c |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1202 | * Caller: library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1203 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1204 | * This module is required for PEM support (required by X.509). |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1205 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1206 | #define POLARSSL_BASE64_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1207 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1208 | /** |
| 1209 | * \def POLARSSL_BIGNUM_C |
| 1210 | * |
Paul Bakker | 9a73632 | 2012-11-14 12:39:52 +0000 | [diff] [blame] | 1211 | * Enable the multi-precision integer library. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1212 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1213 | * Module: library/bignum.c |
| 1214 | * Caller: library/dhm.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1215 | * library/ecp.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1216 | * library/rsa.c |
| 1217 | * library/ssl_tls.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1218 | * |
| 1219 | * This module is required for RSA and DHM support. |
| 1220 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1221 | #define POLARSSL_BIGNUM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1222 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1223 | /** |
Paul Bakker | a9379c0 | 2012-07-04 11:02:11 +0000 | [diff] [blame] | 1224 | * \def POLARSSL_BLOWFISH_C |
| 1225 | * |
| 1226 | * Enable the Blowfish block cipher. |
| 1227 | * |
| 1228 | * Module: library/blowfish.c |
| 1229 | */ |
| 1230 | #define POLARSSL_BLOWFISH_C |
| 1231 | |
| 1232 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1233 | * \def POLARSSL_CAMELLIA_C |
| 1234 | * |
| 1235 | * Enable the Camellia block cipher. |
| 1236 | * |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 1237 | * Module: library/camellia.c |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 1238 | * Caller: library/ssl_tls.c |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 1239 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 1240 | * This module enables the following ciphersuites (if other requisites are |
| 1241 | * enabled as well): |
Manuel Pégourié-Gonnard | 25781b2 | 2013-12-11 16:17:10 +0100 | [diff] [blame] | 1242 | * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 1243 | * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 |
| 1244 | * TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 1245 | * TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 |
| 1246 | * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 1247 | * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 |
| 1248 | * TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 1249 | * TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1250 | * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 |
| 1251 | * TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384 |
| 1252 | * TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384 |
| 1253 | * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 |
| 1254 | * TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 1255 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1256 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 1257 | * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 1258 | * TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 1259 | * TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 1260 | * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 1261 | * TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 1262 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 1263 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 1264 | * TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384 |
| 1265 | * TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 |
| 1266 | * TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 |
| 1267 | * TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256 |
| 1268 | * TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 |
| 1269 | * TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 |
| 1270 | * TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384 |
| 1271 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
| 1272 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 1273 | * TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256 |
| 1274 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 1275 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 1276 | * TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384 |
| 1277 | * TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 |
| 1278 | * TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256 |
| 1279 | * TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 |
| 1280 | * TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384 |
| 1281 | * TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384 |
| 1282 | * TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256 |
| 1283 | * TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256 |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 1284 | */ |
| 1285 | #define POLARSSL_CAMELLIA_C |
| 1286 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1287 | /** |
Paul Bakker | 64a96ea | 2014-05-22 15:13:02 +0200 | [diff] [blame] | 1288 | * \def POLARSSL_CCM_C |
Manuel Pégourié-Gonnard | a6916fa | 2014-05-02 15:17:29 +0200 | [diff] [blame] | 1289 | * |
| 1290 | * Enable the Counter with CBC-MAC (CCM) mode for 128-bit block cipher. |
| 1291 | * |
| 1292 | * Module: library/ccm.c |
| 1293 | * |
| 1294 | * Requires: POLARSSL_AES_C or POLARSSL_CAMELLIA_C |
| 1295 | * |
| 1296 | * This module enables the AES-CCM ciphersuites, if other requisites are |
| 1297 | * enabled as well. |
| 1298 | */ |
| 1299 | #define POLARSSL_CCM_C |
| 1300 | |
| 1301 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1302 | * \def POLARSSL_CERTS_C |
| 1303 | * |
| 1304 | * Enable the test certificates. |
| 1305 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1306 | * Module: library/certs.c |
| 1307 | * Caller: |
| 1308 | * |
Manuel Pégourié-Gonnard | 18dc0e2 | 2013-10-27 14:35:02 +0100 | [diff] [blame] | 1309 | * Requires: POLARSSL_PEM_PARSE_C |
| 1310 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1311 | * This module is used for testing (ssl_client/server). |
| 1312 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1313 | #define POLARSSL_CERTS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1314 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1315 | /** |
| 1316 | * \def POLARSSL_CIPHER_C |
| 1317 | * |
| 1318 | * Enable the generic cipher layer. |
| 1319 | * |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 1320 | * Module: library/cipher.c |
Paul Bakker | 04784f5 | 2013-08-19 13:30:57 +0200 | [diff] [blame] | 1321 | * Caller: library/ssl_tls.c |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 1322 | * |
| 1323 | * Uncomment to enable generic cipher wrappers. |
| 1324 | */ |
| 1325 | #define POLARSSL_CIPHER_C |
| 1326 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1327 | /** |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 1328 | * \def POLARSSL_CTR_DRBG_C |
| 1329 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1330 | * Enable the CTR_DRBG AES-256-based random generator. |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 1331 | * |
| 1332 | * Module: library/ctr_drbg.c |
| 1333 | * Caller: |
| 1334 | * |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 1335 | * Requires: POLARSSL_AES_C |
| 1336 | * |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 1337 | * This module provides the CTR_DRBG AES-256 random number generator. |
| 1338 | */ |
| 1339 | #define POLARSSL_CTR_DRBG_C |
| 1340 | |
| 1341 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1342 | * \def POLARSSL_DEBUG_C |
| 1343 | * |
| 1344 | * Enable the debug functions. |
| 1345 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1346 | * Module: library/debug.c |
| 1347 | * Caller: library/ssl_cli.c |
| 1348 | * library/ssl_srv.c |
| 1349 | * library/ssl_tls.c |
| 1350 | * |
| 1351 | * This module provides debugging functions. |
| 1352 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1353 | #define POLARSSL_DEBUG_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1354 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1355 | /** |
| 1356 | * \def POLARSSL_DES_C |
| 1357 | * |
| 1358 | * Enable the DES block cipher. |
| 1359 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1360 | * Module: library/des.c |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 1361 | * Caller: library/pem.c |
| 1362 | * library/ssl_tls.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1363 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 1364 | * This module enables the following ciphersuites (if other requisites are |
| 1365 | * enabled as well): |
Manuel Pégourié-Gonnard | 25781b2 | 2013-12-11 16:17:10 +0100 | [diff] [blame] | 1366 | * TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA |
| 1367 | * TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1368 | * TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 1369 | * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1370 | * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA |
| 1371 | * TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA |
| 1372 | * TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA |
| 1373 | * TLS_RSA_WITH_3DES_EDE_CBC_SHA |
| 1374 | * TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 1375 | * TLS_PSK_WITH_3DES_EDE_CBC_SHA |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 1376 | * |
Paul Bakker | cff6842 | 2013-09-15 20:43:33 +0200 | [diff] [blame] | 1377 | * PEM_PARSE uses DES/3DES for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1378 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1379 | #define POLARSSL_DES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1380 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1381 | /** |
| 1382 | * \def POLARSSL_DHM_C |
| 1383 | * |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1384 | * Enable the Diffie-Hellman-Merkle module. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1385 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1386 | * Module: library/dhm.c |
| 1387 | * Caller: library/ssl_cli.c |
| 1388 | * library/ssl_srv.c |
| 1389 | * |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1390 | * This module is used by the following key exchanges: |
| 1391 | * DHE-RSA, DHE-PSK |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1392 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1393 | #define POLARSSL_DHM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1394 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1395 | /** |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 1396 | * \def POLARSSL_ECDH_C |
| 1397 | * |
| 1398 | * Enable the elliptic curve Diffie-Hellman library. |
| 1399 | * |
| 1400 | * Module: library/ecdh.c |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 1401 | * Caller: library/ssl_cli.c |
| 1402 | * library/ssl_srv.c |
| 1403 | * |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1404 | * This module is used by the following key exchanges: |
| 1405 | * ECDHE-ECDSA, ECDHE-RSA, DHE-PSK |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 1406 | * |
| 1407 | * Requires: POLARSSL_ECP_C |
| 1408 | */ |
| 1409 | #define POLARSSL_ECDH_C |
| 1410 | |
| 1411 | /** |
| 1412 | * \def POLARSSL_ECDSA_C |
| 1413 | * |
| 1414 | * Enable the elliptic curve DSA library. |
| 1415 | * |
| 1416 | * Module: library/ecdsa.c |
| 1417 | * Caller: |
| 1418 | * |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1419 | * This module is used by the following key exchanges: |
| 1420 | * ECDHE-ECDSA |
| 1421 | * |
Manuel Pégourié-Gonnard | 4846f5e | 2013-08-08 14:36:15 +0200 | [diff] [blame] | 1422 | * Requires: POLARSSL_ECP_C, POLARSSL_ASN1_WRITE_C, POLARSSL_ASN1_PARSE_C |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 1423 | */ |
| 1424 | #define POLARSSL_ECDSA_C |
| 1425 | |
| 1426 | /** |
| 1427 | * \def POLARSSL_ECP_C |
| 1428 | * |
| 1429 | * Enable the elliptic curve over GF(p) library. |
| 1430 | * |
| 1431 | * Module: library/ecp.c |
| 1432 | * Caller: library/ecdh.c |
| 1433 | * library/ecdsa.c |
| 1434 | * |
Manuel Pégourié-Gonnard | b8012fc | 2013-10-10 15:40:49 +0200 | [diff] [blame] | 1435 | * Requires: POLARSSL_BIGNUM_C and at least one POLARSSL_ECP_DP_XXX_ENABLED |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 1436 | */ |
| 1437 | #define POLARSSL_ECP_C |
| 1438 | |
| 1439 | /** |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 1440 | * \def POLARSSL_ENTROPY_C |
| 1441 | * |
| 1442 | * Enable the platform-specific entropy code. |
| 1443 | * |
| 1444 | * Module: library/entropy.c |
| 1445 | * Caller: |
| 1446 | * |
Paul Bakker | 2ceda57 | 2014-02-06 15:55:25 +0100 | [diff] [blame] | 1447 | * Requires: POLARSSL_SHA512_C or POLARSSL_SHA256_C |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 1448 | * |
| 1449 | * This module provides a generic entropy pool |
| 1450 | */ |
| 1451 | #define POLARSSL_ENTROPY_C |
| 1452 | |
| 1453 | /** |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 1454 | * \def POLARSSL_ERROR_C |
| 1455 | * |
| 1456 | * Enable error code to error string conversion. |
| 1457 | * |
| 1458 | * Module: library/error.c |
| 1459 | * Caller: |
| 1460 | * |
Shuo Chen | 95a0d11 | 2014-04-04 21:04:40 -0700 | [diff] [blame] | 1461 | * This module enables polarssl_strerror(). |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 1462 | */ |
| 1463 | #define POLARSSL_ERROR_C |
| 1464 | |
| 1465 | /** |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 1466 | * \def POLARSSL_GCM_C |
| 1467 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1468 | * Enable the Galois/Counter Mode (GCM) for AES. |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 1469 | * |
| 1470 | * Module: library/gcm.c |
| 1471 | * |
Manuel Pégourié-Gonnard | 7bd8a99 | 2013-10-24 13:39:39 +0200 | [diff] [blame] | 1472 | * Requires: POLARSSL_AES_C or POLARSSL_CAMELLIA_C |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 1473 | * |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1474 | * This module enables the AES-GCM and CAMELLIA-GCM ciphersuites, if other |
| 1475 | * requisites are enabled as well. |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 1476 | */ |
| 1477 | #define POLARSSL_GCM_C |
| 1478 | |
| 1479 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1480 | * \def POLARSSL_HAVEGE_C |
| 1481 | * |
| 1482 | * Enable the HAVEGE random generator. |
| 1483 | * |
Paul Bakker | 2a84424 | 2013-06-24 13:01:53 +0200 | [diff] [blame] | 1484 | * Warning: the HAVEGE random generator is not suitable for virtualized |
| 1485 | * environments |
| 1486 | * |
| 1487 | * Warning: the HAVEGE random generator is dependent on timing and specific |
| 1488 | * processor traits. It is therefore not advised to use HAVEGE as |
| 1489 | * your applications primary random generator or primary entropy pool |
| 1490 | * input. As a secondary input to your entropy pool, it IS able add |
| 1491 | * the (limited) extra entropy it provides. |
| 1492 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1493 | * Module: library/havege.c |
| 1494 | * Caller: |
| 1495 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1496 | * Requires: POLARSSL_TIMING_C |
| 1497 | * |
Paul Bakker | 2a84424 | 2013-06-24 13:01:53 +0200 | [diff] [blame] | 1498 | * Uncomment to enable the HAVEGE random generator. |
Paul Bakker | 2a84424 | 2013-06-24 13:01:53 +0200 | [diff] [blame] | 1499 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 1500 | //#define POLARSSL_HAVEGE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1501 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1502 | /** |
Manuel Pégourié-Gonnard | 490bdf3 | 2014-01-27 14:03:10 +0100 | [diff] [blame] | 1503 | * \def POLARSSL_HMAC_DRBG_C |
| 1504 | * |
| 1505 | * Enable the HMAC_DRBG random generator. |
| 1506 | * |
| 1507 | * Module: library/hmac_drbg.c |
| 1508 | * Caller: |
| 1509 | * |
| 1510 | * Requires: POLARSSL_MD_C |
| 1511 | * |
| 1512 | * Uncomment to enable the HMAC_DRBG random number geerator. |
| 1513 | */ |
| 1514 | #define POLARSSL_HMAC_DRBG_C |
| 1515 | |
| 1516 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1517 | * \def POLARSSL_MD_C |
| 1518 | * |
| 1519 | * Enable the generic message digest layer. |
| 1520 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 1521 | * Module: library/md.c |
| 1522 | * Caller: |
| 1523 | * |
| 1524 | * Uncomment to enable generic message digest wrappers. |
| 1525 | */ |
| 1526 | #define POLARSSL_MD_C |
| 1527 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1528 | /** |
| 1529 | * \def POLARSSL_MD2_C |
| 1530 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1531 | * Enable the MD2 hash algorithm. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1532 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1533 | * Module: library/md2.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1534 | * Caller: |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1535 | * |
| 1536 | * Uncomment to enable support for (rare) MD2-signed X.509 certs. |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 1537 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 1538 | //#define POLARSSL_MD2_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1539 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1540 | /** |
| 1541 | * \def POLARSSL_MD4_C |
| 1542 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1543 | * Enable the MD4 hash algorithm. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1544 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1545 | * Module: library/md4.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1546 | * Caller: |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1547 | * |
| 1548 | * Uncomment to enable support for (rare) MD4-signed X.509 certs. |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 1549 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 1550 | //#define POLARSSL_MD4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1551 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1552 | /** |
| 1553 | * \def POLARSSL_MD5_C |
| 1554 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1555 | * Enable the MD5 hash algorithm. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1556 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1557 | * Module: library/md5.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1558 | * Caller: library/md.c |
| 1559 | * library/pem.c |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 1560 | * library/ssl_tls.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1561 | * |
| 1562 | * This module is required for SSL/TLS and X.509. |
Paul Bakker | cff6842 | 2013-09-15 20:43:33 +0200 | [diff] [blame] | 1563 | * PEM_PARSE uses MD5 for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1564 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1565 | #define POLARSSL_MD5_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1566 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1567 | /** |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 1568 | * \def POLARSSL_MEMORY_C |
Paul Bakker | defc0ca | 2014-02-04 17:30:24 +0100 | [diff] [blame] | 1569 | * Deprecated since 1.3.5. Please use POLARSSL_PLATFORM_MEMORY instead. |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 1570 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 1571 | //#define POLARSSL_MEMORY_C |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 1572 | |
| 1573 | /** |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1574 | * \def POLARSSL_MEMORY_BUFFER_ALLOC_C |
| 1575 | * |
| 1576 | * Enable the buffer allocator implementation that makes use of a (stack) |
| 1577 | * based buffer to 'allocate' dynamic memory. (replaces malloc() and free() |
| 1578 | * calls) |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 1579 | * |
| 1580 | * Module: library/memory_buffer_alloc.c |
| 1581 | * |
Paul Bakker | defc0ca | 2014-02-04 17:30:24 +0100 | [diff] [blame] | 1582 | * Requires: POLARSSL_PLATFORM_C |
| 1583 | * POLARSSL_PLATFORM_MEMORY (to use it within PolarSSL) |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 1584 | * |
| 1585 | * Enable this module to enable the buffer memory allocator. |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 1586 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 1587 | //#define POLARSSL_MEMORY_BUFFER_ALLOC_C |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 1588 | |
| 1589 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1590 | * \def POLARSSL_NET_C |
| 1591 | * |
| 1592 | * Enable the TCP/IP networking routines. |
| 1593 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1594 | * Module: library/net.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1595 | * |
| 1596 | * This module provides TCP/IP networking routines. |
| 1597 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1598 | #define POLARSSL_NET_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1599 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1600 | /** |
Paul Bakker | c70b982 | 2013-04-07 22:00:46 +0200 | [diff] [blame] | 1601 | * \def POLARSSL_OID_C |
| 1602 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1603 | * Enable the OID database. |
Paul Bakker | c70b982 | 2013-04-07 22:00:46 +0200 | [diff] [blame] | 1604 | * |
| 1605 | * Module: library/oid.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1606 | * Caller: library/asn1write.c |
| 1607 | * library/pkcs5.c |
| 1608 | * library/pkparse.c |
| 1609 | * library/pkwrite.c |
| 1610 | * library/rsa.c |
| 1611 | * library/x509.c |
| 1612 | * library/x509_create.c |
| 1613 | * library/x509_crl.c |
| 1614 | * library/x509_crt.c |
| 1615 | * library/x509_csr.c |
| 1616 | * library/x509write_crt.c |
| 1617 | * library/x509write_csr.c |
Paul Bakker | c70b982 | 2013-04-07 22:00:46 +0200 | [diff] [blame] | 1618 | * |
| 1619 | * This modules translates between OIDs and internal values. |
| 1620 | */ |
| 1621 | #define POLARSSL_OID_C |
| 1622 | |
| 1623 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1624 | * \def POLARSSL_PADLOCK_C |
| 1625 | * |
| 1626 | * Enable VIA Padlock support on x86. |
| 1627 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1628 | * Module: library/padlock.c |
| 1629 | * Caller: library/aes.c |
| 1630 | * |
Manuel Pégourié-Gonnard | 92ac76f | 2013-12-16 17:12:53 +0100 | [diff] [blame] | 1631 | * Requires: POLARSSL_HAVE_ASM |
| 1632 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1633 | * This modules adds support for the VIA PadLock on x86. |
| 1634 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1635 | #define POLARSSL_PADLOCK_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1636 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1637 | /** |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 1638 | * \def POLARSSL_PBKDF2_C |
| 1639 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1640 | * Enable PKCS#5 PBKDF2 key derivation function. |
Paul Bakker | b0c19a4 | 2013-06-24 19:26:38 +0200 | [diff] [blame] | 1641 | * DEPRECATED: Use POLARSSL_PKCS5_C instead |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 1642 | * |
| 1643 | * Module: library/pbkdf2.c |
| 1644 | * |
Paul Bakker | b0c19a4 | 2013-06-24 19:26:38 +0200 | [diff] [blame] | 1645 | * Requires: POLARSSL_PKCS5_C |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 1646 | * |
| 1647 | * This module adds support for the PKCS#5 PBKDF2 key derivation function. |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 1648 | */ |
Paul Bakker | 370e90c | 2013-04-08 15:19:43 +0200 | [diff] [blame] | 1649 | #define POLARSSL_PBKDF2_C |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 1650 | |
| 1651 | /** |
Paul Bakker | cff6842 | 2013-09-15 20:43:33 +0200 | [diff] [blame] | 1652 | * \def POLARSSL_PEM_PARSE_C |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 1653 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1654 | * Enable PEM decoding / parsing. |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 1655 | * |
| 1656 | * Module: library/pem.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1657 | * Caller: library/dhm.c |
Paul Bakker | cff6842 | 2013-09-15 20:43:33 +0200 | [diff] [blame] | 1658 | * library/pkparse.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1659 | * library/x509_crl.c |
| 1660 | * library/x509_crt.c |
| 1661 | * library/x509_csr.c |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 1662 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1663 | * Requires: POLARSSL_BASE64_C |
| 1664 | * |
Paul Bakker | cff6842 | 2013-09-15 20:43:33 +0200 | [diff] [blame] | 1665 | * This modules adds support for decoding / parsing PEM files. |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 1666 | */ |
Paul Bakker | cff6842 | 2013-09-15 20:43:33 +0200 | [diff] [blame] | 1667 | #define POLARSSL_PEM_PARSE_C |
| 1668 | |
| 1669 | /** |
| 1670 | * \def POLARSSL_PEM_WRITE_C |
| 1671 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1672 | * Enable PEM encoding / writing. |
Paul Bakker | cff6842 | 2013-09-15 20:43:33 +0200 | [diff] [blame] | 1673 | * |
| 1674 | * Module: library/pem.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1675 | * Caller: library/pkwrite.c |
| 1676 | * library/x509write_crt.c |
| 1677 | * library/x509write_csr.c |
Paul Bakker | cff6842 | 2013-09-15 20:43:33 +0200 | [diff] [blame] | 1678 | * |
| 1679 | * Requires: POLARSSL_BASE64_C |
| 1680 | * |
| 1681 | * This modules adds support for encoding / writing PEM files. |
| 1682 | */ |
| 1683 | #define POLARSSL_PEM_WRITE_C |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 1684 | |
| 1685 | /** |
Manuel Pégourié-Gonnard | c40b4c3 | 2013-08-22 13:29:31 +0200 | [diff] [blame] | 1686 | * \def POLARSSL_PK_C |
| 1687 | * |
| 1688 | * Enable the generic public (asymetric) key layer. |
| 1689 | * |
| 1690 | * Module: library/pk.c |
Manuel Pégourié-Gonnard | 1a48383 | 2013-09-20 12:29:15 +0200 | [diff] [blame] | 1691 | * Caller: library/ssl_tls.c |
Manuel Pégourié-Gonnard | c40b4c3 | 2013-08-22 13:29:31 +0200 | [diff] [blame] | 1692 | * library/ssl_cli.c |
| 1693 | * library/ssl_srv.c |
| 1694 | * |
Manuel Pégourié-Gonnard | 1a48383 | 2013-09-20 12:29:15 +0200 | [diff] [blame] | 1695 | * Requires: POLARSSL_RSA_C or POLARSSL_ECP_C |
| 1696 | * |
Manuel Pégourié-Gonnard | c40b4c3 | 2013-08-22 13:29:31 +0200 | [diff] [blame] | 1697 | * Uncomment to enable generic public key wrappers. |
| 1698 | */ |
| 1699 | #define POLARSSL_PK_C |
| 1700 | |
| 1701 | /** |
Paul Bakker | 4606c73 | 2013-09-15 17:04:23 +0200 | [diff] [blame] | 1702 | * \def POLARSSL_PK_PARSE_C |
| 1703 | * |
| 1704 | * Enable the generic public (asymetric) key parser. |
| 1705 | * |
| 1706 | * Module: library/pkparse.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1707 | * Caller: library/x509_crt.c |
| 1708 | * library/x509_csr.c |
Paul Bakker | 4606c73 | 2013-09-15 17:04:23 +0200 | [diff] [blame] | 1709 | * |
| 1710 | * Requires: POLARSSL_PK_C |
| 1711 | * |
| 1712 | * Uncomment to enable generic public key parse functions. |
| 1713 | */ |
| 1714 | #define POLARSSL_PK_PARSE_C |
| 1715 | |
| 1716 | /** |
| 1717 | * \def POLARSSL_PK_WRITE_C |
| 1718 | * |
Paul Bakker | f20ba4b | 2013-09-16 22:46:20 +0200 | [diff] [blame] | 1719 | * Enable the generic public (asymetric) key writer. |
Paul Bakker | 4606c73 | 2013-09-15 17:04:23 +0200 | [diff] [blame] | 1720 | * |
| 1721 | * Module: library/pkwrite.c |
| 1722 | * Caller: library/x509write.c |
| 1723 | * |
| 1724 | * Requires: POLARSSL_PK_C |
| 1725 | * |
| 1726 | * Uncomment to enable generic public key write functions. |
| 1727 | */ |
| 1728 | #define POLARSSL_PK_WRITE_C |
| 1729 | |
| 1730 | /** |
Paul Bakker | b0c19a4 | 2013-06-24 19:26:38 +0200 | [diff] [blame] | 1731 | * \def POLARSSL_PKCS5_C |
| 1732 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1733 | * Enable PKCS#5 functions. |
Paul Bakker | b0c19a4 | 2013-06-24 19:26:38 +0200 | [diff] [blame] | 1734 | * |
| 1735 | * Module: library/pkcs5.c |
| 1736 | * |
| 1737 | * Requires: POLARSSL_MD_C |
| 1738 | * |
| 1739 | * This module adds support for the PKCS#5 functions. |
| 1740 | */ |
| 1741 | #define POLARSSL_PKCS5_C |
| 1742 | |
| 1743 | /** |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1744 | * \def POLARSSL_PKCS11_C |
| 1745 | * |
Paul Bakker | eb2c658 | 2012-09-27 19:15:01 +0000 | [diff] [blame] | 1746 | * Enable wrapper for PKCS#11 smartcard support. |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1747 | * |
Manuel Pégourié-Gonnard | 51be559 | 2013-08-22 13:35:53 +0200 | [diff] [blame] | 1748 | * Module: library/pkcs11.c |
| 1749 | * Caller: library/pk.c |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1750 | * |
Manuel Pégourié-Gonnard | 51be559 | 2013-08-22 13:35:53 +0200 | [diff] [blame] | 1751 | * Requires: POLARSSL_PK_C |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1752 | * |
Paul Bakker | eb2c658 | 2012-09-27 19:15:01 +0000 | [diff] [blame] | 1753 | * This module enables SSL/TLS PKCS #11 smartcard support. |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1754 | * Requires the presence of the PKCS#11 helper library (libpkcs11-helper) |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1755 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 1756 | //#define POLARSSL_PKCS11_C |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1757 | |
| 1758 | /** |
Paul Bakker | f1f21fe | 2013-06-24 19:17:19 +0200 | [diff] [blame] | 1759 | * \def POLARSSL_PKCS12_C |
| 1760 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1761 | * Enable PKCS#12 PBE functions. |
Paul Bakker | f1f21fe | 2013-06-24 19:17:19 +0200 | [diff] [blame] | 1762 | * Adds algorithms for parsing PKCS#8 encrypted private keys |
| 1763 | * |
| 1764 | * Module: library/pkcs12.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1765 | * Caller: library/pkparse.c |
Paul Bakker | f1f21fe | 2013-06-24 19:17:19 +0200 | [diff] [blame] | 1766 | * |
Paul Bakker | b0713c7 | 2013-06-24 19:34:08 +0200 | [diff] [blame] | 1767 | * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_CIPHER_C, POLARSSL_MD_C |
| 1768 | * Can use: POLARSSL_ARC4_C |
Paul Bakker | f1f21fe | 2013-06-24 19:17:19 +0200 | [diff] [blame] | 1769 | * |
| 1770 | * This module enables PKCS#12 functions. |
| 1771 | */ |
| 1772 | #define POLARSSL_PKCS12_C |
| 1773 | |
| 1774 | /** |
Paul Bakker | 747a83a | 2014-02-01 22:50:07 +0100 | [diff] [blame] | 1775 | * \def POLARSSL_PLATFORM_C |
| 1776 | * |
| 1777 | * Enable the platform abstraction layer that allows you to re-assign |
| 1778 | * functions like malloc(), free(), printf(), fprintf() |
| 1779 | * |
| 1780 | * Module: library/platform.c |
| 1781 | * Caller: Most other .c files |
| 1782 | * |
| 1783 | * This module enables abstraction of common (libc) functions. |
| 1784 | */ |
| 1785 | #define POLARSSL_PLATFORM_C |
| 1786 | |
| 1787 | /** |
Paul Bakker | 61b699e | 2014-01-22 13:35:29 +0100 | [diff] [blame] | 1788 | * \def POLARSSL_RIPEMD160_C |
Manuel Pégourié-Gonnard | cab4a88 | 2014-01-17 12:42:35 +0100 | [diff] [blame] | 1789 | * |
| 1790 | * Enable the RIPEMD-160 hash algorithm. |
| 1791 | * |
Paul Bakker | 61b699e | 2014-01-22 13:35:29 +0100 | [diff] [blame] | 1792 | * Module: library/ripemd160.c |
Manuel Pégourié-Gonnard | cab4a88 | 2014-01-17 12:42:35 +0100 | [diff] [blame] | 1793 | * Caller: library/md.c |
| 1794 | * |
| 1795 | */ |
Paul Bakker | 61b699e | 2014-01-22 13:35:29 +0100 | [diff] [blame] | 1796 | #define POLARSSL_RIPEMD160_C |
Manuel Pégourié-Gonnard | cab4a88 | 2014-01-17 12:42:35 +0100 | [diff] [blame] | 1797 | |
| 1798 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1799 | * \def POLARSSL_RSA_C |
| 1800 | * |
| 1801 | * Enable the RSA public-key cryptosystem. |
| 1802 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1803 | * Module: library/rsa.c |
| 1804 | * Caller: library/ssl_cli.c |
| 1805 | * library/ssl_srv.c |
| 1806 | * library/ssl_tls.c |
| 1807 | * library/x509.c |
| 1808 | * |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1809 | * This module is used by the following key exchanges: |
| 1810 | * RSA, DHE-RSA, ECDHE-RSA, RSA-PSK |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1811 | * |
Manuel Pégourié-Gonnard | 9d70373 | 2013-10-25 18:01:50 +0200 | [diff] [blame] | 1812 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_OID_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1813 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1814 | #define POLARSSL_RSA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1815 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1816 | /** |
| 1817 | * \def POLARSSL_SHA1_C |
| 1818 | * |
| 1819 | * Enable the SHA1 cryptographic hash algorithm. |
| 1820 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1821 | * Module: library/sha1.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1822 | * Caller: library/md.c |
| 1823 | * library/ssl_cli.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1824 | * library/ssl_srv.c |
| 1825 | * library/ssl_tls.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1826 | * library/x509write_crt.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1827 | * |
| 1828 | * This module is required for SSL/TLS and SHA1-signed certificates. |
| 1829 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1830 | #define POLARSSL_SHA1_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1831 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1832 | /** |
Paul Bakker | 9e36f04 | 2013-06-30 14:34:05 +0200 | [diff] [blame] | 1833 | * \def POLARSSL_SHA256_C |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1834 | * |
| 1835 | * Enable the SHA-224 and SHA-256 cryptographic hash algorithms. |
Paul Bakker | 9e36f04 | 2013-06-30 14:34:05 +0200 | [diff] [blame] | 1836 | * (Used to be POLARSSL_SHA2_C) |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1837 | * |
Paul Bakker | 9e36f04 | 2013-06-30 14:34:05 +0200 | [diff] [blame] | 1838 | * Module: library/sha256.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1839 | * Caller: library/entropy.c |
| 1840 | * library/md.c |
| 1841 | * library/ssl_cli.c |
| 1842 | * library/ssl_srv.c |
| 1843 | * library/ssl_tls.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1844 | * |
| 1845 | * This module adds support for SHA-224 and SHA-256. |
Paul Bakker | 769075d | 2012-11-24 11:26:46 +0100 | [diff] [blame] | 1846 | * This module is required for the SSL/TLS 1.2 PRF function. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1847 | */ |
Paul Bakker | 9e36f04 | 2013-06-30 14:34:05 +0200 | [diff] [blame] | 1848 | #define POLARSSL_SHA256_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1849 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1850 | /** |
Paul Bakker | 9e36f04 | 2013-06-30 14:34:05 +0200 | [diff] [blame] | 1851 | * \def POLARSSL_SHA512_C |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1852 | * |
| 1853 | * Enable the SHA-384 and SHA-512 cryptographic hash algorithms. |
Paul Bakker | 9e36f04 | 2013-06-30 14:34:05 +0200 | [diff] [blame] | 1854 | * (Used to be POLARSSL_SHA4_C) |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1855 | * |
Paul Bakker | 9e36f04 | 2013-06-30 14:34:05 +0200 | [diff] [blame] | 1856 | * Module: library/sha512.c |
Manuel Pégourié-Gonnard | fe28646 | 2013-09-20 14:10:14 +0200 | [diff] [blame] | 1857 | * Caller: library/entropy.c |
| 1858 | * library/md.c |
| 1859 | * library/ssl_cli.c |
| 1860 | * library/ssl_srv.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1861 | * |
| 1862 | * This module adds support for SHA-384 and SHA-512. |
| 1863 | */ |
Paul Bakker | 9e36f04 | 2013-06-30 14:34:05 +0200 | [diff] [blame] | 1864 | #define POLARSSL_SHA512_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1865 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1866 | /** |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 1867 | * \def POLARSSL_SSL_CACHE_C |
| 1868 | * |
| 1869 | * Enable simple SSL cache implementation. |
| 1870 | * |
| 1871 | * Module: library/ssl_cache.c |
| 1872 | * Caller: |
| 1873 | * |
| 1874 | * Requires: POLARSSL_SSL_CACHE_C |
| 1875 | */ |
| 1876 | #define POLARSSL_SSL_CACHE_C |
| 1877 | |
| 1878 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1879 | * \def POLARSSL_SSL_CLI_C |
| 1880 | * |
| 1881 | * Enable the SSL/TLS client code. |
| 1882 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1883 | * Module: library/ssl_cli.c |
| 1884 | * Caller: |
| 1885 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1886 | * Requires: POLARSSL_SSL_TLS_C |
| 1887 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1888 | * This module is required for SSL/TLS client support. |
| 1889 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1890 | #define POLARSSL_SSL_CLI_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1891 | |
Paul Bakker | 9a73632 | 2012-11-14 12:39:52 +0000 | [diff] [blame] | 1892 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1893 | * \def POLARSSL_SSL_SRV_C |
| 1894 | * |
| 1895 | * Enable the SSL/TLS server code. |
| 1896 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1897 | * Module: library/ssl_srv.c |
| 1898 | * Caller: |
| 1899 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1900 | * Requires: POLARSSL_SSL_TLS_C |
| 1901 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1902 | * This module is required for SSL/TLS server support. |
| 1903 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1904 | #define POLARSSL_SSL_SRV_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1905 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1906 | /** |
| 1907 | * \def POLARSSL_SSL_TLS_C |
| 1908 | * |
Paul Bakker | e29ab06 | 2011-05-18 13:26:54 +0000 | [diff] [blame] | 1909 | * Enable the generic SSL/TLS code. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1910 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1911 | * Module: library/ssl_tls.c |
| 1912 | * Caller: library/ssl_cli.c |
| 1913 | * library/ssl_srv.c |
| 1914 | * |
Manuel Pégourié-Gonnard | 1a48383 | 2013-09-20 12:29:15 +0200 | [diff] [blame] | 1915 | * Requires: POLARSSL_CIPHER_C, POLARSSL_MD_C |
Paul Bakker | 577e006 | 2013-08-28 11:57:20 +0200 | [diff] [blame] | 1916 | * and at least one of the POLARSSL_SSL_PROTO_* defines |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1917 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1918 | * This module is required for SSL/TLS. |
| 1919 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1920 | #define POLARSSL_SSL_TLS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1921 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1922 | /** |
Paul Bakker | 2466d93 | 2013-09-28 14:40:38 +0200 | [diff] [blame] | 1923 | * \def POLARSSL_THREADING_C |
| 1924 | * |
| 1925 | * Enable the threading abstraction layer. |
| 1926 | * By default PolarSSL assumes it is used in a non-threaded environment or that |
| 1927 | * contexts are not shared between threads. If you do intend to use contexts |
| 1928 | * between threads, you will need to enable this layer to prevent race |
| 1929 | * conditions. |
| 1930 | * |
| 1931 | * Module: library/threading.c |
| 1932 | * |
| 1933 | * This allows different threading implementations (self-implemented or |
| 1934 | * provided). |
| 1935 | * |
Paul Bakker | a8fd3e3 | 2013-12-31 11:54:08 +0100 | [diff] [blame] | 1936 | * You will have to enable either POLARSSL_THREADING_ALT or |
| 1937 | * POLARSSL_THREADING_PTHREAD. |
Paul Bakker | 2466d93 | 2013-09-28 14:40:38 +0200 | [diff] [blame] | 1938 | * |
| 1939 | * Enable this layer to allow use of mutexes within PolarSSL |
Paul Bakker | 2466d93 | 2013-09-28 14:40:38 +0200 | [diff] [blame] | 1940 | */ |
Paul Bakker | a7ea6a5 | 2013-10-15 11:55:10 +0200 | [diff] [blame] | 1941 | //#define POLARSSL_THREADING_C |
Paul Bakker | 2466d93 | 2013-09-28 14:40:38 +0200 | [diff] [blame] | 1942 | |
| 1943 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1944 | * \def POLARSSL_TIMING_C |
| 1945 | * |
| 1946 | * Enable the portable timing interface. |
| 1947 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1948 | * Module: library/timing.c |
| 1949 | * Caller: library/havege.c |
| 1950 | * |
| 1951 | * This module is used by the HAVEGE random number generator. |
Paul Bakker | ecd54fb | 2013-07-03 14:48:29 +0200 | [diff] [blame] | 1952 | */ |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 1953 | #define POLARSSL_TIMING_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1954 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1955 | /** |
| 1956 | * \def POLARSSL_VERSION_C |
| 1957 | * |
| 1958 | * Enable run-time version information. |
| 1959 | * |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 1960 | * Module: library/version.c |
| 1961 | * |
| 1962 | * This module provides run-time version information. |
| 1963 | */ |
| 1964 | #define POLARSSL_VERSION_C |
| 1965 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1966 | /** |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 1967 | * \def POLARSSL_X509_USE_C |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1968 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 1969 | * Enable X.509 core for using certificates. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1970 | * |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 1971 | * Module: library/x509.c |
| 1972 | * Caller: library/x509_crl.c |
| 1973 | * library/x509_crt.c |
| 1974 | * library/x509_csr.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1975 | * |
Paul Bakker | c70b982 | 2013-04-07 22:00:46 +0200 | [diff] [blame] | 1976 | * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_OID_C, |
Paul Bakker | 4606c73 | 2013-09-15 17:04:23 +0200 | [diff] [blame] | 1977 | * POLARSSL_PK_PARSE_C |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1978 | * |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 1979 | * This module is required for the X.509 parsing modules. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1980 | */ |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 1981 | #define POLARSSL_X509_USE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1982 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1983 | /** |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 1984 | * \def POLARSSL_X509_CRT_PARSE_C |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 1985 | * |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 1986 | * Enable X.509 certificate parsing. |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 1987 | * |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 1988 | * Module: library/x509_crt.c |
| 1989 | * Caller: library/ssl_cli.c |
| 1990 | * library/ssl_srv.c |
| 1991 | * library/ssl_tls.c |
| 1992 | * |
| 1993 | * Requires: POLARSSL_X509_USE_C |
| 1994 | * |
| 1995 | * This module is required for X.509 certificate parsing. |
| 1996 | */ |
| 1997 | #define POLARSSL_X509_CRT_PARSE_C |
| 1998 | |
| 1999 | /** |
| 2000 | * \def POLARSSL_X509_CRL_PARSE_C |
| 2001 | * |
| 2002 | * Enable X.509 CRL parsing. |
| 2003 | * |
| 2004 | * Module: library/x509_crl.c |
| 2005 | * Caller: library/x509_crt.c |
| 2006 | * |
| 2007 | * Requires: POLARSSL_X509_USE_C |
| 2008 | * |
| 2009 | * This module is required for X.509 CRL parsing. |
| 2010 | */ |
| 2011 | #define POLARSSL_X509_CRL_PARSE_C |
| 2012 | |
| 2013 | /** |
| 2014 | * \def POLARSSL_X509_CSR_PARSE_C |
| 2015 | * |
| 2016 | * Enable X.509 Certificate Signing Request (CSR) parsing. |
| 2017 | * |
| 2018 | * Module: library/x509_csr.c |
| 2019 | * Caller: library/x509_crt_write.c |
| 2020 | * |
| 2021 | * Requires: POLARSSL_X509_USE_C |
| 2022 | * |
| 2023 | * This module is used for reading X.509 certificate request. |
| 2024 | */ |
| 2025 | #define POLARSSL_X509_CSR_PARSE_C |
| 2026 | |
| 2027 | /** |
| 2028 | * \def POLARSSL_X509_CREATE_C |
| 2029 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 2030 | * Enable X.509 core for creating certificates. |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 2031 | * |
| 2032 | * Module: library/x509_create.c |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 2033 | * |
Paul Bakker | 4606c73 | 2013-09-15 17:04:23 +0200 | [diff] [blame] | 2034 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_OID_C, POLARSSL_PK_WRITE_C |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 2035 | * |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 2036 | * This module is the basis for creating X.509 certificates and CSRs. |
| 2037 | */ |
| 2038 | #define POLARSSL_X509_CREATE_C |
| 2039 | |
| 2040 | /** |
| 2041 | * \def POLARSSL_X509_CRT_WRITE_C |
| 2042 | * |
| 2043 | * Enable creating X.509 certificates. |
| 2044 | * |
| 2045 | * Module: library/x509_crt_write.c |
| 2046 | * |
| 2047 | * Requires: POLARSSL_CREATE_C |
| 2048 | * |
| 2049 | * This module is required for X.509 certificate creation. |
| 2050 | */ |
| 2051 | #define POLARSSL_X509_CRT_WRITE_C |
| 2052 | |
| 2053 | /** |
| 2054 | * \def POLARSSL_X509_CSR_WRITE_C |
| 2055 | * |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 2056 | * Enable creating X.509 Certificate Signing Requests (CSR). |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 2057 | * |
| 2058 | * Module: library/x509_csr_write.c |
| 2059 | * |
| 2060 | * Requires: POLARSSL_CREATE_C |
| 2061 | * |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 2062 | * This module is required for X.509 certificate request writing. |
| 2063 | */ |
Paul Bakker | 7c6b2c3 | 2013-09-16 13:49:26 +0200 | [diff] [blame] | 2064 | #define POLARSSL_X509_CSR_WRITE_C |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 2065 | |
| 2066 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 2067 | * \def POLARSSL_XTEA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 2068 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 2069 | * Enable the XTEA block cipher. |
| 2070 | * |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 2071 | * Module: library/xtea.c |
| 2072 | * Caller: |
| 2073 | */ |
| 2074 | #define POLARSSL_XTEA_C |
Manuel Pégourié-Gonnard | 39d2adb | 2012-10-31 09:26:55 +0100 | [diff] [blame] | 2075 | |
Manuel Pégourié-Gonnard | 09fff7e | 2013-09-20 13:45:36 +0200 | [diff] [blame] | 2076 | /* \} name SECTION: PolarSSL modules */ |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 2077 | |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2078 | /** |
| 2079 | * \name SECTION: Module configuration options |
| 2080 | * |
| 2081 | * This section allows for the setting of module specific sizes and |
| 2082 | * configuration options. The default values are already present in the |
| 2083 | * relevant header files and should suffice for the regular use cases. |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2084 | * |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 2085 | * Our advice is to enable options and change their values here |
| 2086 | * only if you have a good reason and know the consequences. |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2087 | * |
| 2088 | * Please check the respective header file for documentation on these |
| 2089 | * parameters (to prevent duplicate documentation). |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2090 | * \{ |
| 2091 | */ |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2092 | |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 2093 | /* MPI / BIGNUM options */ |
| 2094 | //#define POLARSSL_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */ |
| 2095 | //#define POLARSSL_MPI_MAX_SIZE 512 /**< Maximum number of bytes for usable MPIs. */ |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2096 | |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 2097 | /* CTR_DRBG options */ |
| 2098 | //#define CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default (48 with SHA-512, 32 with SHA-256) */ |
| 2099 | //#define CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */ |
| 2100 | //#define CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */ |
| 2101 | //#define CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */ |
| 2102 | //#define CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */ |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2103 | |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 2104 | /* HMAC_DRBG options */ |
| 2105 | //#define POLARSSL_HMAC_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */ |
| 2106 | //#define POLARSSL_HMAC_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */ |
| 2107 | //#define POLARSSL_HMAC_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */ |
| 2108 | //#define POLARSSL_HMAC_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */ |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2109 | |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 2110 | /* ECP options */ |
| 2111 | //#define POLARSSL_ECP_MAX_BITS 521 /**< Maximum bit size of groups */ |
| 2112 | //#define POLARSSL_ECP_WINDOW_SIZE 6 /**< Maximum window size used */ |
| 2113 | //#define POLARSSL_ECP_FIXED_POINT_OPTIM 1 /**< Enable fixed-point speed-up */ |
Manuel Pégourié-Gonnard | 0520b60 | 2014-01-30 19:43:46 +0100 | [diff] [blame] | 2114 | |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 2115 | /* Entropy options */ |
| 2116 | //#define ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */ |
| 2117 | //#define ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */ |
Paul Bakker | e1b665e | 2013-12-11 16:02:58 +0100 | [diff] [blame] | 2118 | |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 2119 | /* Memory buffer allocator options */ |
Manuel Pégourié-Gonnard | 4d8db4a | 2014-05-05 14:04:28 +0200 | [diff] [blame] | 2120 | //#define POLARSSL_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */ |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2121 | |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 2122 | /* Platform options */ |
| 2123 | //#define POLARSSL_PLATFORM_STD_MEM_HDR <stdlib.h> /**< Header to include if POLARSSL_PLATFORM_NO_STD_FUNCTIONS is defined. Don't define if no header is needed. */ |
| 2124 | //#define POLARSSL_PLATFORM_STD_MALLOC malloc /**< Default allocator to use, can be undefined */ |
| 2125 | //#define POLARSSL_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */ |
| 2126 | //#define POLARSSL_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */ |
| 2127 | //#define POLARSSL_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */ |
Paul Bakker | 6e339b5 | 2013-07-03 13:37:05 +0200 | [diff] [blame] | 2128 | |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 2129 | /* SSL Cache options */ |
| 2130 | //#define SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */ |
| 2131 | //#define SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */ |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2132 | |
Paul Bakker | 088c5c5 | 2014-04-25 11:11:10 +0200 | [diff] [blame] | 2133 | /* SSL options */ |
| 2134 | //#define SSL_MAX_CONTENT_LEN 16384 /**< Size of the input / output buffer */ |
| 2135 | //#define SSL_DEFAULT_TICKET_LIFETIME 86400 /**< Lifetime of session tickets (if enabled) */ |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2136 | |
Paul Bakker | eaebbd5 | 2014-04-25 15:04:14 +0200 | [diff] [blame] | 2137 | /* Debug options */ |
| 2138 | //#define POLARSSL_DEBUG_DFL_MODE POLARSSL_DEBUG_LOG_FULL /**< Default log: Full or Raw */ |
| 2139 | |
Paul Bakker | 0f90d7d | 2014-04-30 11:49:44 +0200 | [diff] [blame] | 2140 | /* \} name SECTION: Module configuration options */ |
Paul Bakker | 9bcf16c | 2013-06-24 19:31:17 +0200 | [diff] [blame] | 2141 | |
Manuel Pégourié-Gonnard | 14d5595 | 2014-04-30 12:35:08 +0200 | [diff] [blame] | 2142 | #include "check_config.h" |
Manuel Pégourié-Gonnard | 92ac76f | 2013-12-16 17:12:53 +0100 | [diff] [blame] | 2143 | |
Manuel Pégourié-Gonnard | 14d5595 | 2014-04-30 12:35:08 +0200 | [diff] [blame] | 2144 | #endif /* POLARSSL_CONFIG_H */ |