diff options
| author | auth12 <[email protected]> | 2020-07-19 11:57:04 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-19 11:57:04 -0700 |
| commit | 1bae439a35a3aadca6772716aaeea8c8a0991114 (patch) | |
| tree | f8eab7a7bae237ad697feecfae26b17bab91b16e /client/wolfssl/IDE/WIN/user_settings.h | |
| parent | More placeholders and general plan. (diff) | |
| parent | Merge branch 'master' into windows (diff) | |
| download | loader-1bae439a35a3aadca6772716aaeea8c8a0991114.tar.xz loader-1bae439a35a3aadca6772716aaeea8c8a0991114.zip | |
Merge pull request #1 from auth12/windows
Windows
Diffstat (limited to 'client/wolfssl/IDE/WIN/user_settings.h')
| -rw-r--r-- | client/wolfssl/IDE/WIN/user_settings.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/client/wolfssl/IDE/WIN/user_settings.h b/client/wolfssl/IDE/WIN/user_settings.h new file mode 100644 index 0000000..2c477bd --- /dev/null +++ b/client/wolfssl/IDE/WIN/user_settings.h @@ -0,0 +1,74 @@ +#ifndef _WIN_USER_SETTINGS_H_ +#define _WIN_USER_SETTINGS_H_ + +/* Verify this is Windows */ +#ifndef _WIN32 +#error This user_settings.h header is only designed for Windows +#endif + +/* Configurations */ +#if defined(HAVE_FIPS) + /* FIPS */ + #define OPENSSL_EXTRA + #define HAVE_THREAD_LS + #define WOLFSSL_KEY_GEN + #define HAVE_AESGCM + #define HAVE_HASHDRBG + #define WOLFSSL_SHA384 + #define WOLFSSL_SHA512 + #define NO_PSK + #define NO_HC128 + #define NO_RC4 + #define NO_RABBIT + #define NO_DSA + #define NO_MD4 + + #define GCM_NONCE_MID_SZ 12 +#else + /* Enables blinding mode, to prevent timing attacks */ + #define WC_RSA_BLINDING + #define NO_MULTIBYTE_PRINT + + #if defined(WOLFSSL_LIB) + /* The lib */ +#define NO_WOLFSSL_SERVER + #define WOLFSSL_SHA512 + #define NO_PSK + #define HAVE_EXTENDED_MASTER + #define HAVE_TLS_EXTENSIONS + #define HAVE_SECURE_RENEGOTIATION + + #define HAVE_AESGCM + #define WOLFSSL_SHA384 + #define WOLFSSL_SHA512 + + #define HAVE_SUPPORTED_CURVES + #define HAVE_TLS_EXTENSIONS + + #define HAVE_ECC + #define ECC_SHAMIR + #define ECC_TIMING_RESISTANT + + /* Optional Performance Speedups */ + #if 0 + /* AESNI on x64 */ + #ifdef _WIN64 + #define HAVE_INTEL_RDSEED + #define WOLFSSL_AESNI + #endif + + /* Single Precision Support for RSA/DH 1024/2048/3072 and ECC P-256 */ + #define WOLFSSL_SP + #define WOLFSSL_HAVE_SP_ECC + #define WOLFSSL_HAVE_SP_DH + #define WOLFSSL_HAVE_SP_RSA + #endif + + #else + /* The servers and clients */ + #define OPENSSL_EXTRA + #define NO_PSK + #endif +#endif /* HAVE_FIPS */ + +#endif /* _WIN_USER_SETTINGS_H_ */ |