user_settings.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #include <stdint.h>
  2. /* Configuration */
  3. #define WOLFSSL_USER_IO
  4. #define WOLFSSL_GENERAL_ALIGNMENT 4
  5. #define WOLFSSL_SMALL_STACK
  6. #define WOLFSSL_BASE64_ENCODE
  7. #define WOLFSSL_SHA512
  8. #define HAVE_ECC
  9. #define HAVE_AESGCM
  10. #define HAVE_CURVE25519
  11. #define HAVE_HKDF
  12. #define HAVE_HASHDRBG
  13. #define HAVE_CHACHA
  14. #define HAVE_POLY1305
  15. #define HAVE_ONE_TIME_AUTH
  16. #define HAVE_TLS_EXTENSIONS
  17. #define HAVE_SUPPORTED_CURVES
  18. #define HAVE_ERRNO_H
  19. #define HAVE_LWIP_NATIVE
  20. #define FP_LUT 4
  21. #define FP_MAX_BITS 2048 /* 4096 */
  22. #define ECC_USER_CURVES /* Disables P-112, P-128, P-160, P-192, P-224, P-384, P-521 but leaves P-256 enabled */
  23. #define FP_MAX_BITS_ECC (256 * 2)
  24. #define ALT_ECC_SIZE
  25. #define USE_FAST_MATH
  26. #define SMALL_SESSION_CACHE
  27. #define CURVED25519_SMALL
  28. #define RSA_LOW_MEM
  29. #define GCM_SMALL
  30. #define ECC_SHAMIR
  31. #define USE_SLOW_SHA2
  32. #define MP_LOW_MEM
  33. #define TFM_TIMING_RESISTANT
  34. //#define TFM_ARM
  35. /* Remove Features */
  36. #define NO_DEV_RANDOM
  37. #define NO_FILESYSTEM
  38. #define NO_WRITEV
  39. #define NO_MAIN_DRIVER
  40. #define NO_WOLFSSL_MEMORY
  41. #define NO_DEV_RANDOM
  42. #define NO_MD4
  43. #define NO_DSA
  44. #define NO_PWDBASED
  45. #define NO_PSK
  46. #define NO_64BIT
  47. #define NO_WOLFSSL_SERVER
  48. #define NO_OLD_TLS
  49. #define NO_DES3
  50. #define NO_MD5
  51. #define NO_RC4
  52. #define NO_DH
  53. #define NO_SHA
  54. /* Benchmark / Testing */
  55. #define BENCH_EMBEDDED
  56. #define USE_CERT_BUFFERS_1024
  57. /* Custom functions */
  58. extern uint32_t rand_gen(void);
  59. #define CUSTOM_RAND_GENERATE rand_gen
  60. #define CUSTOM_RAND_TYPE uint32_t
  61. extern double current_time(int reset);
  62. #define WOLFSSL_USER_CURRTIME
  63. /* Debugging - Optional */
  64. #if 0
  65. #define fprintf(file, format, ...) printf(format, ##__VA_ARGS__)
  66. #define DEBUG_WOLFSSL
  67. #endif