2
0

default_conf.ftl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. [#ftl]
  2. /**
  3. ******************************************************************************
  4. * File Name : ${name}
  5. * Description : This file provides code for the configuration
  6. * of the ${name} instances.
  7. ******************************************************************************
  8. [@common.optinclude name=mxTmpFolder+"/license.tmp"/][#--include License text --]
  9. ******************************************************************************
  10. */
  11. [#assign s = name]
  12. [#assign toto = s?replace(".","_")]
  13. [#assign toto = toto?replace("/","")]
  14. [#assign toto = toto?replace("-","_")]
  15. [#assign inclusion_protection = toto?upper_case]
  16. /* Define to prevent recursive inclusion -------------------------------------*/
  17. #ifndef __${inclusion_protection}__
  18. #define __${inclusion_protection}__
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. /* Includes ------------------------------------------------------------------*/
  23. [#if includes??]
  24. [#list includes as include]
  25. #include "${include}"
  26. [/#list]
  27. [/#if]
  28. [#-- SWIPdatas is a list of SWIPconfigModel --]
  29. [#list SWIPdatas as SWIP]
  30. [#-- Global variables --]
  31. [#if SWIP.variables??]
  32. [#list SWIP.variables as variable]
  33. extern ${variable.value} ${variable.name};
  34. [/#list]
  35. [/#if]
  36. [#-- Global variables --]
  37. [#assign instName = SWIP.ipName]
  38. [#assign fileName = SWIP.fileName]
  39. [#assign version = SWIP.version]
  40. /**
  41. MiddleWare name : ${instName}
  42. MiddleWare fileName : ${fileName}
  43. MiddleWare version : ${version}
  44. */
  45. [#if SWIP.defines??]
  46. [#list SWIP.defines as definition]
  47. /*---------- [#if definition.comments??]${definition.comments}[/#if] -----------*/
  48. #define ${definition.name} #t#t ${definition.value}
  49. [#if definition.description??]${definition.description} [/#if]
  50. [/#list]
  51. [/#if]
  52. [/#list]
  53. /* ------------------------------------------------------------------------- */
  54. /* Hardware platform */
  55. /* ------------------------------------------------------------------------- */
  56. /* Setup default (No crypto hardware acceleration or TLS UART test).
  57. * Use undef in platform section to enable it.
  58. */
  59. #define NO_STM32_HASH
  60. #define NO_STM32_CRYPTO
  61. #define NO_TLS_UART_TEST
  62. #if defined(STM32WB55xx)
  63. #define WOLFSSL_STM32WB
  64. #define WOLFSSL_STM32_PKA
  65. #undef NO_STM32_CRYPTO
  66. #define HAL_CONSOLE_UART huart1
  67. #elif defined(STM32F407xx)
  68. #define WOLFSSL_STM32F4
  69. #define HAL_CONSOLE_UART huart2
  70. #elif defined(STM32F437xx)
  71. #define WOLFSSL_STM32F4
  72. #undef NO_STM32_HASH
  73. #undef NO_STM32_CRYPTO
  74. #define STM32_HAL_V2
  75. #define HAL_CONSOLE_UART huart4
  76. #elif defined(STM32F777xx)
  77. #define WOLFSSL_STM32F7
  78. #undef NO_STM32_HASH
  79. #undef NO_STM32_CRYPTO
  80. #define STM32_HAL_V2
  81. #define HAL_CONSOLE_UART huart2
  82. #elif defined(STM32F756xx)
  83. #define WOLFSSL_STM32F7
  84. #undef NO_STM32_HASH
  85. #undef NO_STM32_CRYPTO
  86. #define STM32_HAL_V2
  87. #define HAL_CONSOLE_UART huart3
  88. #elif defined(STM32H753xx)
  89. #define WOLFSSL_STM32H7
  90. #undef NO_STM32_HASH
  91. #undef NO_STM32_CRYPTO
  92. #define HAL_CONSOLE_UART huart3
  93. #elif defined(STM32H723xx)
  94. #define WOLFSSL_STM32H7
  95. #define HAL_CONSOLE_UART huart3
  96. #elif defined(STM32L4A6xx)
  97. #define WOLFSSL_STM32L4
  98. #undef NO_STM32_HASH
  99. #undef NO_STM32_CRYPTO
  100. #define HAL_CONSOLE_UART hlpuart1
  101. #elif defined(STM32L475xx)
  102. #define WOLFSSL_STM32L4
  103. #define HAL_CONSOLE_UART huart1
  104. #elif defined(STM32L562xx)
  105. #define WOLFSSL_STM32L5
  106. #define WOLFSSL_STM32_PKA
  107. #undef NO_STM32_HASH
  108. #undef NO_STM32_CRYPTO
  109. #define HAL_CONSOLE_UART huart1
  110. #elif defined(STM32L552xx)
  111. #define WOLFSSL_STM32L5
  112. #undef NO_STM32_HASH
  113. #define HAL_CONSOLE_UART hlpuart1
  114. #elif defined(STM32F207xx)
  115. #define WOLFSSL_STM32F2
  116. #define HAL_CONSOLE_UART huart3
  117. #elif defined(STM32F217xx)
  118. #define WOLFSSL_STM32F2
  119. #define HAL_CONSOLE_UART huart2
  120. #elif defined(STM32F107xC)
  121. #define WOLFSSL_STM32F1
  122. #define HAL_CONSOLE_UART huart4
  123. #define NO_STM32_RNG
  124. #elif defined(STM32F401xE)
  125. #define WOLFSSL_STM32F4
  126. #define HAL_CONSOLE_UART huart2
  127. #define NO_STM32_RNG
  128. #define WOLFSSL_GENSEED_FORTEST /* no HW RNG is available use test seed */
  129. #elif defined(STM32G071xx)
  130. #define WOLFSSL_STM32G0
  131. #define HAL_CONSOLE_UART huart2
  132. #define NO_STM32_RNG
  133. #define WOLFSSL_GENSEED_FORTEST /* no HW RNG is available use test seed */
  134. #elif defined(STM32U575xx) || defined(STM32U585xx)
  135. #define HAL_CONSOLE_UART huart1
  136. #define WOLFSSL_STM32U5
  137. #define STM32_HAL_V2
  138. #ifdef STM32U585xx
  139. #undef NO_STM32_HASH
  140. #undef NO_STM32_CRYPTO
  141. #define WOLFSSL_STM32_PKA
  142. #endif
  143. #elif defined(STM32H563xx)
  144. #define WOLFSSL_STM32H5
  145. #define HAL_CONSOLE_UART huart3
  146. #define STM32_HAL_V2
  147. #undef NO_STM32_HASH
  148. #else
  149. #warning Please define a hardware platform!
  150. /* This means there is not a pre-defined platform for your board/CPU */
  151. /* You need to define a CPU type, HW crypto and debug UART */
  152. /* CPU Type: WOLFSSL_STM32F1, WOLFSSL_STM32F2, WOLFSSL_STM32F4,
  153. WOLFSSL_STM32F7, WOLFSSL_STM32H7, WOLFSSL_STM32L4, WOLFSSL_STM32L5,
  154. WOLFSSL_STM32G0, WOLFSSL_STM32WB and WOLFSSL_STM32U5 */
  155. #define WOLFSSL_STM32F4
  156. /* Debug UART used for printf */
  157. /* The UART interface number varies for each board/CPU */
  158. /* Typically this is the UART attached to the ST-Link USB CDC UART port */
  159. #define HAL_CONSOLE_UART huart4
  160. /* Hardware Crypto - uncomment as available on hardware */
  161. //#define WOLFSSL_STM32_PKA
  162. //#define NO_STM32_RNG
  163. //#undef NO_STM32_HASH
  164. //#undef NO_STM32_CRYPTO
  165. //#define WOLFSSL_GENSEED_FORTEST /* if no HW RNG is available use test seed */
  166. //#define STM32_HAL_V2
  167. #endif
  168. /* ------------------------------------------------------------------------- */
  169. /* Platform */
  170. /* ------------------------------------------------------------------------- */
  171. #define SIZEOF_LONG_LONG 8
  172. #define WOLFSSL_GENERAL_ALIGNMENT 4
  173. #define WOLFSSL_STM32_CUBEMX
  174. #define WOLFSSL_SMALL_STACK
  175. #define WOLFSSL_USER_IO
  176. #define WOLFSSL_NO_SOCK
  177. #define WOLFSSL_IGNORE_FILE_WARN
  178. /* ------------------------------------------------------------------------- */
  179. /* Operating System */
  180. /* ------------------------------------------------------------------------- */
  181. #if defined(WOLF_CONF_RTOS) && WOLF_CONF_RTOS == 2
  182. #define FREERTOS
  183. #else
  184. #define SINGLE_THREADED
  185. #endif
  186. /* ------------------------------------------------------------------------- */
  187. /* Math Configuration */
  188. /* ------------------------------------------------------------------------- */
  189. /* 1=Fast (stack)
  190. * 2=Normal (heap)
  191. * 3=Single Precision C (only common curves/key sizes)
  192. * 4=Single Precision ASM Cortex-M3+
  193. * 5=Single Precision ASM Cortex-M0 (Generic Thumb)
  194. * 6=Single Precision C all small
  195. * 7=Single Precision C all big
  196. */
  197. #if defined(WOLF_CONF_MATH) && WOLF_CONF_MATH == 1
  198. /* fast (stack) math - tfm.c */
  199. #define USE_FAST_MATH
  200. #define TFM_TIMING_RESISTANT
  201. /* Optimizations (TFM_ARM, TFM_ASM or none) */
  202. //#define TFM_NO_ASM
  203. //#define TFM_ASM
  204. #elif defined(WOLF_CONF_MATH) && WOLF_CONF_MATH == 2
  205. /* heap math - integer.c */
  206. #define USE_INTEGER_HEAP_MATH
  207. #elif defined(WOLF_CONF_MATH) && (WOLF_CONF_MATH >= 3)
  208. /* single precision only */
  209. #define WOLFSSL_SP
  210. #if WOLF_CONF_MATH != 7
  211. #define WOLFSSL_SP_SMALL /* use smaller version of code */
  212. #endif
  213. #if defined(WOLF_CONF_RSA) && WOLF_CONF_RSA == 1
  214. #define WOLFSSL_HAVE_SP_RSA
  215. #endif
  216. #if defined(WOLF_CONF_DH) && WOLF_CONF_DH == 1
  217. #define WOLFSSL_HAVE_SP_DH
  218. #endif
  219. #if defined(WOLF_CONF_ECC) && WOLF_CONF_ECC == 1
  220. #define WOLFSSL_HAVE_SP_ECC
  221. #endif
  222. #if WOLF_CONF_MATH == 6 || WOLF_CONF_MATH == 7
  223. #define WOLFSSL_SP_MATH /* disable non-standard curves / key sizes */
  224. #endif
  225. #define SP_WORD_SIZE 32
  226. /* Enable to put all math on stack (no heap) */
  227. //#define WOLFSSL_SP_NO_MALLOC
  228. /* Enable for SP cache resistance (not usually enabled for embedded micros) */
  229. //#define WOLFSSL_SP_CACHE_RESISTANT
  230. #if WOLF_CONF_MATH == 4 || WOLF_CONF_MATH == 5
  231. #define WOLFSSL_SP_ASM /* required if using the ASM versions */
  232. #if WOLF_CONF_MATH == 4
  233. /* ARM Cortex-M3+ */
  234. #define WOLFSSL_SP_ARM_CORTEX_M_ASM
  235. #endif
  236. #if WOLF_CONF_MATH == 5
  237. /* Generic ARM Thumb (Cortex-M0) Assembly */
  238. #define WOLFSSL_SP_ARM_THUMB_ASM
  239. #endif
  240. #endif
  241. #endif
  242. /* ------------------------------------------------------------------------- */
  243. /* Enable Features */
  244. /* ------------------------------------------------------------------------- */
  245. /* Required for TLS */
  246. #define HAVE_TLS_EXTENSIONS
  247. #define HAVE_SUPPORTED_CURVES
  248. #define HAVE_ENCRYPT_THEN_MAC
  249. #define HAVE_EXTENDED_MASTER
  250. #if defined(WOLF_CONF_TLS13) && WOLF_CONF_TLS13 == 1
  251. #define WOLFSSL_TLS13
  252. #define HAVE_HKDF
  253. #endif
  254. #if defined(WOLF_CONF_DTLS) && WOLF_CONF_DTLS == 1
  255. #define WOLFSSL_DTLS
  256. #endif
  257. #if defined(WOLF_CONF_PSK) && WOLF_CONF_PSK == 0
  258. #define NO_PSK
  259. #endif
  260. #if defined(WOLF_CONF_PWDBASED) && WOLF_CONF_PWDBASED == 0
  261. #define NO_PWDBASED
  262. #endif
  263. #if defined(WOLF_CONF_KEEP_PEER_CERT) && WOLF_CONF_KEEP_PEER_CERT == 1
  264. #define KEEP_PEER_CERT
  265. #endif
  266. #if defined(WOLF_CONF_BASE64_ENCODE) && WOLF_CONF_BASE64_ENCODE == 1
  267. #define WOLFSSL_BASE64_ENCODE
  268. #endif
  269. #if defined(WOLF_CONF_OPENSSL_EXTRA) && WOLF_CONF_OPENSSL_EXTRA >= 1
  270. #define OPENSSL_EXTRA
  271. #if !defined(INT_MAX)
  272. #include <limits.h>
  273. #endif
  274. #endif
  275. #if defined(WOLF_CONF_OPENSSL_EXTRA) && WOLF_CONF_OPENSSL_EXTRA >= 2
  276. #define OPENSSL_ALL
  277. #endif
  278. /* TLS Session Cache */
  279. #if 0
  280. #define SMALL_SESSION_CACHE
  281. #else
  282. #define NO_SESSION_CACHE
  283. #endif
  284. /* Post Quantum
  285. * Note: PQM4 is compatible with STM32. The project can be found at:
  286. * https://github.com/mupq/pqm4
  287. */
  288. #if defined(WOLF_CONF_PQM4) && WOLF_CONF_PQM4 == 1
  289. #define HAVE_PQM4
  290. #endif
  291. /* ------------------------------------------------------------------------- */
  292. /* Crypto */
  293. /* ------------------------------------------------------------------------- */
  294. /* RSA */
  295. #undef NO_RSA
  296. #if defined(WOLF_CONF_RSA) && WOLF_CONF_RSA == 1
  297. #ifdef USE_FAST_MATH
  298. /* Maximum math bits (Max RSA key bits * 2) */
  299. #undef FP_MAX_BITS
  300. #define FP_MAX_BITS 4096
  301. #endif
  302. /* half as much memory but twice as slow */
  303. #undef RSA_LOW_MEM
  304. //#define RSA_LOW_MEM
  305. /* Enables blinding mode, to prevent timing attacks */
  306. #undef WC_RSA_BLINDING
  307. #define WC_RSA_BLINDING
  308. /* RSA PSS Support (required for TLS v1.3) */
  309. #ifdef WOLFSSL_TLS13
  310. #define WC_RSA_PSS
  311. #endif
  312. #else
  313. #define NO_RSA
  314. #endif
  315. /* ECC */
  316. #undef HAVE_ECC
  317. #if defined(WOLF_CONF_ECC) && WOLF_CONF_ECC == 1
  318. #define HAVE_ECC
  319. /* Manually define enabled curves */
  320. #define ECC_USER_CURVES
  321. //#define HAVE_ECC192
  322. //#define HAVE_ECC224
  323. #undef NO_ECC256
  324. //#define HAVE_ECC384
  325. //#define HAVE_ECC521
  326. /* Fixed point cache (speeds repeated operations against same private key) */
  327. #undef FP_ECC
  328. //#define FP_ECC
  329. #ifdef FP_ECC
  330. /* Bits / Entries */
  331. #undef FP_ENTRIES
  332. #define FP_ENTRIES 2
  333. #undef FP_LUT
  334. #define FP_LUT 4
  335. #endif
  336. /* Optional ECC calculation method */
  337. /* Note: doubles heap usage, but slightly faster */
  338. #undef ECC_SHAMIR
  339. #define ECC_SHAMIR
  340. /* Reduces heap usage, but slower */
  341. #define ECC_TIMING_RESISTANT
  342. /* Compressed ECC key support */
  343. //#define HAVE_COMP_KEY
  344. #ifdef USE_FAST_MATH
  345. #ifdef NO_RSA
  346. /* Custom fastmath size if not using RSA */
  347. /* MAX = ROUND32(ECC BITS) * 2 */
  348. #define FP_MAX_BITS (256 * 2)
  349. #else
  350. #define ALT_ECC_SIZE
  351. #endif
  352. /* Enable TFM optimizations for ECC */
  353. //#define TFM_ECC192
  354. //#define TFM_ECC224
  355. //#define TFM_ECC256
  356. //#define TFM_ECC384
  357. //#define TFM_ECC521
  358. #endif
  359. #endif
  360. /* DH */
  361. #undef NO_DH
  362. #if defined(WOLF_CONF_DH) && WOLF_CONF_DH == 1
  363. #define HAVE_DH /* freeRTOS settings.h requires this */
  364. #define HAVE_FFDHE_2048
  365. #define HAVE_DH_DEFAULT_PARAMS
  366. #else
  367. #define NO_DH
  368. #endif
  369. /* AES */
  370. #if defined(WOLF_CONF_AESGCM) && WOLF_CONF_AESGCM == 1
  371. #define HAVE_AESGCM
  372. /* GCM Method: GCM_SMALL, GCM_WORD32, GCM_TABLE or GCM_TABLE_4BIT */
  373. /* GCM_TABLE is about 4K larger and 3x faster for GHASH */
  374. #define GCM_SMALL
  375. #define HAVE_AES_DECRYPT
  376. #endif
  377. #if defined(WOLF_CONF_AESCBC) && WOLF_CONF_AESCBC == 1
  378. #define HAVE_AES_CBC
  379. #define HAVE_AES_DECRYPT
  380. #endif
  381. /* Other possible AES modes */
  382. //#define WOLFSSL_AES_COUNTER
  383. //#define HAVE_AESCCM
  384. //#define WOLFSSL_AES_XTS
  385. //#define WOLFSSL_AES_DIRECT
  386. //#define HAVE_AES_ECB
  387. //#define HAVE_AES_KEYWRAP
  388. //#define AES_MAX_KEY_SIZE 256
  389. /* ChaCha20 / Poly1305 */
  390. #undef HAVE_CHACHA
  391. #undef HAVE_POLY1305
  392. #if defined(WOLF_CONF_CHAPOLY) && WOLF_CONF_CHAPOLY == 1
  393. #define HAVE_CHACHA
  394. #define HAVE_POLY1305
  395. /* Needed for Poly1305 */
  396. #undef HAVE_ONE_TIME_AUTH
  397. #define HAVE_ONE_TIME_AUTH
  398. #endif
  399. /* Ed25519 / Curve25519 */
  400. #undef HAVE_CURVE25519
  401. #undef HAVE_ED25519
  402. #if defined(WOLF_CONF_EDCURVE25519) && WOLF_CONF_EDCURVE25519 == 1
  403. #define HAVE_CURVE25519
  404. #define HAVE_ED25519
  405. /* Optionally use small math (less flash usage, but much slower) */
  406. #define CURVED25519_SMALL
  407. #endif
  408. /* ------------------------------------------------------------------------- */
  409. /* Hashing */
  410. /* ------------------------------------------------------------------------- */
  411. /* Sha1 */
  412. #undef NO_SHA
  413. #if defined(WOLF_CONF_SHA1) && WOLF_CONF_SHA1 == 1
  414. /* 1k smaller, but 25% slower */
  415. //#define USE_SLOW_SHA
  416. #else
  417. #define NO_SHA
  418. #endif
  419. /* Sha2-256 */
  420. #undef NO_SHA256
  421. #if defined(WOLF_CONF_SHA2_256) && WOLF_CONF_SHA2_256 == 1
  422. /* not unrolled - ~2k smaller and ~25% slower */
  423. //#define USE_SLOW_SHA256
  424. //#define WOLFSSL_SHAKE256
  425. /* Sha2-224 */
  426. #if defined(WOLF_CONF_SHA2_224) && WOLF_CONF_SHA2_224 == 1
  427. #define WOLFSSL_SHA224
  428. #endif
  429. #else
  430. #define NO_SHA256
  431. #endif
  432. /* Sha2-512 */
  433. #undef WOLFSSL_SHA512
  434. #if defined(WOLF_CONF_SHA2_512) && WOLF_CONF_SHA2_512 == 1
  435. /* over twice as small, but 50% slower */
  436. //#define USE_SLOW_SHA512
  437. #define WOLFSSL_SHA512
  438. #define HAVE_SHA512 /* freeRTOS settings.h requires this */
  439. #endif
  440. /* Sha2-384 */
  441. #undef WOLFSSL_SHA384
  442. #if defined(WOLF_CONF_SHA2_384) && WOLF_CONF_SHA2_384 == 1
  443. #define WOLFSSL_SHA384
  444. #endif
  445. /* Sha3 */
  446. #undef WOLFSSL_SHA3
  447. #if defined(WOLF_CONF_SHA3) && WOLF_CONF_SHA3 == 1
  448. #define WOLFSSL_SHA3
  449. #endif
  450. /* MD5 */
  451. #if defined(WOLF_CONF_MD5) && WOLF_CONF_MD5 == 1
  452. /* enabled */
  453. #else
  454. #define NO_MD5
  455. #endif
  456. /* ------------------------------------------------------------------------- */
  457. /* Benchmark / Test */
  458. /* ------------------------------------------------------------------------- */
  459. /* Use reduced benchmark / test sizes */
  460. #define BENCH_EMBEDDED
  461. #define USE_CERT_BUFFERS_2048
  462. #define USE_CERT_BUFFERS_256
  463. /* ------------------------------------------------------------------------- */
  464. /* Debugging */
  465. /* ------------------------------------------------------------------------- */
  466. #if defined(WOLF_CONF_DEBUG) && WOLF_CONF_DEBUG == 1
  467. #define DEBUG_WOLFSSL
  468. /* Use this to measure / print heap usage */
  469. #if 0
  470. #define USE_WOLFSSL_MEMORY
  471. #define WOLFSSL_TRACK_MEMORY
  472. #define WOLFSSL_DEBUG_MEMORY
  473. #define WOLFSSL_DEBUG_MEMORY_PRINT
  474. #endif
  475. #else
  476. //#define NO_WOLFSSL_MEMORY
  477. //#define NO_ERROR_STRINGS
  478. #endif
  479. /* ------------------------------------------------------------------------- */
  480. /* Port */
  481. /* ------------------------------------------------------------------------- */
  482. /* Override Current Time */
  483. /* Allows custom "custom_time()" function to be used for benchmark */
  484. #define WOLFSSL_USER_CURRTIME
  485. /* ------------------------------------------------------------------------- */
  486. /* RNG */
  487. /* ------------------------------------------------------------------------- */
  488. #define NO_OLD_RNGNAME /* conflicts with STM RNG macro */
  489. #if !defined(WOLF_CONF_RNG) || WOLF_CONF_RNG == 1
  490. /* default is enabled */
  491. #define HAVE_HASHDRBG
  492. #else /* WOLF_CONF_RNG == 0 */
  493. #define WC_NO_HASHDRBG
  494. #define WC_NO_RNG
  495. #endif
  496. /* ------------------------------------------------------------------------- */
  497. /* Disable Features */
  498. /* ------------------------------------------------------------------------- */
  499. #if defined(WOLF_CONF_TLS12) && WOLF_CONF_TLS12 == 0
  500. #define WOLFSSL_NO_TLS12
  501. #endif
  502. #if defined(WOLF_CONF_WOLFCRYPT_ONLY) && WOLF_CONF_WOLFCRYPT_ONLY == 1
  503. #define WOLFCRYPT_ONLY
  504. #endif
  505. //#define NO_WOLFSSL_SERVER
  506. //#define NO_WOLFSSL_CLIENT
  507. #if defined(WOLF_CONF_TEST) && WOLF_CONF_TEST == 0
  508. #define NO_CRYPT_TEST
  509. #define NO_CRYPT_BENCHMARK
  510. #endif
  511. #define NO_FILESYSTEM
  512. #define NO_WRITEV
  513. #define NO_MAIN_DRIVER
  514. #define NO_DEV_RANDOM
  515. #define NO_OLD_TLS
  516. #define WOLFSSL_NO_CLIENT_AUTH /* disable client auth for Ed25519/Ed448 */
  517. #define NO_DSA
  518. #define NO_RC4
  519. #define NO_MD4
  520. #define NO_DES3
  521. /* In-lining of misc.c functions */
  522. /* If defined, must include wolfcrypt/src/misc.c in build */
  523. /* Slower, but about 1k smaller */
  524. //#define NO_INLINE
  525. /* Base16 / Base64 encoding */
  526. //#define NO_CODING
  527. /* bypass certificate date checking, due to lack of properly configured RTC source */
  528. #ifndef HAL_RTC_MODULE_ENABLED
  529. #define NO_ASN_TIME
  530. #endif
  531. #ifdef __cplusplus
  532. }
  533. #endif
  534. #endif /* ${inclusion_protection}_H */
  535. /**
  536. * @}
  537. */
  538. /*****END OF FILE****/