user_settings.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #include <stdint.h>
  2. /* Configuration */
  3. #define WOLFSSL_GENERAL_ALIGNMENT 4
  4. #define HAVE_TM_TYPE
  5. /* ChibiOS + Lwip */
  6. #define HAVE_LWIP_NATIVE
  7. #define WOLFSSL_CHIBIOS
  8. #define USER_TICKS
  9. #define WOLFSSL_USER_CURRTIME
  10. #define XMALLOC_OVERRIDE
  11. //#define USE_WOLF_TIME_T
  12. #define XTIME(tl) (LowResTimer())
  13. /* ARM */
  14. #define RSA_LOW_MEM
  15. #define NO_OLD_RNGNAME
  16. #define SMALL_SESSION_CACHE
  17. #define WOLFSSL_SMALL_STACK
  18. #define TFM_ARM
  19. #define SINGLE_THREADED
  20. #define NO_SIG_WRAPPER
  21. /* Cipher features */
  22. //#define USE_FAST_MATH
  23. //#define ALT_ECC_SIZE
  24. #define HAVE_FFDHE_2048
  25. #define HAVE_CHACHA
  26. #define HAVE_POLY1305
  27. #define HAVE_ECC
  28. #define HAVE_CURVE25519
  29. #define CURVED25519_SMALL
  30. #define HAVE_ONE_TIME_AUTH
  31. #define WOLFSSL_DH_CONST
  32. /* HW RNG support */
  33. unsigned int chibios_rand_generate(void);
  34. int custom_rand_generate_block(unsigned char* output, unsigned int sz);
  35. #define CUSTOM_RAND_GENERATE chibios_rand_generate
  36. #define CUSTOM_RAND_TYPE uint32_t
  37. #define HAVE_ED25519
  38. #define HAVE_POLY1305
  39. #define HAVE_SHA512
  40. #define WOLFSSL_SHA512
  41. /* Size/speed config */
  42. //#define USE_SLOW_SHA2
  43. /* Robustness */
  44. #define TFM_TIMING_RESISTANT
  45. #define ECC_TIMING_RESISTANT
  46. #define WC_RSA_BLINDING
  47. /* Remove Features */
  48. #define NO_WRITEV
  49. #define NO_DEV_RANDOM
  50. #define NO_FILESYSTEM
  51. #define NO_MAIN_DRIVER
  52. #define NO_MD4
  53. #define NO_RABBIT
  54. #define NO_HC128
  55. #define NO_DSA
  56. #define NO_PWDBASED
  57. #define NO_PSK
  58. #define NO_64BIT
  59. #define NO_DES3
  60. #define NO_RC4
  61. /* Realloc (to use without USE_FAST_MATH) */
  62. void *chHeapRealloc (void *addr, uint32_t size);
  63. #define XREALLOC(p,n,h,t) chHeapRealloc( (p) , (n) )