24 #ifndef WOLFSSL_USER_SETTINGS_H 25 #define WOLFSSL_USER_SETTINGS_H 34 #undef WOLFSSL_SIFIVE_RISC_V 35 #define WOLFSSL_SIFIVE_RISC_V 42 #undef WOLFSSL_GENERAL_ALIGNMENT 43 #define WOLFSSL_GENERAL_ALIGNMENT 4 45 #undef SINGLE_THREADED 46 #define SINGLE_THREADED 48 #undef WOLFSSL_SMALL_STACK 49 #define WOLFSSL_SMALL_STACK 51 #undef WOLFSSL_USER_IO 52 #define WOLFSSL_USER_IO 58 #undef SIZEOF_LONG_LONG 59 #define SIZEOF_LONG_LONG 8 66 #undef TFM_TIMING_RESISTANT 67 #define TFM_TIMING_RESISTANT 84 #define FP_MAX_BITS 4096 93 #undef WC_RSA_BLINDING 94 #define WC_RSA_BLINDING 106 #define WC_RSA_NO_PADDING 118 #undef ECC_USER_CURVES 119 #define ECC_USER_CURVES 121 #ifdef ECC_USER_CURVES 147 #undef ECC_TIMING_RESISTANT 148 #define ECC_TIMING_RESISTANT 155 #undef WOLFSSL_VALIDATE_ECC_IMPORT 168 #define FP_MAX_BITS (256 + 32) 183 #define WOLFSSL_DH_CONST 186 #define HAVE_FFDHE_2048 200 #define WOLFSSL_SP_SMALL 201 #define SP_WORD_SIZE 32 202 #define WOLFSSL_SP_MATH 206 #define WOLFSSL_HAVE_SP_ECC 209 #define WOLFSSL_HAVE_SP_RSA 214 #undef HAVE_CURVE25519 217 #define HAVE_CURVE25519 223 #define CURVED25519_SMALL 244 #undef WOLFSSL_AES_DIRECT 250 #undef WOLFSSL_AES_COUNTER 269 #define HAVE_POLY1305 272 #undef HAVE_ONE_TIME_AUTH 273 #define HAVE_ONE_TIME_AUTH 297 #define WOLFSSL_SHA224 304 #undef WOLFSSL_SHA512 306 #define WOLFSSL_SHA512 309 #undef WOLFSSL_SHA384 311 #define WOLFSSL_SHA384 315 #define USE_SLOW_SHA512 361 #undef BENCH_EMBEDDED 362 #define BENCH_EMBEDDED 364 #undef USE_CERT_BUFFERS_2048 365 #define USE_CERT_BUFFERS_2048 367 #undef USE_CERT_BUFFERS_1024 370 #undef USE_CERT_BUFFERS_256 371 #define USE_CERT_BUFFERS_256 379 #undef NO_ERROR_STRINGS 381 #define DEBUG_WOLFSSL 384 #define NO_ERROR_STRINGS 395 #undef XMALLOC_OVERRIDE 396 #define XMALLOC_OVERRIDE 401 extern void *myMalloc(
size_t n,
void* heap,
int type);
402 extern void myFree(
void *p,
void* heap,
int type);
403 extern void *myRealloc(
void *p,
size_t n,
void* heap,
int type);
405 #define XMALLOC(n, h, t) myMalloc(n, h, t) 406 #define XFREE(p, h, t) myFree(p, h, t) 407 #define XREALLOC(p, n, h, t) myRealloc(p, n, h, t) 413 #define WOLFSSL_STATIC_MEMORY 416 #define WOLFSSL_NO_MALLOC 418 #define WOLFSSL_MALLOC_CHECK 424 #undef USE_WOLFSSL_MEMORY 425 #define USE_WOLFSSL_MEMORY 429 #undef WOLFSSL_TRACK_MEMORY 430 #define WOLFSSL_TRACK_MEMORY 432 #undef WOLFSSL_DEBUG_MEMORY 433 #define WOLFSSL_DEBUG_MEMORY 436 #ifndef WOLFSSL_STATIC_MEMORY 437 #define NO_WOLFSSL_MEMORY 448 #if defined(WOLFSSL_SIFIVE_RISC_V) 449 #define WOLFSSL_USER_CURRTIME 450 #define WOLFSSL_GMTIME 462 #define CUSTOM_RAND_TYPE unsigned int 463 extern int my_rng_gen_block(
unsigned char* output,
unsigned int sz);
464 #undef CUSTOM_RAND_GENERATE_BLOCK 465 #define CUSTOM_RAND_GENERATE_BLOCK my_rng_gen_block 467 #define HAVE_HASHDRBG 471 #define CUSTOM_RAND_TYPE unsigned int 472 extern unsigned int my_rng_seed_gen(
void);
473 #undef CUSTOM_RAND_GENERATE 474 #define CUSTOM_RAND_GENERATE my_rng_seed_gen 482 #define WOLFSSL_TLS13 485 #undef WOLFSSL_KEY_GEN 487 #define WOLFSSL_KEY_GEN 491 #define WOLFSSL_OLD_PRIME_CHECK 493 #undef KEEP_PEER_CERT 499 #undef HAVE_TLS_EXTENSIONS 500 #define HAVE_TLS_EXTENSIONS 502 #undef HAVE_SUPPORTED_CURVES 503 #define HAVE_SUPPORTED_CURVES 505 #undef WOLFSSL_BASE64_ENCODE 510 #define SMALL_SESSION_CACHE 512 #define NO_SESSION_CACHE 519 #undef NO_WOLFSSL_SERVER 522 #undef NO_WOLFSSL_CLIENT 528 #undef NO_CRYPT_BENCHMARK 531 #undef WOLFCRYPT_ONLY 541 #define NO_FILESYSTEM 546 #undef NO_MAIN_DRIVER 547 #define NO_MAIN_DRIVER 550 #define NO_DEV_RANDOM 585 #undef NO_SIG_WRAPPER