3 * Copyright (C) 2006-2014 wolfSSL Inc.
5 * This file is part of CyaSSL.
7 * CyaSSL is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * CyaSSL is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 /**** CyaSSL for KEIL-RL Configuration ****/
26 #define CYASSL_MDK_ARM
29 #define NO_MAIN_DRIVER
31 #define CYASSL_DER_LOAD
32 #define HAVE_NULL_CIPHER
34 #define SINGLE_THREADED
40 #define NO_SIMPLE_SERVER
41 #define NO_SIMPLE_CLIENT
43 // <<< Use Configuration Wizard in Context Menu >>>
45 // <h> Build Target: KEIL-BAREFOOT
46 // <h> Single Threaded, No File System, No TCP-net
49 #define MDK_CONF_SHELL 1
50 #if MDK_CONF_SHELL == 1
51 #define CYASSL_MDK_SHELL
56 // <o>Cert Storage <1=> Mem Buff (1024bytes) <2=> Mem Buff (2048bytes)
57 #define MDK_CONF_CERT_BUFF 1
58 #if MDK_CONF_CERT_BUFF == 1
59 #define USE_CERT_BUFFERS_1024
60 #elif MDK_CONF_CERT_BUFF == 2
61 #define USE_CERT_BUFFERS_2048
64 // <e>Crypt/Cipher Test Suite
65 #define MDK_CONF_CTaoCryptTest 1
66 #if MDK_CONF_CTaoCryptTest == 0
70 // <e>Crypt/Cipher Benchmark
71 #define MDK_CONF_CTaoCryptBenchmark 1
72 #if MDK_CONF_CTaoCryptBenchmark == 0
73 #define NO_CRYPT_BENCHMARK
74 #define BENCH_EMBEDDED
79 // <h>STM32 Hardware Crypt
80 // <e>STM32F2 Hardware RNG
81 #define MDK_CONF_STM32F2_RNG 0
82 #if MDK_CONF_STM32F2_RNG == 1
88 // <e>STM32F2 Hardware Crypt
89 #define MDK_CONF_STM32F2_CRYPTO 0
90 #if MDK_CONF_STM32F2_CRYPTO == 1
91 #define STM32F2_CRYPTO
98 // <h>CTaoCrypt Library
100 // <h>MD5, SHA, SHA-256, AES, RC4, ASN, RSA
103 #define MDK_CONF_MD2 0
104 #if MDK_CONF_MD2 == 1
109 #define MDK_CONF_MD4 1
110 #if MDK_CONF_MD4 == 0
115 // <i>This has to be with SHA512
116 #define MDK_CONF_SHA384 0
117 #if MDK_CONF_SHA384 == 1
118 #define CYASSL_SHA384
122 #define MDK_CONF_SHA512 0
123 #if MDK_CONF_SHA512 == 1
124 #define CYASSL_SHA512
128 #define MDK_CONF_RIPEMD 0
129 #if MDK_CONF_RIPEMD == 1
130 #define CYASSL_RIPEMD
134 #define MDK_CONF_HMAC 1
135 #if MDK_CONF_HMAC == 0
140 #define MDK_CONF_HC128 0
141 #if MDK_CONF_HC128 == 1
146 #define MDK_CONF_RABBIT 1
147 #if MDK_CONF_RABBI == 0
153 #define MDK_CONF_AEAD 0
154 #if MDK_CONF_AEAD == 1
159 #define MDK_CONF_DES3 1
160 #if MDK_CONF_DES3 == 0
165 #define MDK_CONF_CAMELLIA 0
166 #if MDK_CONF_CAMELLIA == 1
167 #define HAVE_CAMELLIA
172 // <i>need this for CYASSL_SERVER, OPENSSL_EXTRA
173 #define MDK_CONF_DH 1
179 #define MDK_CONF_DSA 1
180 #if MDK_CONF_DSA == 0
185 #define MDK_CONF_PWDBASED 1
186 #if MDK_CONF_PWDBASED == 0
192 #define MDK_CONF_ECC 0
193 #if MDK_CONF_ECC == 1
198 #define MDK_CONF_PSK 1
199 #if MDK_CONF_PSK == 0
203 // <e>AESCCM (Turn off Hardware Crypt)
204 #define MDK_CONF_AESCCM 0
205 #if MDK_CONF_AESCCM == 1
209 // <e>AESGCM (Turn off Hardware Crypt)
210 #define MDK_CONF_AESGCM 0
211 #if MDK_CONF_AESGCM == 1
216 // <e>NTRU (need License, "crypto_ntru.h")
217 #define MDK_CONF_NTRU 0
218 #if MDK_CONF_NTRU == 1
227 #define MDK_CONF_INLINE 0
228 #if MDK_CONF_INLINE == 0
234 #define MDK_CONF_DebugMessage 0
235 #if MDK_CONF_DebugMessage == 1
240 #define MDK_CONF_CheckMalloc 1
241 #if MDK_CONF_CheckMalloc == 1
242 #define CYASSL_MALLOC_CHECK
249 #define MDK_CONF_ErrNo 0
250 #if MDK_CONF_ErrNo == 1
254 // <e>zlib (need "zlib.h")
255 #define MDK_CONF_LIBZ 0
256 #if MDK_CONF_LIBZ == 1
260 // <e>CAVIUM (need CAVIUM headers)
261 #define MDK_CONF_CAVIUM 0
262 #if MDK_CONF_CAVIUM == 1
268 #define MDK_CONF_ErrorStrings 1
269 #if MDK_CONF_ErrorStrings == 0
270 #define NO_ERROR_STRINGS
275 #define MDK_CONF_SmallStack 1
276 #if MDK_CONF_SmallStack == 0
277 #define NO_CYASSL_SMALL_STACK
281 #define MDK_CONF_FASTMATH 0
282 #if MDK_CONF_FASTMATH == 1
283 #define USE_FAST_MATH
291 // <<< end of configuration section >>>