user_settings.h 17 KB

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