user_settings.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /* user_settings.h
  2. *
  3. * Copyright (C) 2006-2024 wolfSSL Inc.
  4. *
  5. * This file is part of wolfSSL.
  6. *
  7. * wolfSSL is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * wolfSSL is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
  20. */
  21. /* Operating Environment and Threading */
  22. #if defined(WOLFSSL_RENESAS_RSIP)
  23. /* FSP SM stands for Flexible Software Package Security Module
  24. * WOLFSSL_RENESAS_FSPSM enables fundamental code when it uses.
  25. * e.g. Open/Close/Random generator
  26. * WOLFSSL_RENESAS_FSPSPM_TLS enables TLS related code for FSP SM
  27. * e.g. Certificate verification, Master Secret Generation
  28. * WOLFSSL_RENESAS_SCEPROTECT enables specific code for SCE if needed
  29. */
  30. #define WOLFSSL_RENESAS_FSPSM
  31. /* Not yet supported TLS related capabilities */
  32. /* # define WOLFSSL_RENESAS_FSPSM_TLS */
  33. #endif
  34. /* XXX_CRYPTONLY definition enables FSP SM module for Crypto only use.
  35. * Therefore, it disables TLS related API use
  36. */
  37. /* #define WOLFSSL_RENESAS_RSIP_CRYPTONLY */
  38. #if defined(WOLFSSL_RENESAS_RSIP_CRYPTONLY)
  39. #undef WOLFSSL_RENESAS_FSPSM_TLS
  40. #define WOLFSSL_RENESAS_FSPSM_CRYPTONLY
  41. #if !defined(WOLFSSL_RENESAS_RSPI)
  42. #define WOLFSSL_RENESAS_RSPI
  43. #endif
  44. #endif
  45. #define FREERTOS
  46. #define FREERTOS_TCP
  47. #define NO_MAIN_DRIVER
  48. #define BENCH_EMBEDDED
  49. #define NO_WRITEV
  50. #define WOLFSSL_NO_FLOAT_FMT
  51. #define NO_DEV_RANDOM
  52. #define SIZEOF_LONG_LONG 8
  53. #define NO_WOLFSSL_DIR
  54. #define WOLFSSL_NO_CURRDIR
  55. #define NO_WOLF_C99
  56. #define NO_MULTIBYTE_PRINT
  57. #define NO_FILESYSTEM
  58. #define XVALIDATEDATE(d, f,t) (0)
  59. #define TFM_TIMING_RESISTANT
  60. #define ECC_TIMING_RESISTANT
  61. #define WC_RSA_BLINDING
  62. #define HAVE_AESGCM
  63. #define WOLFSSL_SHA224
  64. #define WOLFSSL_SHA384
  65. #define WOLFSSL_SHA512
  66. #define HAVE_ECC
  67. #define HAVE_CURVE25519
  68. #define CURVE25519_SMALL
  69. #define WOLFSSL_SMALL_STACK
  70. #define USE_FAST_MATH
  71. /* static RSA */
  72. #define WOLFSSL_STATIC_RSA
  73. /* Enable to use TLS1.3 */
  74. #define WOLFSSL_TLS13
  75. #if defined(WOLFSSL_TLS13)
  76. #include <sys/time.h>
  77. #define HAVE_FFDHE_2048
  78. #define HAVE_HKDF
  79. #define WC_RSA_PSS
  80. #define HAVE_TLS_EXTENSIONS
  81. #define HAVE_SUPPORTED_CURVES
  82. #endif
  83. #define WOLF_CRYPTO_CB
  84. #if defined(WOLFSSL_RENESAS_RSIP_CRYPTONLY)
  85. #define HAVE_RENESAS_SYNC
  86. #define WC_USE_DEVID 7890
  87. #define NO_AES_192
  88. #define NO_SW_BENCH
  89. #endif
  90. #if defined(WOLFSSL_RENESAS_RSIP_CRYPTONLY)
  91. #define WOLFSSL_KEY_GEN
  92. #endif
  93. int uart_printf (const char *__restrict format, ...);
  94. #undef printf
  95. #define printf uart_printf
  96. #define TEST_SLEEP() vTaskDelay(50)
  97. #define CUSTOM_RAND_GENERATE_BLOCK wc_fspsm_GenerateRandBlock