1
0

user_settings.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #ifndef USER_SETTINGS_H
  2. #define USER_SETTINGS_H
  3. /* Default build with fast math */
  4. /* Slower build but uses less memory */
  5. //#define BUILD_B
  6. /* Performant build but uses more memory */
  7. //#define BUILD_C
  8. /* Used for getting random value for seeding RNG */
  9. #define WOLFSSL_NETBURNER
  10. #define WOLFSSL_MCF5441X
  11. /* environment settings */
  12. #define NO_WRITEV
  13. #define WOLFSSL_NO_SOCK
  14. #define NO_WOLFSSL_DIR
  15. /* with USE_FAST_MATH smallstack is used to fit in the default stack size */
  16. #define WOLFSSL_SMALL_STACK
  17. /* enable features off by default */
  18. #define WOLFSSL_SHA512
  19. // OPENSSL_EXTRA uses a lot more memory but is needed in order to enable
  20. // compatibility layer API
  21. #define OPENSSL_EXTRA
  22. // additional RSA padding schemes
  23. #define WC_RSA_NO_PADDING
  24. #define WC_RSA_PSS
  25. // uncomment and add wolfSSL_Debugging_ON() to app for debug messages
  26. //#define DEBUG_WOLFSSL
  27. /* disable features that are on by default */
  28. #define WOLFCRYPT_ONLY
  29. #define NO_FILESYSTEM
  30. #define SINGLE_THREADED
  31. #define NO_ASN_TIME
  32. #define NO_PWDBASED
  33. #define NO_RC4
  34. #define NO_DSA
  35. #define NO_DES3
  36. #define NO_DH
  37. #define NO_MD4
  38. #define USE_FAST_MATH
  39. #ifdef BUILD_B
  40. #define RSA_LOW_MEM
  41. #define USE_SLOW_SHA
  42. #define USE_SLOW_SHA256
  43. #define NO_ERROR_STRINGS
  44. #define USE_FAST_MATH
  45. #endif
  46. #ifdef BUILD_C
  47. #define WOLFSSL_HAVE_SP_RSA
  48. #define SP_WORD_SIZE 32
  49. #endif
  50. /* hardening against side channel attacks */
  51. #if defined(USE_FAST_MATH)
  52. #define TFM_TIMING_RESISTANT
  53. #ifdef HAVE_ECC
  54. #define ECC_TIMING_RESISTANT
  55. #endif
  56. #endif /* USE_FAST_MATH */
  57. #ifndef NO_RSA
  58. /* this slows down RSA operations but increases side channel resistance */
  59. #define WC_RSA_BLINDING
  60. #endif
  61. #endif /* USER_SETTINGS_H */