user_settings.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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
  52. * ECC P-256/P-384 */
  53. #define WOLFSSL_SP
  54. #define WOLFSSL_HAVE_SP_ECC
  55. #define WOLFSSL_HAVE_SP_DH
  56. #define WOLFSSL_HAVE_SP_RSA
  57. #ifdef _WIN64
  58. /* Old versions of MASM compiler do not recognize newer
  59. * instructions. */
  60. #if 0
  61. #define NO_AVX2_SUPPORT
  62. #define NO_MOVBE_SUPPORT
  63. #endif
  64. #define WOLFSSL_SP_ASM
  65. #define WOLFSSL_SP_X86_64_ASM
  66. #endif
  67. #endif
  68. #else
  69. /* The servers and clients */
  70. #define OPENSSL_EXTRA
  71. #define NO_PSK
  72. #endif
  73. #endif /* HAVE_FIPS */
  74. #endif /* _WIN_USER_SETTINGS_H_ */