2
0

user_settings.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #ifndef _WIN_USER_SETTINGS_H_
  2. #define _WIN_USER_SETTINGS_H_
  3. /* For FIPS Ready, uncomment the following: */
  4. /* #define WOLFSSL_FIPS_READY */
  5. #ifdef WOLFSSL_FIPS_READY
  6. #undef HAVE_FIPS_VERSION
  7. #define HAVE_FIPS_VERSION 3
  8. #endif
  9. /* Verify this is Windows */
  10. #ifndef _WIN32
  11. #error This user_settings.h header is only designed for Windows
  12. #endif
  13. /* Configurations */
  14. #if defined(HAVE_FIPS)
  15. /* FIPS */
  16. #define OPENSSL_EXTRA
  17. #define HAVE_THREAD_LS
  18. #define WOLFSSL_KEY_GEN
  19. #define HAVE_AESGCM
  20. #define HAVE_HASHDRBG
  21. #define WOLFSSL_SHA384
  22. #define WOLFSSL_SHA512
  23. #define NO_PSK
  24. #define NO_HC128
  25. #define NO_RC4
  26. #define NO_RABBIT
  27. #define NO_DSA
  28. #define NO_MD4
  29. #if defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2)
  30. #define WOLFSSL_SHA224
  31. #define WOLFSSL_SHA3
  32. #define WC_RSA_PSS
  33. #define WC_RSA_NO_PADDING
  34. #define HAVE_ECC
  35. #define ECC_SHAMIR
  36. #define HAVE_ECC_CDH
  37. #define ECC_TIMING_RESISTANT
  38. #define TFM_TIMING_RESISTANT
  39. #define WOLFSSL_AES_COUNTER
  40. #define WOLFSSL_AES_DIRECT
  41. #define HAVE_AES_ECB
  42. #define HAVE_AESCCM
  43. #define WOLFSSL_CMAC
  44. #define HAVE_HKDF
  45. #define WOLFSSL_VALIDATE_ECC_IMPORT
  46. #define WOLFSSL_VALIDATE_FFC_IMPORT
  47. #define HAVE_FFDHE_Q
  48. #define WOLFSSL_AESNI
  49. #define HAVE_INTEL_RDSEED
  50. #define FORCE_FAILURE_RDSEED
  51. #endif /* FIPS v2 */
  52. #else
  53. /* Enables blinding mode, to prevent timing attacks */
  54. #define WC_RSA_BLINDING
  55. #if defined(WOLFSSL_LIB)
  56. /* The lib */
  57. #define OPENSSL_EXTRA
  58. #define WOLFSSL_RIPEMD
  59. #define NO_PSK
  60. #define HAVE_EXTENDED_MASTER
  61. #define WOLFSSL_SNIFFER
  62. #define HAVE_SECURE_RENEGOTIATION
  63. #define HAVE_AESGCM
  64. #define WOLFSSL_SHA384
  65. #define WOLFSSL_SHA512
  66. #define HAVE_SUPPORTED_CURVES
  67. #define HAVE_TLS_EXTENSIONS
  68. #define HAVE_ECC
  69. #define ECC_SHAMIR
  70. #define ECC_TIMING_RESISTANT
  71. #else
  72. /* The servers and clients */
  73. #define OPENSSL_EXTRA
  74. #define NO_PSK
  75. #endif
  76. #endif /* HAVE_FIPS */
  77. #endif /* _WIN_USER_SETTINGS_H_ */