default_conf.ftl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  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. #if WOLF_CONF_MATH == 4 || WOLF_CONF_MATH == 5
  230. #define WOLFSSL_SP_ASM /* required if using the ASM versions */
  231. #if WOLF_CONF_MATH == 4
  232. /* ARM Cortex-M3+ */
  233. #define WOLFSSL_SP_ARM_CORTEX_M_ASM
  234. #endif
  235. #if WOLF_CONF_MATH == 5
  236. /* Generic ARM Thumb (Cortex-M0) Assembly */
  237. #define WOLFSSL_SP_ARM_THUMB_ASM
  238. #endif
  239. #endif
  240. #endif
  241. /* ------------------------------------------------------------------------- */
  242. /* Enable Features */
  243. /* ------------------------------------------------------------------------- */
  244. /* Required for TLS */
  245. #define HAVE_TLS_EXTENSIONS
  246. #define HAVE_SUPPORTED_CURVES
  247. #define HAVE_ENCRYPT_THEN_MAC
  248. #define HAVE_EXTENDED_MASTER
  249. #if defined(WOLF_CONF_TLS13) && WOLF_CONF_TLS13 == 1
  250. #define WOLFSSL_TLS13
  251. #define HAVE_HKDF
  252. #endif
  253. #if defined(WOLF_CONF_DTLS) && WOLF_CONF_DTLS == 1
  254. #define WOLFSSL_DTLS
  255. #endif
  256. #if defined(WOLF_CONF_PSK) && WOLF_CONF_PSK == 0
  257. #define NO_PSK
  258. #endif
  259. #if defined(WOLF_CONF_PWDBASED) && WOLF_CONF_PWDBASED == 0
  260. #define NO_PWDBASED
  261. #endif
  262. #if defined(WOLF_CONF_KEEP_PEER_CERT) && WOLF_CONF_KEEP_PEER_CERT == 1
  263. #define KEEP_PEER_CERT
  264. #endif
  265. #if defined(WOLF_CONF_BASE64_ENCODE) && WOLF_CONF_BASE64_ENCODE == 1
  266. #define WOLFSSL_BASE64_ENCODE
  267. #endif
  268. #if defined(WOLF_CONF_OPENSSL_EXTRA) && WOLF_CONF_OPENSSL_EXTRA >= 1
  269. #define OPENSSL_EXTRA
  270. #if !defined(INT_MAX)
  271. #include <limits.h>
  272. #endif
  273. #endif
  274. #if defined(WOLF_CONF_OPENSSL_EXTRA) && WOLF_CONF_OPENSSL_EXTRA >= 2
  275. #define OPENSSL_ALL
  276. #endif
  277. /* TLS Session Cache */
  278. #if 0
  279. #define SMALL_SESSION_CACHE
  280. #else
  281. #define NO_SESSION_CACHE
  282. #endif
  283. /* Post Quantum
  284. * Note: PQM4 is compatible with STM32. The project can be found at:
  285. * https://github.com/mupq/pqm4
  286. */
  287. #if defined(WOLF_CONF_PQM4) && WOLF_CONF_PQM4 == 1
  288. #define HAVE_PQM4
  289. #endif
  290. /* ------------------------------------------------------------------------- */
  291. /* Crypto */
  292. /* ------------------------------------------------------------------------- */
  293. /* RSA */
  294. #undef NO_RSA
  295. #if defined(WOLF_CONF_RSA) && WOLF_CONF_RSA == 1
  296. #ifdef USE_FAST_MATH
  297. /* Maximum math bits (Max RSA key bits * 2) */
  298. #undef FP_MAX_BITS
  299. #define FP_MAX_BITS 4096
  300. #endif
  301. /* half as much memory but twice as slow */
  302. #undef RSA_LOW_MEM
  303. //#define RSA_LOW_MEM
  304. /* Enables blinding mode, to prevent timing attacks */
  305. #undef WC_RSA_BLINDING
  306. #define WC_RSA_BLINDING
  307. /* RSA PSS Support (required for TLS v1.3) */
  308. #ifdef WOLFSSL_TLS13
  309. #define WC_RSA_PSS
  310. #endif
  311. #else
  312. #define NO_RSA
  313. #endif
  314. /* ECC */
  315. #undef HAVE_ECC
  316. #if defined(WOLF_CONF_ECC) && WOLF_CONF_ECC == 1
  317. #define HAVE_ECC
  318. /* Manually define enabled curves */
  319. #define ECC_USER_CURVES
  320. //#define HAVE_ECC192
  321. //#define HAVE_ECC224
  322. #undef NO_ECC256
  323. //#define HAVE_ECC384
  324. //#define HAVE_ECC521
  325. /* Fixed point cache (speeds repeated operations against same private key) */
  326. #undef FP_ECC
  327. //#define FP_ECC
  328. #ifdef FP_ECC
  329. /* Bits / Entries */
  330. #undef FP_ENTRIES
  331. #define FP_ENTRIES 2
  332. #undef FP_LUT
  333. #define FP_LUT 4
  334. #endif
  335. /* Optional ECC calculation method */
  336. /* Note: doubles heap usage, but slightly faster */
  337. #undef ECC_SHAMIR
  338. #define ECC_SHAMIR
  339. /* Reduces heap usage, but slower */
  340. #define ECC_TIMING_RESISTANT
  341. /* Compressed ECC key support */
  342. //#define HAVE_COMP_KEY
  343. #ifdef USE_FAST_MATH
  344. #ifdef NO_RSA
  345. /* Custom fastmath size if not using RSA */
  346. /* MAX = ROUND32(ECC BITS) * 2 */
  347. #define FP_MAX_BITS (256 * 2)
  348. #else
  349. #define ALT_ECC_SIZE
  350. #endif
  351. /* Enable TFM optimizations for ECC */
  352. //#define TFM_ECC192
  353. //#define TFM_ECC224
  354. //#define TFM_ECC256
  355. //#define TFM_ECC384
  356. //#define TFM_ECC521
  357. #endif
  358. #endif
  359. /* DH */
  360. #undef NO_DH
  361. #if defined(WOLF_CONF_DH) && WOLF_CONF_DH == 1
  362. #define HAVE_DH /* freeRTOS settings.h requires this */
  363. #define HAVE_FFDHE_2048
  364. #define HAVE_DH_DEFAULT_PARAMS
  365. #else
  366. #define NO_DH
  367. #endif
  368. /* AES */
  369. #if defined(WOLF_CONF_AESGCM) && WOLF_CONF_AESGCM == 1
  370. #define HAVE_AESGCM
  371. /* GCM Method: GCM_SMALL, GCM_WORD32, GCM_TABLE or GCM_TABLE_4BIT */
  372. /* GCM_TABLE is about 4K larger and 3x faster for GHASH */
  373. #define GCM_SMALL
  374. #define HAVE_AES_DECRYPT
  375. #endif
  376. #if defined(WOLF_CONF_AESCBC) && WOLF_CONF_AESCBC == 1
  377. #define HAVE_AES_CBC
  378. #define HAVE_AES_DECRYPT
  379. #endif
  380. /* Other possible AES modes */
  381. //#define WOLFSSL_AES_COUNTER
  382. //#define HAVE_AESCCM
  383. //#define WOLFSSL_AES_XTS
  384. //#define WOLFSSL_AES_DIRECT
  385. //#define HAVE_AES_ECB
  386. //#define HAVE_AES_KEYWRAP
  387. //#define AES_MAX_KEY_SIZE 256
  388. /* ChaCha20 / Poly1305 */
  389. #undef HAVE_CHACHA
  390. #undef HAVE_POLY1305
  391. #if defined(WOLF_CONF_CHAPOLY) && WOLF_CONF_CHAPOLY == 1
  392. #define HAVE_CHACHA
  393. #define HAVE_POLY1305
  394. /* Needed for Poly1305 */
  395. #undef HAVE_ONE_TIME_AUTH
  396. #define HAVE_ONE_TIME_AUTH
  397. #endif
  398. /* Ed25519 / Curve25519 */
  399. #undef HAVE_CURVE25519
  400. #undef HAVE_ED25519
  401. #if defined(WOLF_CONF_EDCURVE25519) && WOLF_CONF_EDCURVE25519 == 1
  402. #define HAVE_CURVE25519
  403. #define HAVE_ED25519
  404. /* Optionally use small math (less flash usage, but much slower) */
  405. #define CURVED25519_SMALL
  406. #endif
  407. /* ------------------------------------------------------------------------- */
  408. /* Hashing */
  409. /* ------------------------------------------------------------------------- */
  410. /* Sha1 */
  411. #undef NO_SHA
  412. #if defined(WOLF_CONF_SHA1) && WOLF_CONF_SHA1 == 1
  413. /* 1k smaller, but 25% slower */
  414. //#define USE_SLOW_SHA
  415. #else
  416. #define NO_SHA
  417. #endif
  418. /* Sha2-256 */
  419. #undef NO_SHA256
  420. #if defined(WOLF_CONF_SHA2_256) && WOLF_CONF_SHA2_256 == 1
  421. /* not unrolled - ~2k smaller and ~25% slower */
  422. //#define USE_SLOW_SHA256
  423. //#define WOLFSSL_SHAKE256
  424. /* Sha2-224 */
  425. #if defined(WOLF_CONF_SHA2_224) && WOLF_CONF_SHA2_224 == 1
  426. #define WOLFSSL_SHA224
  427. #endif
  428. #else
  429. #define NO_SHA256
  430. #endif
  431. /* Sha2-512 */
  432. #undef WOLFSSL_SHA512
  433. #if defined(WOLF_CONF_SHA2_512) && WOLF_CONF_SHA2_512 == 1
  434. /* over twice as small, but 50% slower */
  435. //#define USE_SLOW_SHA512
  436. #define WOLFSSL_SHA512
  437. #define HAVE_SHA512 /* freeRTOS settings.h requires this */
  438. #endif
  439. /* Sha2-384 */
  440. #undef WOLFSSL_SHA384
  441. #if defined(WOLF_CONF_SHA2_384) && WOLF_CONF_SHA2_384 == 1
  442. #define WOLFSSL_SHA384
  443. #endif
  444. /* Sha3 */
  445. #undef WOLFSSL_SHA3
  446. #if defined(WOLF_CONF_SHA3) && WOLF_CONF_SHA3 == 1
  447. #define WOLFSSL_SHA3
  448. #endif
  449. /* MD5 */
  450. #if defined(WOLF_CONF_MD5) && WOLF_CONF_MD5 == 1
  451. /* enabled */
  452. #else
  453. #define NO_MD5
  454. #endif
  455. /* ------------------------------------------------------------------------- */
  456. /* Benchmark / Test */
  457. /* ------------------------------------------------------------------------- */
  458. /* Use reduced benchmark / test sizes */
  459. #define BENCH_EMBEDDED
  460. #define USE_CERT_BUFFERS_2048
  461. #define USE_CERT_BUFFERS_256
  462. /* ------------------------------------------------------------------------- */
  463. /* Debugging */
  464. /* ------------------------------------------------------------------------- */
  465. #if defined(WOLF_CONF_DEBUG) && WOLF_CONF_DEBUG == 1
  466. #define DEBUG_WOLFSSL
  467. /* Use this to measure / print heap usage */
  468. #if 0
  469. #define USE_WOLFSSL_MEMORY
  470. #define WOLFSSL_TRACK_MEMORY
  471. #define WOLFSSL_DEBUG_MEMORY
  472. #define WOLFSSL_DEBUG_MEMORY_PRINT
  473. #endif
  474. #else
  475. //#define NO_WOLFSSL_MEMORY
  476. //#define NO_ERROR_STRINGS
  477. #endif
  478. /* ------------------------------------------------------------------------- */
  479. /* Port */
  480. /* ------------------------------------------------------------------------- */
  481. /* Override Current Time */
  482. /* Allows custom "custom_time()" function to be used for benchmark */
  483. #define WOLFSSL_USER_CURRTIME
  484. /* ------------------------------------------------------------------------- */
  485. /* RNG */
  486. /* ------------------------------------------------------------------------- */
  487. #define NO_OLD_RNGNAME /* conflicts with STM RNG macro */
  488. #if !defined(WOLF_CONF_RNG) || WOLF_CONF_RNG == 1
  489. /* default is enabled */
  490. #define HAVE_HASHDRBG
  491. #else /* WOLF_CONF_RNG == 0 */
  492. #define WC_NO_HASHDRBG
  493. #define WC_NO_RNG
  494. #endif
  495. /* ------------------------------------------------------------------------- */
  496. /* Disable Features */
  497. /* ------------------------------------------------------------------------- */
  498. #if defined(WOLF_CONF_TLS12) && WOLF_CONF_TLS12 == 0
  499. #define WOLFSSL_NO_TLS12
  500. #endif
  501. #if defined(WOLF_CONF_WOLFCRYPT_ONLY) && WOLF_CONF_WOLFCRYPT_ONLY == 1
  502. #define WOLFCRYPT_ONLY
  503. #endif
  504. //#define NO_WOLFSSL_SERVER
  505. //#define NO_WOLFSSL_CLIENT
  506. #if defined(WOLF_CONF_TEST) && WOLF_CONF_TEST == 0
  507. #define NO_CRYPT_TEST
  508. #define NO_CRYPT_BENCHMARK
  509. #endif
  510. #define NO_FILESYSTEM
  511. #define NO_WRITEV
  512. #define NO_MAIN_DRIVER
  513. #define NO_DEV_RANDOM
  514. #define NO_OLD_TLS
  515. #define WOLFSSL_NO_CLIENT_AUTH /* disable client auth for Ed25519/Ed448 */
  516. #define NO_DSA
  517. #define NO_RC4
  518. #define NO_MD4
  519. #define NO_DES3
  520. /* In-lining of misc.c functions */
  521. /* If defined, must include wolfcrypt/src/misc.c in build */
  522. /* Slower, but about 1k smaller */
  523. //#define NO_INLINE
  524. /* Base16 / Base64 encoding */
  525. //#define NO_CODING
  526. /* bypass certificate date checking, due to lack of properly configured RTC source */
  527. #ifndef HAL_RTC_MODULE_ENABLED
  528. #define NO_ASN_TIME
  529. #endif
  530. #ifdef __cplusplus
  531. }
  532. #endif
  533. #endif /* ${inclusion_protection}_H */
  534. /**
  535. * @}
  536. */
  537. /*****END OF FILE****/