123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462 |
- #ifndef USER_SETTINGS_H
- #define USER_SETTINGS_H
- #ifdef CONFIG_WOLFSSL
- #ifdef WOLFSSL_SETTINGS_FILE
- #include WOLFSSL_SETTINGS_FILE
- #else
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define WOLFSSL_GENERAL_ALIGNMENT 4
- #define SIZEOF_LONG_LONG 8
- #define WOLFSSL_IGNORE_FILE_WARN
- #define BENCH_EMBEDDED
- #define NO_FILESYSTEM
- #define NO_WRITEV
- #if 0
-
-
- #endif
- #ifdef CONFIG_MBEDTLS_PSA_CRYPTO_C
- #define WOLFSSL_HAVE_PSA
- #ifndef SINGLE_THREADED
- #define WOLFSSL_PSA_GLOBAL_LOCK
- #endif
- #define WC_NO_HASHDRBG
- #endif
- #ifdef CONFIG_WOLFCRYPT_FIPS
-
- #define HAVE_FIPS_VERSION 5
- #define HAVE_FIPS_VERSION_MINOR 3
- #endif
- #ifdef CONFIG_WOLFSSL_TLS_VERSION_1_2
- #undef WOLFSSL_NO_TLS12
- #else
- #define WOLFSSL_NO_TLS12
- #endif
- #if defined(CONFIG_WOLFSSL_TLS_VERSION_1_3) || defined(CONFIG_WOLFSSL_TLS13_ENABLED)
- #define WOLFSSL_TLS13
- #endif
- #define NO_OLD_TLS
- #define HAVE_TLS_EXTENSIONS
- #define HAVE_SUPPORTED_CURVES
- #define HAVE_EXTENDED_MASTER
- #define HAVE_ENCRYPT_THEN_MAC
- #define HAVE_SERVER_RENEGOTIATION_INFO
- #define HAVE_SNI
- #define WOLFSSL_ASN_TEMPLATE
- #if 0
- #define WOLFSSL_NO_ASN_STRICT
- #define IGNORE_NAME_CONSTRAINTS
- #endif
- #if 1
- #define SMALL_SESSION_CACHE
- #ifdef WOLFSSL_TLS13
- #define HAVE_SESSION_TICKET
- #endif
- #else
- #define NO_SESSION_CACHE
- #endif
- #if defined(CONFIG_WOLFSSL_DTLS)
- #define WOLFSSL_DTLS
- #define HAVE_SOCKADDR
- #endif
- #if defined(CONFIG_WOLFSSL_PSK)
- #undef NO_PSK
- #define WOLFSSL_STATIC_PSK
- #else
- #define NO_PSK
- #endif
- #if defined(CONFIG_WOLFSSL_ALPN)
- #define HAVE_ALPN
- #endif
- #if defined(CONFIG_WOLFSSL_MAX_FRAGMENT_LEN)
- #define HAVE_MAX_FRAGMENT
- #endif
- #if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS)
- #define WOLFSSL_SET_CIPHER_BYTES
- #endif
- #ifndef WC_NO_HASHDRBG
- #define HAVE_HASHDRBG
- #ifdef CONFIG_CSPRNG_ENABLED
- #define WC_RNG_SEED_CB
- #endif
- #endif
- #if 1
- #define HAVE_ECC
- #define ECC_USER_CURVES
- #undef NO_ECC256
- #define ECC_TIMING_RESISTANT
-
-
-
-
-
-
-
-
-
-
-
-
- #endif
- #define WOLFSSL_OLD_PRIME_CHECK
- #if 1
- #undef NO_RSA
- #define WC_RSA_BLINDING
-
-
- #if 0
- #define WOLFSSL_KEY_GEN
- #endif
- #if defined(WOLFSSL_TLS13) || defined(CONFIG_WOLFSSL_RSA_PSS)
-
- #define WC_RSA_PSS
-
- #endif
- #else
- #define NO_RSA
- #endif
- #if 0
- #undef NO_DH
- #define WOLFSSL_DH_CONST
- #define HAVE_FFDHE_2048
- #define HAVE_FFDHE_3072
- #define HAVE_DH_DEFAULT_PARAMS
-
- #else
- #define NO_DH
- #endif
- #if 1
- #define HAVE_CHACHA
- #define HAVE_POLY1305
-
- #define HAVE_ONE_TIME_AUTH
- #endif
- #if 0
- #define HAVE_CURVE25519
- #define HAVE_ED25519
-
-
- #endif
- #if 0
- #undef NO_SHA
-
- #else
-
- #endif
- #if 1
- #undef NO_SHA256
-
- #define WOLFSSL_SHA224
- #else
- #define NO_SHA256
- #endif
- #if 1
- #define WOLFSSL_SHA384
- #define WOLFSSL_SHA512
-
- #endif
- #if 1
- #define WOLFSSL_SHA3
- #endif
- #define HAVE_AES_ECB
- #if 1
- #define HAVE_AES_CBC
- #else
- #define NO_AES_CBC
- #endif
- #if 1
- #define HAVE_AESGCM
- #define GCM_SMALL
-
- #endif
- #if defined(WOLFSSL_TLS13) || defined(CONFIG_WOLFSSL_HKDF)
- #define HAVE_HKDF
- #endif
- #if 1
- #define WOLFSSL_AES_DIRECT
- #define WOLFSSL_CMAC
- #endif
- #define WOLFSSL_BASE64_ENCODE
- #define NO_DSA
- #define NO_RC4
- #define NO_MD4
- #define NO_MD5
- #define WOLFSSL_NO_SHAKE128
- #define WOLFSSL_NO_SHAKE256
- #if 1
- #define WOLFSSL_SP_MATH
- #elif 1
-
- #define WOLFSSL_SP_MATH_ALL
-
-
- #define WOLFSSL_SP_SMALL
-
- #if !defined(NO_RSA) || !defined(NO_DH)
- #define SP_INT_BITS 2048
- #elif defined(HAVE_ECC)
- #define SP_INT_BITS 256
- #endif
- #elif 1
-
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
-
- #if !defined(NO_RSA) || !defined(NO_DH)
- #define FP_MAX_BITS (2*2048)
- #ifdef HAVE_ECC
- #define ALT_ECC_SIZE
- #endif
- #elif defined(HAVE_ECC)
- #define FP_MAX_BITS (2*256)
- #endif
- #ifdef HAVE_ECC
-
- #endif
- #else
-
- #define USE_INTEGER_HEAP_MATH
- #endif
- #if 1
- #ifdef HAVE_ECC
- #define WOLFSSL_HAVE_SP_ECC
-
-
-
- #endif
- #ifndef NO_RSA
- #define WOLFSSL_HAVE_SP_RSA
-
-
-
- #endif
- #ifndef NO_DH
- #define WOLFSSL_HAVE_SP_DH
- #endif
- #define WOLFSSL_SP_SMALL
-
-
- #if 0
-
-
-
-
-
-
- #endif
- #endif
- #ifdef CONFIG_WOLFCRYPT_ARMASM
- #define WOLFSSL_ARMASM
- #define WOLFSSL_NO_HASH_RAW
- #define WOLFSSL_ARMASM_INLINE
- #define WOLFSSL_ARMASM_NO_NEON
-
- #if 0
- #define WOLFSSL_ARM_ARCH 7
- #define WOLFSSL_ARMASM_NO_HW_CRYPTO
- #endif
- #endif
- #ifdef CONFIG_WOLFCRYPT_INTELASM
- #define USE_INTEL_SPEEDUP
- #define WOLFSSL_X86_64_BUILD
-
-
-
- #endif
- #undef DEBUG_WOLFSSL
- #undef NO_ERROR_STRINGS
- #ifdef CONFIG_WOLFSSL_DEBUG
- #define DEBUG_WOLFSSL
- #else
- #if 1
- #define NO_ERROR_STRINGS
- #endif
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
- #endif
|