2
0

user_settings.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #ifndef USER_SETTINGS_H
  2. #define USER_SETTINGS_H
  3. #define FREERTOS
  4. #define WOLFSSL_NO_REALLOC
  5. #define SINGLE_THREADED
  6. #define NO_FILESYSTEM
  7. #define WOLFSSL_LWIP
  8. #define HAVE_ECC
  9. #define WOLFSSL_SHA224
  10. #define WOLFSSL_SHA384
  11. #define WOLFSSL_SHA512
  12. #define WOLFSSL_AES_COUNTER
  13. #define OPENSSL_EXTRA
  14. #define WOLFSSL_NO_SOCK
  15. #define WOLFSSL_KEY_GEN
  16. #define WOLFSSL_CERT_GEN
  17. #define WOLFSSL_CERT_REQ
  18. #define WOLFSSL_CERT_EXT
  19. #define HAVE_PKCS7
  20. #ifdef HAVE_PKCS7
  21. #define WOLFSSL_AES_DIRECT
  22. #define HAVE_AES_KEYWRAP
  23. #define HAVE_X963_KDF
  24. #define HAVE_SMIME
  25. #endif
  26. #define WOLFCRYPT_ONLY
  27. #define USE_FAST_MATH
  28. /* harden options */
  29. #ifdef USE_FAST_MATH
  30. #define TFM_TIMING_RESISTANT
  31. #endif
  32. #ifndef NO_RSA
  33. #define WC_RSA_BLINDING
  34. #endif
  35. #ifdef HAVE_ECC
  36. #define ECC_TIMING_RESISTANT
  37. #endif
  38. #define WOLFSSL_USE_ALIGN
  39. #define WOLFSSL_IMXRT1170_CAAM
  40. #define SIZEOF_LONG_LONG 8
  41. #define SIZEOF_LONG 4
  42. #define WOLF_CRYPTO_CB
  43. /* using the RTC */
  44. //#define NO_ASN_TIME
  45. #ifndef NO_ASN_TIME
  46. #define FREESCALE_SNVS_RTC
  47. #endif
  48. #define NO_CRYPT_TEST
  49. #ifndef NO_CRYPT_TEST
  50. #define NO_MAIN_DRIVER
  51. #include <stdio.h>
  52. #include <stdarg.h>
  53. static void myPrintf(const char* fmt, ...)
  54. {
  55. int ret;
  56. char line[150];
  57. va_list ap;
  58. va_start(ap, fmt);
  59. ret = vsnprintf(line, sizeof(line), fmt, ap);
  60. line[sizeof(line)-1] = '\0';
  61. DbgConsole_Printf("%s", line);
  62. /* add CR on newlines */
  63. if (ret > 0 && line[ret-1] == '\n') {
  64. DbgConsole_Printf("\r");
  65. }
  66. }
  67. #define XPRINTF myPrintf
  68. #define USE_CERT_BUFFERS_2048
  69. #define USE_CERT_BUFFERS_1024
  70. #define USE_CERT_BUFFERS_256
  71. #define NO_WRITE_TEMP_FILES
  72. #define BENCH_EMBEDDED
  73. #endif
  74. #endif /* USER_SETTINGS_H */