user_settings.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. #define USE_INTEL_CHACHA_SPEEDUP
  67. #define USE_INTEL_POLY1305_SPEEDUP
  68. #endif
  69. /* Single Precision Support for RSA/DH 1024/2048/3072 and
  70. * ECC P-256/P-384 */
  71. #define WOLFSSL_SP
  72. #define WOLFSSL_HAVE_SP_ECC
  73. #define WOLFSSL_HAVE_SP_DH
  74. #define WOLFSSL_HAVE_SP_RSA
  75. #ifdef _WIN64
  76. /* Old versions of MASM compiler do not recognize newer
  77. * instructions. */
  78. #if 0
  79. #define NO_AVX2_SUPPORT
  80. #define NO_MOVBE_SUPPORT
  81. #endif
  82. #define WOLFSSL_SP_ASM
  83. #define WOLFSSL_SP_X86_64_ASM
  84. #endif
  85. #endif
  86. #else
  87. /* The servers and clients */
  88. #define OPENSSL_EXTRA
  89. #define NO_PSK
  90. #endif
  91. #endif /* HAVE_FIPS */
  92. #endif /* _WIN_USER_SETTINGS_H_ */