user_settings.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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_RABBIT
  44. #define NO_HC128
  45. #define NO_DSA
  46. #define NO_PWDBASED
  47. #define NO_PSK
  48. #define NO_64BIT
  49. #define NO_WOLFSSL_SERVER
  50. #define NO_OLD_TLS
  51. #define NO_DES3
  52. #define NO_MD5
  53. #define NO_RC4
  54. #define NO_DH
  55. #define NO_SHA
  56. /* Benchmark / Testing */
  57. #define BENCH_EMBEDDED
  58. #define USE_CERT_BUFFERS_1024
  59. /* Custom functions */
  60. extern uint32_t rand_gen(void);
  61. #define CUSTOM_RAND_GENERATE rand_gen
  62. #define CUSTOM_RAND_TYPE uint32_t
  63. extern double current_time(int reset);
  64. #define WOLFSSL_USER_CURRTIME
  65. /* Debugging - Optional */
  66. #if 0
  67. #define fprintf(file, format, ...) printf(format, ##__VA_ARGS__)
  68. #define DEBUG_WOLFSSL
  69. #endif