user_settings.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. #define USE_WOLFSSL_IO
  8. #define HAVE_AESGCM
  9. #define WOLFSSL_TLS13
  10. #define HAVE_HKDF
  11. #define HAVE_FFDHE_4096
  12. #define WC_RSA_PSS
  13. #define WOLFSSL_DTLS
  14. #define WOLFSSL_DTLS13
  15. #define WOLFSSL_SEND_HRR_COOKIE
  16. #define WOLFSSL_DTLS_CID
  17. /* Configurations */
  18. #if defined(HAVE_FIPS)
  19. /* FIPS */
  20. #define OPENSSL_EXTRA
  21. #define HAVE_THREAD_LS
  22. #define WOLFSSL_KEY_GEN
  23. #define HAVE_HASHDRBG
  24. #define WOLFSSL_SHA384
  25. #define WOLFSSL_SHA512
  26. #define NO_PSK
  27. #define NO_RC4
  28. #define NO_DSA
  29. #define NO_MD4
  30. #define GCM_NONCE_MID_SZ 12
  31. #else
  32. /* Enables blinding mode, to prevent timing attacks */
  33. #define WC_RSA_BLINDING
  34. #define NO_MULTIBYTE_PRINT
  35. #define HAVE_CRL
  36. #define HAVE_CRL_MONITOR
  37. #if defined(WOLFSSL_LIB)
  38. /* The lib */
  39. #define OPENSSL_EXTRA
  40. #define WOLFSSL_RIPEMD
  41. #define NO_PSK
  42. #define HAVE_EXTENDED_MASTER
  43. #define WOLFSSL_SNIFFER
  44. #define HAVE_SECURE_RENEGOTIATION
  45. #define HAVE_AESGCM
  46. #define WOLFSSL_AESGCM_STREAM
  47. #define WOLFSSL_SHA384
  48. #define WOLFSSL_SHA512
  49. #define HAVE_SUPPORTED_CURVES
  50. #define HAVE_TLS_EXTENSIONS
  51. #define HAVE_ECC
  52. #define ECC_SHAMIR
  53. #define ECC_TIMING_RESISTANT
  54. #define WOLFSSL_SP_X86_64
  55. #define SP_INT_BITS 4096
  56. /* Optional Performance Speedups */
  57. #if 0
  58. /* AESNI on x64 */
  59. #ifdef _WIN64
  60. #define HAVE_INTEL_RDSEED
  61. #define WOLFSSL_AESNI
  62. #define HAVE_INTEL_AVX1
  63. #if 0
  64. #define HAVE_INTEL_AVX2
  65. #endif
  66. #endif
  67. /* Single Precision Support for RSA/DH 1024/2048/3072 and
  68. * ECC P-256/P-384 */
  69. #define WOLFSSL_SP
  70. #define WOLFSSL_HAVE_SP_ECC
  71. #define WOLFSSL_HAVE_SP_DH
  72. #define WOLFSSL_HAVE_SP_RSA
  73. #ifdef _WIN64
  74. /* Old versions of MASM compiler do not recognize newer
  75. * instructions. */
  76. #if 0
  77. #define NO_AVX2_SUPPORT
  78. #define NO_MOVBE_SUPPORT
  79. #endif
  80. #define WOLFSSL_SP_ASM
  81. #define WOLFSSL_SP_X86_64_ASM
  82. #endif
  83. #endif
  84. #else
  85. /* The servers and clients */
  86. #define OPENSSL_EXTRA
  87. #define NO_PSK
  88. #endif
  89. #endif /* HAVE_FIPS */
  90. #endif /* _WIN_USER_SETTINGS_H_ */