]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/CyaSSL/IDE/MDK-ARM/MDK-ARM/CyaSSL/config-BARE-METAL.h
Update CyaSSL to latest version.
[freertos] / FreeRTOS-Plus / Source / CyaSSL / IDE / MDK-ARM / MDK-ARM / CyaSSL / config-BARE-METAL.h
1 /* config-BEREFOOT.h
2  *
3  * Copyright (C) 2006-2014 wolfSSL Inc.
4  *
5  * This file is part of CyaSSL.
6  *
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.
11  *
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.
16  *
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
20  */
21
22
23 /**** CyaSSL for KEIL-RL Configuration ****/
24
25 #define __CORTEX_M3__
26 #define CYASSL_MDK_ARM
27 #define NO_WRITEV
28 #define NO_CYASSL_DIR
29 #define NO_MAIN_DRIVER
30
31 #define CYASSL_DER_LOAD
32 #define HAVE_NULL_CIPHER
33
34 #define SINGLE_THREADED
35 #define NO_FILESYSTEM
36 #define NO_TLS
37
38 #define NO_ECHOSERVER
39 #define NO_ECHOCLIENT
40 #define NO_SIMPLE_SERVER
41 #define NO_SIMPLE_CLIENT
42
43 // <<< Use Configuration Wizard in Context Menu >>>
44
45 // <h> Build Target: KEIL-BAREFOOT
46 //  <h> Single Threaded, No File System, No TCP-net
47 //   </h>
48 //      <e>Command Shell
49 #define MDK_CONF_SHELL 1
50 #if MDK_CONF_SHELL  == 1
51 #define CYASSL_MDK_SHELL
52 #endif
53 //  </e>
54 //  <h>CyaSSL Apps
55 //  <h>Crypt/Cipher
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
62 #endif
63
64 //      <e>Crypt/Cipher Test Suite
65 #define MDK_CONF_CTaoCryptTest 1
66 #if MDK_CONF_CTaoCryptTest  == 0
67 #define NO_CRYPT_TEST
68 #endif
69 //  </e>
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
75 #endif
76 //  </e>
77 //   </h>
78
79 //  <h>STM32 Hardware Crypt
80 //      <e>STM32F2 Hardware RNG
81 #define MDK_CONF_STM32F2_RNG 0
82 #if MDK_CONF_STM32F2_RNG == 1
83 #define STM32F2_RNG
84 #else
85 #define NO_DEV_RANDOM
86 #endif
87 //  </e>
88 //      <e>STM32F2 Hardware Crypt
89 #define MDK_CONF_STM32F2_CRYPTO 0
90 #if MDK_CONF_STM32F2_CRYPTO == 1
91 #define STM32F2_CRYPTO
92 #endif
93 //  </e>
94
95 // </h>
96
97
98 //  <h>CTaoCrypt Library
99
100 //       <h>MD5, SHA, SHA-256, AES, RC4, ASN, RSA
101 //        </h>
102 //      <e>MD2
103 #define MDK_CONF_MD2 0
104 #if MDK_CONF_MD2 == 1
105 #define CYASSL_MD2
106 #endif
107 //  </e>
108 //      <e>MD4
109 #define MDK_CONF_MD4 1
110 #if MDK_CONF_MD4 == 0
111 #define NO_MD4
112 #endif
113 //  </e>
114 //      <e>SHA-384
115 //          <i>This has to be with SHA512
116 #define MDK_CONF_SHA384 0
117 #if MDK_CONF_SHA384 == 1
118 #define CYASSL_SHA384
119 #endif
120 //  </e>
121 //      <e>SHA-512          
122 #define MDK_CONF_SHA512     0
123 #if MDK_CONF_SHA512     == 1
124 #define CYASSL_SHA512   
125 #endif
126 //  </e>
127 //      <e>RIPEMD
128 #define MDK_CONF_RIPEMD 0
129 #if MDK_CONF_RIPEMD == 1
130 #define CYASSL_RIPEMD
131 #endif
132 //  </e>
133 //      <e>HMAC
134 #define MDK_CONF_HMAC 1
135 #if MDK_CONF_HMAC == 0
136 #define NO_HMAC
137 #endif
138 //  </e>
139 //      <e>HC128
140 #define MDK_CONF_HC128 0
141 #if MDK_CONF_HC128 == 1
142 #define HAVE_HC128
143 #endif
144 //  </e>
145 //  <e>RABBIT
146 #define MDK_CONF_RABBIT 1
147 #if MDK_CONF_RABBI == 0
148 #define NO_RABBIT
149 #endif
150 //  </e>
151
152 //      <e>AEAD     
153 #define MDK_CONF_AEAD 0
154 #if MDK_CONF_AEAD == 1
155 #define HAVE_AEAD
156 #endif
157 //  </e>
158 //      <e>DES3
159 #define MDK_CONF_DES3 1
160 #if MDK_CONF_DES3 == 0
161 #define NO_DES3
162 #endif
163 //  </e>
164 //      <e>CAMELLIA
165 #define MDK_CONF_CAMELLIA 0
166 #if MDK_CONF_CAMELLIA == 1
167 #define HAVE_CAMELLIA
168 #endif
169 //  </e>
170
171 //      <e>DH
172 //              <i>need this for CYASSL_SERVER, OPENSSL_EXTRA
173 #define MDK_CONF_DH 1
174 #if MDK_CONF_DH == 0
175 #define NO_DH
176 #endif
177 //  </e>
178 //      <e>DSA
179 #define MDK_CONF_DSA 1 
180 #if MDK_CONF_DSA == 0
181 #define NO_DSA
182 #endif
183 //  </e>
184 //      <e>PWDBASED
185 #define MDK_CONF_PWDBASED 1
186 #if MDK_CONF_PWDBASED == 0
187 #define NO_PWDBASED
188 #endif
189 //  </e>
190
191 //      <e>ECC
192 #define MDK_CONF_ECC 0
193 #if MDK_CONF_ECC == 1
194 #define HAVE_ECC
195 #endif
196 //  </e>
197 //      <e>PSK
198 #define MDK_CONF_PSK 1
199 #if MDK_CONF_PSK == 0
200 #define NO_PSK
201 #endif
202 //  </e>
203 //      <e>AESCCM (Turn off Hardware Crypt)
204 #define MDK_CONF_AESCCM 0
205 #if MDK_CONF_AESCCM == 1
206 #define HAVE_AESCCM
207 #endif
208 //  </e>
209 //      <e>AESGCM (Turn off Hardware Crypt)
210 #define MDK_CONF_AESGCM 0
211 #if MDK_CONF_AESGCM == 1
212 #define HAVE_AESGCM
213 #define BUILD_AESGCM
214 #endif
215 //  </e>
216 //      <e>NTRU (need License, "crypto_ntru.h")
217 #define MDK_CONF_NTRU 0
218 #if MDK_CONF_NTRU == 1
219 #define HAVE_NTRU
220 #endif
221 //  </e>
222 //  </h>
223
224 //  <h>Others
225
226 //      <e>Inline
227 #define MDK_CONF_INLINE 0
228 #if MDK_CONF_INLINE == 0
229 #define NO_INLINE
230 #endif
231 //  </e>
232 //      <h>Debug
233 //              <e>Debug Message
234 #define MDK_CONF_DebugMessage 0
235 #if MDK_CONF_DebugMessage == 1
236 #define DEBUG_CYASSL
237 #endif
238 //         </e>
239 //              <e>Check malloc
240 #define MDK_CONF_CheckMalloc 1
241 #if MDK_CONF_CheckMalloc == 1
242 #define CYASSL_MALLOC_CHECK
243 #endif
244 //         </e>
245
246
247 //  </h>
248 //      <e>ErrNo.h
249 #define MDK_CONF_ErrNo 0
250 #if MDK_CONF_ErrNo == 1
251 #define HAVE_ERRNO
252 #endif
253 //  </e>
254 //      <e>zlib (need "zlib.h")
255 #define MDK_CONF_LIBZ 0
256 #if MDK_CONF_LIBZ == 1
257 #define HAVE_LIBZ
258 #endif
259 //  </e>
260 //      <e>CAVIUM (need CAVIUM headers)
261 #define MDK_CONF_CAVIUM 0
262 #if MDK_CONF_CAVIUM == 1
263 #define HAVE_CAVIUM
264 #endif
265 //  </e>
266
267 //      <e>Error Strings
268 #define MDK_CONF_ErrorStrings 1
269 #if MDK_CONF_ErrorStrings == 0
270 #define NO_ERROR_STRINGS
271 #endif
272 //  </e>
273
274 //      <e>Small Stack
275 #define MDK_CONF_SmallStack 1
276 #if MDK_CONF_SmallStack == 0
277 #define NO_CYASSL_SMALL_STACK
278 #endif
279 //  </e>
280 //      <e>Use Fast Math
281 #define MDK_CONF_FASTMATH 0
282 #if MDK_CONF_FASTMATH == 1
283 #define USE_FAST_MATH
284 #endif
285 //  </e>
286
287
288 //  </h>
289
290 //</h>
291 // <<< end of configuration section >>>