config-FS.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. /* config-FS.h
  2. *
  3. * Copyright (C) 2006-2023 wolfSSL Inc.
  4. *
  5. * This file is part of wolfSSL.
  6. *
  7. * wolfSSL 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. * wolfSSL 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-1335, USA
  20. */
  21. /**** wolfSSL for KEIL-RL Configuration ****/
  22. #define __CORTEX_M3__
  23. #define WOLFSSL_KEIL_RL
  24. #define NO_WRITEV
  25. #define NO_WOLFSSL_DIR
  26. #define NO_MAIN_DRIVER
  27. #define WOLFSSL_USER_IO
  28. #define WOLFSSL_DER_LOAD
  29. #define HAVE_NULL_CIPHER
  30. #define SINGLE_THREADED
  31. #define NO_ECHOSERVER
  32. #define NO_ECHOCLIENT
  33. #define NO_SIMPLE_SERVER
  34. #define NO_SIMPLE_CLIENT
  35. // <<< Use Configuration Wizard in Context Menu >>>
  36. // <h> Build Target: KEIL-FS
  37. // <h> Single Threaded, With File System, No TCP-net
  38. // </h>
  39. // <e>Command Shell
  40. #define MDK_CONF_SHELL 1
  41. #if MDK_CONF_SHELL == 1
  42. #define WOLFSSL_MDK_SHELL
  43. #endif
  44. // </e>
  45. // <h>wolfSSL Apps
  46. // <h>Crypt/Cipher
  47. // <o>Cert Storage <0=> SD Card <1=> Mem Buff (1024bytes) <2=> Mem Buff (2048bytes)
  48. #define MDK_CONF_CERT_BUFF 0
  49. #if MDK_CONF_CERT_BUFF== 1
  50. #define USE_CERT_BUFFERS_1024
  51. #elif MDK_CONF_CERT_BUFF == 2
  52. #define USE_CERT_BUFFERS_2048
  53. #endif
  54. // <e>Crypt/Cipher Test Suite
  55. #define MDK_CONF_CTaoCryptTest 1
  56. #if MDK_CONF_CTaoCryptTest == 0
  57. #define NO_CRYPT_TEST
  58. #endif
  59. // </e>
  60. // <e>Crypt/Cipher Benchmark
  61. #define MDK_CONF_CTaoCryptBenchmark 1
  62. #if MDK_CONF_CTaoCryptBenchmark == 0
  63. #define NO_CRYPT_BENCHMARK
  64. #endif
  65. // </e>
  66. // </h>
  67. // <h>STM32 Hardware Crypt
  68. // <e>STM32F2 Hardware RNG
  69. #define MDK_CONF_STM32F2_RNG 0
  70. #if MDK_CONF_STM32F2_RNG == 1
  71. #define STM32F2_RNG
  72. #else
  73. #define NO_DEV_RANDOM
  74. #endif
  75. // </e>
  76. // <e>STM32F2 Hardware Crypt
  77. #define MDK_CONF_STM32F2_CRYPTO 0
  78. #if MDK_CONF_STM32F2_CRYPTO == 1
  79. #define STM32F2_CRYPTO
  80. #endif
  81. // </e>
  82. // </h>
  83. // <h>wolfSSL Library
  84. // <h>SSL (Included by default)
  85. // </h>
  86. // <e>TLS
  87. #define MDK_CONF_TLS 1
  88. #if MDK_CONF_TLS == 0
  89. #define NO_TLS
  90. #endif
  91. // </e>
  92. // <e>CertGen
  93. #define MDK_CONF_CERT_GEN 0
  94. #if MDK_CONF_CERT_GEN == 1
  95. #define WOLFSSL_CERT_GEN
  96. #endif
  97. // </e>
  98. // <e>KeyGen
  99. #define MDK_CONF_KEY_GEN 0
  100. #if MDK_CONF_KEY_GEN == 1
  101. #define WOLFSSL_KEY_GEN
  102. #endif
  103. // </e>
  104. // <e>CRL
  105. #define MDK_CONF_DER_LOAD 0
  106. #if MDK_CONF_DER_LOAD == 1
  107. #define WOLFSSL_DER_LOAD
  108. #endif
  109. // </e>
  110. // <e>OpenSSL Extra
  111. #define MDK_CONF_OPENSSL_EXTRA 0
  112. #if MDK_CONF_OPENSSL_EXTRA == 1
  113. #define OPENSSL_EXTRA
  114. #endif
  115. // </e>
  116. // <h>CRL Monitor, OCSP (not supported with KEIL)
  117. // </h>
  118. // </h>
  119. // <h>wolfCrypt Library
  120. // <h>MD5, SHA, SHA-256, AES, RC4, ASN, RSA
  121. // </h>
  122. // <e>MD2
  123. #define MDK_CONF_MD2 0
  124. #if MDK_CONF_MD2 == 1
  125. #define WOLFSSL_MD2
  126. #endif
  127. // </e>
  128. // <e>MD4
  129. #define MDK_CONF_MD4 1
  130. #if MDK_CONF_MD4 == 0
  131. #define NO_MD4
  132. #endif
  133. // </e>
  134. // <e>SHA-384
  135. // <i>This has to be with SHA512
  136. #define MDK_CONF_SHA384 0
  137. #if MDK_CONF_SHA384 == 1
  138. #define WOLFSSL_SHA384
  139. #endif
  140. // </e>
  141. // <e>SHA-512
  142. #define MDK_CONF_SHA512 0
  143. #if MDK_CONF_SHA512 == 1
  144. #define WOLFSSL_SHA512
  145. #endif
  146. // </e>
  147. // <e>RIPEMD
  148. #define MDK_CONF_RIPEMD 0
  149. #if MDK_CONF_RIPEMD == 1
  150. #define WOLFSSL_RIPEMD
  151. #endif
  152. // </e>
  153. // <e>HMAC
  154. #define MDK_CONF_HMAC 1
  155. #if MDK_CONF_HMAC == 0
  156. #define NO_HMAC
  157. #endif
  158. // </e>
  159. // <e>AEAD
  160. #define MDK_CONF_AEAD 0
  161. #if MDK_CONF_AEAD == 1
  162. #define HAVE_AEAD
  163. #endif
  164. // </e>
  165. // <e>DES3
  166. #define MDK_CONF_DES3 1
  167. #if MDK_CONF_DES3 == 0
  168. #define NO_DES3
  169. #endif
  170. // </e>
  171. // <e>CAMELLIA
  172. #define MDK_CONF_CAMELLIA 0
  173. #if MDK_CONF_CAMELLIA == 1
  174. #define HAVE_CAMELLIA
  175. #endif
  176. // </e>
  177. // <e>DH
  178. // <i>need this for WOLFSSL_SERVER, OPENSSL_EXTRA
  179. #define MDK_CONF_DH 1
  180. #if MDK_CONF_DH == 0
  181. #define NO_DH
  182. #endif
  183. // </e>
  184. // <e>DSA
  185. #define MDK_CONF_DSA 1
  186. #if MDK_CONF_DSA == 0
  187. #define NO_DSA
  188. #endif
  189. // </e>
  190. // <e>PWDBASED
  191. #define MDK_CONF_PWDBASED 1
  192. #if MDK_CONF_PWDBASED == 0
  193. #define NO_PWDBASED
  194. #endif
  195. // </e>
  196. // <e>ECC
  197. #define MDK_CONF_ECC 0
  198. #if MDK_CONF_ECC == 1
  199. #define HAVE_ECC
  200. #endif
  201. // </e>
  202. // <e>PSK
  203. #define MDK_CONF_PSK 1
  204. #if MDK_CONF_PSK == 0
  205. #define NO_PSK
  206. #endif
  207. // </e>
  208. // <e>AESCCM (Turn off Hardware Crypt)
  209. #define MDK_CONF_AESCCM 0
  210. #if MDK_CONF_AESCCM == 1
  211. #define HAVE_AESCCM
  212. #endif
  213. // </e>
  214. // <e>AESGCM (Turn off Hardware Crypt)
  215. #define MDK_CONF_AESGCM 0
  216. #if MDK_CONF_AESGCM == 1
  217. #define HAVE_AESGCM
  218. #define BUILD_AESGCM
  219. #endif
  220. // </e>
  221. // </h>
  222. // <h>Others
  223. // <e>Inline
  224. #define MDK_CONF_INLINE 0
  225. #if MDK_CONF_INLINE == 0
  226. #define NO_INLINE
  227. #endif
  228. // </e>
  229. // <h>Debug
  230. // <e>Debug Message
  231. #define MDK_CONF_DebugMessage 0
  232. #if MDK_CONF_DebugMessage == 1
  233. #define DEBUG_WOLFSSL
  234. #endif
  235. // </e>
  236. // <e>Check malloc
  237. #define MDK_CONF_CheckMalloc 1
  238. #if MDK_CONF_CheckMalloc == 1
  239. #define WOLFSSL_MALLOC_CHECK
  240. #endif
  241. // </e>
  242. // </h>
  243. // <e>ErrNo.h
  244. #define MDK_CONF_ErrNo 0
  245. #if MDK_CONF_ErrNo == 1
  246. #define HAVE_ERRNO
  247. #endif
  248. // </e>
  249. // <e>zlib (need "zlib.h")
  250. #define MDK_CONF_LIBZ 0
  251. #if MDK_CONF_LIBZ == 1
  252. #define HAVE_LIBZ
  253. #endif
  254. // </e>
  255. // <e>CAVIUM (need CAVIUM headers)
  256. #define MDK_CONF_CAVIUM 0
  257. #if MDK_CONF_CAVIUM == 1
  258. #define HAVE_CAVIUM
  259. #endif
  260. // </e>
  261. // <e>Error Strings
  262. #define MDK_CONF_ErrorStrings 1
  263. #if MDK_CONF_ErrorStrings == 0
  264. #define NO_ERROR_STRINGS
  265. #endif
  266. // </e>
  267. // <e>Small Stack
  268. #define MDK_CONF_SmallStack 1
  269. #if MDK_CONF_SmallStack == 0
  270. #define NO_WOLFSSL_SMALL_STACK
  271. #endif
  272. // </e>
  273. // <e>Use Fast Math
  274. #define MDK_CONF_FASTMATH 0
  275. #if MDK_CONF_FASTMATH == 1
  276. #define USE_FAST_MATH
  277. #endif
  278. // </e>
  279. // </h>
  280. //</h>
  281. // <<< end of configuration section >>>