user_settings.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 WOLFSSL_SHA512
  33. #define NO_PSK
  34. #define HAVE_EXTENDED_MASTER
  35. #define WOLFSSL_SNIFFER
  36. #define HAVE_TLS_EXTENSIONS
  37. #define HAVE_SECURE_RENEGOTIATION
  38. #define HAVE_AESGCM
  39. #define WOLFSSL_SHA384
  40. #define WOLFSSL_SHA512
  41. #define HAVE_SUPPORTED_CURVES
  42. #define HAVE_TLS_EXTENSIONS
  43. #define HAVE_ECC
  44. #define ECC_SHAMIR
  45. #define ECC_TIMING_RESISTANT
  46. /* Optional Performance Speedups */
  47. #if 0
  48. /* AESNI on x64 */
  49. #ifdef _WIN64
  50. #define HAVE_INTEL_RDSEED
  51. #define WOLFSSL_AESNI
  52. #endif
  53. /* Single Precision Support for RSA/DH 1024/2048/3072 and ECC P-256 */
  54. #define WOLFSSL_SP
  55. #define WOLFSSL_HAVE_SP_ECC
  56. #define WOLFSSL_HAVE_SP_DH
  57. #define WOLFSSL_HAVE_SP_RSA
  58. #endif
  59. #else
  60. /* The servers and clients */
  61. #define OPENSSL_EXTRA
  62. #define NO_PSK
  63. #endif
  64. #endif /* HAVE_FIPS */
  65. #endif /* _WIN_USER_SETTINGS_H_ */