user_settings.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. /* user_settings.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. /* Custom wolfSSL user settings for GCC ARM */
  22. #ifndef WOLFSSL_USER_SETTINGS_H
  23. #define WOLFSSL_USER_SETTINGS_H
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* ------------------------------------------------------------------------- */
  28. /* Platform */
  29. /* ------------------------------------------------------------------------- */
  30. #undef WOLFSSL_GENERAL_ALIGNMENT
  31. #define WOLFSSL_GENERAL_ALIGNMENT 4
  32. #undef SINGLE_THREADED
  33. //#define SINGLE_THREADED
  34. #undef WOLFSSL_SMALL_STACK
  35. //#define WOLFSSL_SMALL_STACK
  36. #undef WOLFSSL_USER_IO
  37. //#define WOLFSSL_USER_IO
  38. #undef IPHONE
  39. #define IPHONE
  40. #undef NO_WRITE_TEMP_FILES
  41. #define NO_WRITE_TEMP_FILES
  42. /* ------------------------------------------------------------------------- */
  43. /* Math Configuration */
  44. /* ------------------------------------------------------------------------- */
  45. #undef SIZEOF_LONG_LONG
  46. #define SIZEOF_LONG_LONG 8
  47. #undef USE_FAST_MATH
  48. #if 1
  49. #define USE_FAST_MATH
  50. #undef TFM_TIMING_RESISTANT
  51. #define TFM_TIMING_RESISTANT
  52. #undef TFM_NO_ASM
  53. #define TFM_NO_ASM
  54. /* Optimizations */
  55. //#define TFM_ARM
  56. #endif
  57. /* Wolf Single Precision Math */
  58. #undef WOLFSSL_SP
  59. #if 1 /* SP Assembly Speedups (wPAA) */
  60. #define SP_INT_BITS 8192
  61. #define WOLFSSL_SP
  62. #define WOLFSSL_SP_SMALL /* use smaller version of code */
  63. #define WOLFSSL_HAVE_SP_RSA
  64. #define WOLFSSL_HAVE_SP_DH
  65. #define WOLFSSL_HAVE_SP_ECC
  66. /* Customer indicated no desire for PAA, leave out */
  67. //#define WOLFSSL_ARMASM
  68. //#define WOLFSSL_SP_ARM64_ASM
  69. #endif
  70. /* ------------------------------------------------------------------------- */
  71. /* FIPS - Requires eval or license from wolfSSL */
  72. /* ------------------------------------------------------------------------- */
  73. #undef HAVE_FIPS
  74. #if 1
  75. #define WOLFCRYPT_FIPS_CORE_HASH_VALUE 7E1F475996F8BBAB1903D108A9B0AD8D679C5DF6C1598D05924BCAF42A673040
  76. #define HAVE_FIPS
  77. #undef HAVE_FIPS_VERSION
  78. #define HAVE_FIPS_VERSION 5
  79. #undef HAVE_FIPS_VERSION_MINOR
  80. #define HAVE_FIPS_VERSION_MINOR 2
  81. #undef WOLFSSL_WOLFSSH
  82. #define WOLFSSL_WOLFSSH
  83. #undef WOLFSSL_ECDSA_SET_K
  84. #define WOLFSSL_ECDSA_SET_K
  85. #undef WC_RNG_SEED_CB
  86. #define WC_RNG_SEED_CB
  87. #ifdef SINGLE_THREADED
  88. #undef NO_THREAD_LS
  89. #define NO_THREAD_LS
  90. #endif
  91. #if 0
  92. #undef NO_ATTRIBUTE_CONSTRUCTOR
  93. #define NO_ATTRIBUTE_CONSTRUCTOR
  94. #endif
  95. #endif
  96. /* ------------------------------------------------------------------------- */
  97. /* Crypto */
  98. /* ------------------------------------------------------------------------- */
  99. /* RSA */
  100. #undef NO_RSA
  101. #if 1
  102. #ifdef USE_FAST_MATH
  103. /* Maximum math bits (Max RSA key bits * 2) */
  104. #undef FP_MAX_BITS
  105. #define FP_MAX_BITS 16384
  106. #endif
  107. /* half as much memory but twice as slow */
  108. #undef RSA_LOW_MEM
  109. //#define RSA_LOW_MEM
  110. /* Enables blinding mode, to prevent timing attacks */
  111. #if 0
  112. #undef WC_RSA_BLINDING
  113. #define WC_RSA_BLINDING
  114. #else
  115. #undef WC_NO_HARDEN
  116. #define WC_NO_HARDEN
  117. #endif
  118. /* RSA PSS Support */
  119. #if 1
  120. #undef WC_RSA_PSS
  121. #define WC_RSA_PSS
  122. #endif
  123. #if 1
  124. #define WC_RSA_NO_PADDING
  125. #endif
  126. #else
  127. #define NO_RSA
  128. #endif
  129. /* ECC */
  130. #undef HAVE_ECC
  131. #if 1
  132. #define HAVE_ECC
  133. /* Manually define enabled curves */
  134. #undef ECC_USER_CURVES
  135. //#define ECC_USER_CURVES
  136. #ifdef ECC_USER_CURVES
  137. /* Manual Curve Selection */
  138. //#define HAVE_ECC192
  139. //#define HAVE_ECC224
  140. #undef NO_ECC256
  141. //#define HAVE_ECC384
  142. //#define HAVE_ECC521
  143. #endif
  144. /* Fixed point cache (speeds repeated operations against same private key) */
  145. #undef FP_ECC
  146. //#define FP_ECC
  147. #ifdef FP_ECC
  148. /* Bits / Entries */
  149. #undef FP_ENTRIES
  150. #define FP_ENTRIES 2
  151. #undef FP_LUT
  152. #define FP_LUT 4
  153. #endif
  154. /* Optional ECC calculation method */
  155. /* Note: doubles heap usage, but slightly faster */
  156. #undef ECC_SHAMIR
  157. #define ECC_SHAMIR
  158. /* Reduces heap usage, but slower */
  159. #undef ECC_TIMING_RESISTANT
  160. #define ECC_TIMING_RESISTANT
  161. #ifdef HAVE_FIPS
  162. #undef HAVE_ECC_CDH
  163. #define HAVE_ECC_CDH /* Enable cofactor support */
  164. #undef NO_STRICT_ECDSA_LEN
  165. #define NO_STRICT_ECDSA_LEN /* Do not force fixed len w/ FIPS */
  166. #undef WOLFSSL_VALIDATE_ECC_IMPORT
  167. #define WOLFSSL_VALIDATE_ECC_IMPORT /* Validate import */
  168. #undef WOLFSSL_VALIDATE_ECC_KEYGEN
  169. #define WOLFSSL_VALIDATE_ECC_KEYGEN
  170. #endif
  171. /* Compressed Key Support */
  172. #undef HAVE_COMP_KEY
  173. //#define HAVE_COMP_KEY
  174. /* Use alternate ECC size for ECC math */
  175. #ifdef USE_FAST_MATH
  176. /* MAX ECC BITS = ROUND8(MAX ECC) * 2 */
  177. #ifdef NO_RSA
  178. /* Custom fastmath size if not using RSA */
  179. #undef FP_MAX_BITS
  180. #define FP_MAX_BITS (256 * 2)
  181. #else
  182. #undef ALT_ECC_SIZE
  183. #define ALT_ECC_SIZE
  184. /* wolfSSL will compute the FP_MAX_BITS_ECC, but it can be overridden */
  185. //#undef FP_MAX_BITS_ECC
  186. //#define FP_MAX_BITS_ECC (256 * 2)
  187. #endif
  188. /* Speedups specific to curve */
  189. #ifndef NO_ECC256
  190. #undef TFM_ECC256
  191. #define TFM_ECC256
  192. #endif
  193. #endif
  194. #endif
  195. /* DH */
  196. #undef NO_DH
  197. #if 1
  198. /* Use table for DH instead of -lm (math) lib dependency */
  199. #if 1
  200. #define WOLFSSL_DH_CONST
  201. #define HAVE_FFDHE_2048
  202. #define HAVE_FFDHE_3072
  203. #define HAVE_FFDHE_4096
  204. #define HAVE_FFDHE_6144
  205. #define HAVE_FFDHE_8192
  206. #endif
  207. #ifdef HAVE_FIPS
  208. #define WOLFSSL_VALIDATE_FFC_IMPORT
  209. #define HAVE_FFDHE_Q
  210. #endif
  211. #else
  212. #define NO_DH
  213. #endif
  214. /* AES */
  215. #undef NO_AES
  216. #if 1
  217. #undef HAVE_AES_CBC
  218. #define HAVE_AES_CBC
  219. #undef HAVE_AESGCM
  220. #define HAVE_AESGCM
  221. /* GCM Method: GCM_SMALL, GCM_WORD32 or GCM_TABLE */
  222. #define GCM_TABLE
  223. #undef WOLFSSL_AES_DIRECT
  224. #define WOLFSSL_AES_DIRECT
  225. #undef HAVE_AES_ECB
  226. #define HAVE_AES_ECB
  227. #undef WOLFSSL_AES_COUNTER
  228. #define WOLFSSL_AES_COUNTER
  229. #undef HAVE_AESCCM
  230. #define HAVE_AESCCM
  231. #undef HAVE_AES_KEYWRAP
  232. #define HAVE_AES_KEYWRAP
  233. #else
  234. #define NO_AES
  235. #endif
  236. /* DES3 */
  237. #undef NO_DES3
  238. #if 0
  239. #if 1
  240. #undef WOLFSSL_DES_ECB
  241. #define WOLFSSL_DES_ECB
  242. #endif
  243. #else
  244. #define NO_DES3
  245. #endif
  246. /* ChaCha20 / Poly1305 */
  247. #undef HAVE_CHACHA
  248. #undef HAVE_POLY1305
  249. #if 0
  250. #define HAVE_CHACHA
  251. #define HAVE_POLY1305
  252. /* Needed for Poly1305 */
  253. #undef HAVE_ONE_TIME_AUTH
  254. #define HAVE_ONE_TIME_AUTH
  255. #endif
  256. /* Ed25519 / Curve25519 */
  257. #undef HAVE_CURVE25519
  258. #undef HAVE_ED25519
  259. #if 0
  260. #define HAVE_CURVE25519
  261. #define HAVE_ED25519 /* ED25519 Requires SHA512 */
  262. /* Optionally use small math (less flash usage, but much slower) */
  263. #if 1
  264. #define CURVED25519_SMALL
  265. #endif
  266. #endif
  267. /* ------------------------------------------------------------------------- */
  268. /* Hashing */
  269. /* ------------------------------------------------------------------------- */
  270. /* Sha */
  271. #undef NO_SHA
  272. #if 1
  273. /* 1k smaller, but 25% slower */
  274. //#define USE_SLOW_SHA
  275. #else
  276. #define NO_SHA
  277. #endif
  278. /* Sha256 */
  279. #undef NO_SHA256
  280. #if 1
  281. /* not unrolled - ~2k smaller and ~25% slower */
  282. //#define USE_SLOW_SHA256
  283. /* Sha224 */
  284. #if 1
  285. #define WOLFSSL_SHA224
  286. #endif
  287. #else
  288. #define NO_SHA256
  289. #endif
  290. /* Sha512 */
  291. #undef WOLFSSL_SHA512
  292. #if 1
  293. #define WOLFSSL_SHA512
  294. #undef WOLFSSL_NOSHA512_224 /* Not in FIPS mode */
  295. #undef WOLFSSL_NOSHA512_256 /* Not in FIPS mode */
  296. /* Sha384 */
  297. #undef WOLFSSL_SHA384
  298. #if 1
  299. #define WOLFSSL_SHA384
  300. #endif
  301. /* over twice as small, but 50% slower */
  302. //#define USE_SLOW_SHA512
  303. #endif
  304. /* Sha3 */
  305. #undef WOLFSSL_SHA3
  306. #if 1
  307. #define WOLFSSL_SHA3
  308. #endif
  309. /* MD5 */
  310. #undef NO_MD5
  311. #if 0
  312. #else
  313. #define NO_MD5
  314. #endif
  315. /* HKDF */
  316. #undef HAVE_HKDF
  317. #if 1
  318. #define HAVE_HKDF
  319. #endif
  320. /* CMAC */
  321. #undef WOLFSSL_CMAC
  322. #if 1
  323. #define WOLFSSL_CMAC
  324. #endif
  325. /* ------------------------------------------------------------------------- */
  326. /* Benchmark / Test */
  327. /* ------------------------------------------------------------------------- */
  328. /* Use reduced benchmark / test sizes */
  329. #undef BENCH_EMBEDDED
  330. #define BENCH_EMBEDDED
  331. #undef USE_CERT_BUFFERS_2048
  332. #define USE_CERT_BUFFERS_2048
  333. #undef USE_CERT_BUFFERS_1024
  334. //#define USE_CERT_BUFFERS_1024
  335. #undef USE_CERT_BUFFERS_256
  336. #define USE_CERT_BUFFERS_256
  337. /* ------------------------------------------------------------------------- */
  338. /* Debugging */
  339. /* ------------------------------------------------------------------------- */
  340. #undef DEBUG_WOLFSSL
  341. #undef NO_ERROR_STRINGS
  342. #if 0
  343. #define DEBUG_WOLFSSL
  344. #else
  345. #if 0
  346. #define NO_ERROR_STRINGS
  347. #endif
  348. #endif
  349. /* ------------------------------------------------------------------------- */
  350. /* Memory */
  351. /* ------------------------------------------------------------------------- */
  352. /* Override Memory API's */
  353. #if 0
  354. #undef XMALLOC_OVERRIDE
  355. #define XMALLOC_OVERRIDE
  356. /* prototypes for user heap override functions */
  357. /* Note: Realloc only required for normal math */
  358. #include <stddef.h> /* for size_t */
  359. extern void *myMalloc(size_t n, void* heap, int type);
  360. extern void myFree(void *p, void* heap, int type);
  361. extern void *myRealloc(void *p, size_t n, void* heap, int type);
  362. #define XMALLOC(n, h, t) myMalloc(n, h, t)
  363. #define XFREE(p, h, t) myFree(p, h, t)
  364. #define XREALLOC(p, n, h, t) myRealloc(p, n, h, t)
  365. #endif
  366. #if 0
  367. /* Static memory requires fast math */
  368. #define WOLFSSL_STATIC_MEMORY
  369. /* Disable fallback malloc/free */
  370. #define WOLFSSL_NO_MALLOC
  371. #if 1
  372. #define WOLFSSL_MALLOC_CHECK /* trap malloc failure */
  373. #endif
  374. #endif
  375. /* Memory callbacks */
  376. #if 1
  377. #undef USE_WOLFSSL_MEMORY
  378. #define USE_WOLFSSL_MEMORY
  379. /* Use this to measure / print heap usage */
  380. #if 0
  381. #undef WOLFSSL_TRACK_MEMORY
  382. // #define WOLFSSL_TRACK_MEMORY
  383. #undef WOLFSSL_DEBUG_MEMORY
  384. //#define WOLFSSL_DEBUG_MEMORY
  385. #undef WOLFSSL_DEBUG_MEMORY_PRINT
  386. //#define WOLFSSL_DEBUG_MEMORY_PRINT
  387. #endif
  388. #else
  389. #ifndef WOLFSSL_STATIC_MEMORY
  390. #define NO_WOLFSSL_MEMORY
  391. /* Otherwise we will use stdlib malloc, free and realloc */
  392. #endif
  393. #endif
  394. /* ------------------------------------------------------------------------- */
  395. /* Port */
  396. /* ------------------------------------------------------------------------- */
  397. /* Override Current Time */
  398. /* Allows custom "custom_time()" function to be used for benchmark */
  399. //#define WOLFSSL_USER_CURRTIME
  400. //#define WOLFSSL_GMTIME
  401. //#define USER_TICKS
  402. //extern unsigned long my_time(unsigned long* timer);
  403. //#define XTIME my_time
  404. /* ------------------------------------------------------------------------- */
  405. /* RNG */
  406. /* ------------------------------------------------------------------------- */
  407. /* Seed Source */
  408. /* Seed Source */
  409. // extern int my_rng_generate_seed(unsigned char* output, int sz);
  410. // #undef CUSTOM_RAND_GENERATE_SEED
  411. // #define CUSTOM_RAND_GENERATE_SEED my_rng_generate_seed
  412. /* Choose RNG method */
  413. #if 1
  414. /* Use built-in P-RNG (SHA256 based) with HW RNG */
  415. /* P-RNG + HW RNG (P-RNG is ~8K) */
  416. //#define WOLFSSL_GENSEED_FORTEST
  417. #undef HAVE_HASHDRBG
  418. #define HAVE_HASHDRBG
  419. #else
  420. #undef WC_NO_HASHDRBG
  421. #define WC_NO_HASHDRBG
  422. /* Bypass P-RNG and use only HW RNG */
  423. extern int my_rng_gen_block(unsigned char* output, unsigned int sz);
  424. #undef CUSTOM_RAND_GENERATE_BLOCK
  425. #define CUSTOM_RAND_GENERATE_BLOCK my_rng_gen_block
  426. #endif
  427. /* ------------------------------------------------------------------------- */
  428. /* Custom Standard Lib */
  429. /* ------------------------------------------------------------------------- */
  430. /* Allows override of all standard library functions */
  431. #undef STRING_USER
  432. #if 0
  433. #define STRING_USER
  434. #include <string.h>
  435. #undef USE_WOLF_STRSEP
  436. #define USE_WOLF_STRSEP
  437. #define XSTRSEP(s1,d) wc_strsep((s1),(d))
  438. #undef USE_WOLF_STRTOK
  439. #define USE_WOLF_STRTOK
  440. #define XSTRTOK(s1,d,ptr) wc_strtok((s1),(d),(ptr))
  441. #define XSTRNSTR(s1,s2,n) mystrnstr((s1),(s2),(n))
  442. #define XMEMCPY(d,s,l) memcpy((d),(s),(l))
  443. #define XMEMSET(b,c,l) memset((b),(c),(l))
  444. #define XMEMCMP(s1,s2,n) memcmp((s1),(s2),(n))
  445. #define XMEMMOVE(d,s,l) memmove((d),(s),(l))
  446. #define XSTRLEN(s1) strlen((s1))
  447. #define XSTRNCPY(s1,s2,n) strncpy((s1),(s2),(n))
  448. #define XSTRSTR(s1,s2) strstr((s1),(s2))
  449. #define XSTRNCMP(s1,s2,n) strncmp((s1),(s2),(n))
  450. #define XSTRNCAT(s1,s2,n) strncat((s1),(s2),(n))
  451. #define XSTRNCASECMP(s1,s2,n) strncasecmp((s1),(s2),(n))
  452. #define XSNPRINTF snprintf
  453. #endif
  454. /* ------------------------------------------------------------------------- */
  455. /* Enable Features */
  456. /* ------------------------------------------------------------------------- */
  457. #undef WOLFSSL_TLS13
  458. #if 0
  459. #define WOLFSSL_TLS13
  460. #endif
  461. #undef WOLFSSL_KEY_GEN
  462. #if 1
  463. #define WOLFSSL_KEY_GEN
  464. #endif
  465. #if defined(HAVE_FIPS) && !defined(WOLFSSL_KEY_GEN)
  466. #define WOLFSSL_OLD_PRIME_CHECK
  467. #endif
  468. #undef KEEP_PEER_CERT
  469. //#define KEEP_PEER_CERT
  470. #undef HAVE_COMP_KEY
  471. //#define HAVE_COMP_KEY
  472. #undef HAVE_TLS_EXTENSIONS
  473. #define HAVE_TLS_EXTENSIONS
  474. #undef HAVE_SUPPORTED_CURVES
  475. #define HAVE_SUPPORTED_CURVES
  476. #undef WOLFSSL_BASE64_ENCODE
  477. #define WOLFSSL_BASE64_ENCODE
  478. /* TLS Session Cache */
  479. #if 0
  480. #define SMALL_SESSION_CACHE
  481. #else
  482. #define NO_SESSION_CACHE
  483. #endif
  484. #undef OPENSSL_EXTRA
  485. #define OPENSSL_EXTRA
  486. #undef WOLFSSL_DER_LOAD
  487. #define WOLFSSL_DER_LOAD
  488. #undef HAVE_SESSION_TICKET
  489. #define HAVE_SESSION_TICKET
  490. #undef HAVE_EX_DATA
  491. #define HAVE_EX_DATA
  492. #undef HAVE_ENCRYPT_THEN_MAC
  493. #define HAVE_ENCRYPT_THEN_MAC
  494. #undef WOLFSSL_CERT_GEN
  495. #define WOLFSSL_CERT_GEN
  496. #undef ATOMIC_USER
  497. #define ATOMIC_USER
  498. #undef HAVE_SECRET_CALLBACK
  499. #define HAVE_SECRET_CALLBACK
  500. /* ------------------------------------------------------------------------- */
  501. /* Disable Features */
  502. /* ------------------------------------------------------------------------- */
  503. #undef NO_WOLFSSL_SERVER
  504. //#define NO_WOLFSSL_SERVER
  505. #undef NO_WOLFSSL_CLIENT
  506. //#define NO_WOLFSSL_CLIENT
  507. #undef NO_CRYPT_TEST
  508. //#define NO_CRYPT_TEST
  509. #undef NO_CRYPT_BENCHMARK
  510. //#define NO_CRYPT_BENCHMARK
  511. #undef WOLFCRYPT_ONLY
  512. #define WOLFCRYPT_ONLY
  513. /* In-lining of misc.c functions */
  514. /* If defined, must include wolfcrypt/src/misc.c in build */
  515. /* Slower, but about 1k smaller */
  516. #undef NO_INLINE
  517. //#define NO_INLINE
  518. #undef NO_FILESYSTEM
  519. //#define NO_FILESYSTEM
  520. #undef NO_WRITEV
  521. //#define NO_WRITEV
  522. #undef NO_MAIN_DRIVER
  523. #define NO_MAIN_DRIVER
  524. #undef NO_DEV_RANDOM
  525. //#define NO_DEV_RANDOM
  526. #undef NO_DSA
  527. #define NO_DSA
  528. #undef NO_RC4
  529. #define NO_RC4
  530. #undef NO_OLD_TLS
  531. #define NO_OLD_TLS
  532. #undef NO_PSK
  533. #define NO_PSK
  534. #undef NO_MD4
  535. #define NO_MD4
  536. #undef NO_PWDBASED
  537. //#define NO_PWDBASED
  538. #undef NO_CODING
  539. //#define NO_CODING
  540. #undef NO_ASN_TIME
  541. //#define NO_ASN_TIME
  542. #undef NO_CERTS
  543. //#define NO_CERTS
  544. #undef NO_SIG_WRAPPER
  545. //#define NO_SIG_WRAPPER
  546. /* wolfSSL engineering ACVP algo and operational testing only (Default: Off) */
  547. #if 1
  548. #undef WOLFSSL_PUBLIC_MP
  549. #define WOLFSSL_PUBLIC_MP
  550. #undef HAVE_FORCE_FIPS_FAILURE
  551. #define HAVE_FORCE_FIPS_FAILURE
  552. #endif
  553. #ifdef __cplusplus
  554. }
  555. #endif
  556. #endif /* WOLFSSL_USER_SETTINGS_H */