default_conf.ftl 17 KB

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