user_settings.h 17 KB

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