default_conf.ftl 17 KB

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