1
0

user_settings.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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_RC4
  19. #define NO_DSA
  20. #define NO_MD4
  21. #define GCM_NONCE_MID_SZ 12
  22. #else
  23. /* Enables blinding mode, to prevent timing attacks */
  24. #define WC_RSA_BLINDING
  25. #define NO_MULTIBYTE_PRINT
  26. #if defined(WOLFSSL_LIB)
  27. /* The lib */
  28. #define OPENSSL_EXTRA
  29. #define WOLFSSL_RIPEMD
  30. #define NO_PSK
  31. #define HAVE_EXTENDED_MASTER
  32. #define WOLFSSL_SNIFFER
  33. #define HAVE_SECURE_RENEGOTIATION
  34. #define HAVE_AESGCM
  35. #define WOLFSSL_SHA384
  36. #define WOLFSSL_SHA512
  37. #define HAVE_SUPPORTED_CURVES
  38. #define HAVE_TLS_EXTENSIONS
  39. #define HAVE_ECC
  40. #define ECC_SHAMIR
  41. #define ECC_TIMING_RESISTANT
  42. /* Optional Performance Speedups */
  43. #if 0
  44. /* AESNI on x64 */
  45. #ifdef _WIN64
  46. #define HAVE_INTEL_RDSEED
  47. #define WOLFSSL_AESNI
  48. #endif
  49. /* Single Precision Support for RSA/DH 1024/2048/3072 and
  50. * ECC P-256/P-384 */
  51. #define WOLFSSL_SP
  52. #define WOLFSSL_HAVE_SP_ECC
  53. #define WOLFSSL_HAVE_SP_DH
  54. #define WOLFSSL_HAVE_SP_RSA
  55. #ifdef _WIN64
  56. /* Old versions of MASM compiler do not recognize newer
  57. * instructions. */
  58. #if 0
  59. #define NO_AVX2_SUPPORT
  60. #define NO_MOVBE_SUPPORT
  61. #endif
  62. #define WOLFSSL_SP_ASM
  63. #define WOLFSSL_SP_X86_64_ASM
  64. #endif
  65. #endif
  66. #else
  67. /* The servers and clients */
  68. #define OPENSSL_EXTRA
  69. #define NO_PSK
  70. #endif
  71. #endif /* HAVE_FIPS */
  72. #endif /* _WIN_USER_SETTINGS_H_ */