user_settings_stm32.h 16 KB

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