1
0

user_settings_dtls.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. /* DTLS configuration including DTLS v.1.3 which requires TLS v.1.3. */
  8. /* The below DTLS configurations can be copied in to another user_settings.h
  9. file that may have other settings that need to be preserved.
  10. */
  11. #define WOLFSSL_TLS13
  12. #define WOLFSSL_DTLS
  13. #define WOLFSSL_DTLS13
  14. #define HAVE_HKDF
  15. #define HAVE_FFDHE_2048
  16. #define WC_RSA_PSS
  17. /* DTLS configuration */
  18. /* Configurations */
  19. #if defined(HAVE_FIPS)
  20. /* FIPS */
  21. #define OPENSSL_EXTRA
  22. #define HAVE_THREAD_LS
  23. #define WOLFSSL_KEY_GEN
  24. #define HAVE_AESGCM
  25. #define HAVE_HASHDRBG
  26. #define WOLFSSL_SHA384
  27. #define WOLFSSL_SHA512
  28. #define NO_PSK
  29. #define NO_RC4
  30. #define NO_DSA
  31. #define NO_MD4
  32. #define GCM_NONCE_MID_SZ 12
  33. #else
  34. /* Enables blinding mode, to prevent timing attacks */
  35. #define WC_RSA_BLINDING
  36. #define NO_MULTIBYTE_PRINT
  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_ */