2
0

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 FP_MAX_BITS_ECC 512
  23. #define ALT_ECC_SIZE
  24. #define USE_FAST_MATH
  25. #define SMALL_SESSION_CACHE
  26. #define CURVED25519_SMALL
  27. #define RSA_LOW_MEM
  28. #define GCM_SMALL
  29. #define ECC_SHAMIR
  30. #define USE_SLOW_SHA2
  31. #define MP_LOW_MEM
  32. #define TFM_TIMING_RESISTANT
  33. //#define TFM_ARM
  34. /* Remove Features */
  35. #define NO_DEV_RANDOM
  36. #define NO_FILESYSTEM
  37. #define NO_WRITEV
  38. #define NO_MAIN_DRIVER
  39. #define NO_WOLFSSL_MEMORY
  40. #define NO_DEV_RANDOM
  41. #define NO_MD4
  42. #define NO_RABBIT
  43. #define NO_HC128
  44. #define NO_DSA
  45. #define NO_PWDBASED
  46. #define NO_PSK
  47. #define NO_64BIT
  48. #define NO_WOLFSSL_SERVER
  49. #define NO_OLD_TLS
  50. #define ECC_USER_CURVES /* Disables P-112, P-128, P-160, P-192, P-224, P-384, P-521 but leaves P-256 enabled */
  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