user_settings.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef _WIN_USER_SETTINGS_H_
  2. #define _WIN_USER_SETTINGS_H_
  3. /* Verify this is Windows */
  4. #ifndef _WIN32
  5. #error This user_settings.h header is only designed for Windows
  6. #endif
  7. /* Configurations */
  8. #if defined(HAVE_FIPS)
  9. /* FIPS */
  10. #define OPENSSL_EXTRA
  11. #define HAVE_THREAD_LS
  12. #define WOLFSSL_KEY_GEN
  13. #define HAVE_AESGCM
  14. #define HAVE_HASHDRBG
  15. #define WOLFSSL_SHA384
  16. #define WOLFSSL_SHA512
  17. #define NO_PSK
  18. #define NO_HC128
  19. #define NO_RC4
  20. #define NO_RABBIT
  21. #define NO_DSA
  22. #define NO_MD4
  23. #define GCM_NONCE_MID_SZ 12
  24. #else
  25. /* Enables blinding mode, to prevent timing attacks */
  26. #define WC_RSA_BLINDING
  27. #define NO_MULTIBYTE_PRINT
  28. #if defined(WOLFSSL_LIB)
  29. /* The lib */
  30. #define OPENSSL_EXTRA
  31. #define WOLFSSL_RIPEMD
  32. #define NO_PSK
  33. #define HAVE_EXTENDED_MASTER
  34. #define WOLFSSL_SNIFFER
  35. #define HAVE_SECURE_RENEGOTIATION
  36. #define HAVE_AESGCM
  37. #define WOLFSSL_SHA384
  38. #define WOLFSSL_SHA512
  39. #define HAVE_SUPPORTED_CURVES
  40. #define HAVE_TLS_EXTENSIONS
  41. #define HAVE_ECC
  42. #define ECC_SHAMIR
  43. #define ECC_TIMING_RESISTANT
  44. /* Optional Performance Speedups */
  45. #if 0
  46. /* AESNI on x64 */
  47. #ifdef _WIN64
  48. #define HAVE_INTEL_RDSEED
  49. #define WOLFSSL_AESNI
  50. #endif
  51. /* Single Precision Support for RSA/DH 1024/2048/3072 and ECC P-256 */
  52. #define WOLFSSL_SP
  53. #define WOLFSSL_HAVE_SP_ECC
  54. #define WOLFSSL_HAVE_SP_DH
  55. #define WOLFSSL_HAVE_SP_RSA
  56. #endif
  57. #else
  58. /* The servers and clients */
  59. #define OPENSSL_EXTRA
  60. #define NO_PSK
  61. #endif
  62. #endif /* HAVE_FIPS */
  63. #endif /* _WIN_USER_SETTINGS_H_ */