user_settings.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* user_settings.h
  2. *
  3. * Copyright (C) 2006-2023 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. #define NO_MAIN_DRIVER
  22. #define BENCH_EMBEDDED
  23. #define NO_WRITEV
  24. #define WOLFSSL_USER_IO
  25. #define NO_DEV_RANDOM
  26. #define USE_CERT_BUFFERS_2048
  27. #define WOLFSSL_USER_CURRTIME
  28. #define SIZEOF_LONG_LONG 8
  29. #define NO_WOLFSSL_DIR
  30. #define WOLFSSL_NO_CURRDIR
  31. #define NO_FILESYSTEM
  32. #define WOLFSSL_LOG_PRINTF
  33. #define WOLFSSL_HAVE_MIN
  34. #define WOLFSSL_HAVE_MAX
  35. #if !defined(min)
  36. #define min(data1, data2) _builtin_min(data1, data2)
  37. #endif
  38. #define WOLFSSL_SMALL_STACK
  39. #define WOLFSSL_DH_CONST
  40. #define HAVE_TLS_EXTENSIONS
  41. #define HAVE_SUPPORTED_CURVES
  42. #define USER_TIME
  43. #define XTIME time
  44. #define USE_WOLF_SUSECONDS_T
  45. #define USE_WOLF_TIMEVAL_T
  46. #define WOLFSSL_USER_CURRTIME /* for benchmark */
  47. #define TFM_TIMING_RESISTANT
  48. #define ECC_TIMING_RESISTANT
  49. #define WC_RSA_BLINDING
  50. #define SINGLE_THREADED /* or define RTOS option */
  51. #ifndef SINGLE_THREADED
  52. /* expects use FRERRTOS */
  53. #define FREERTOS
  54. #endif
  55. /* #define NO_DH */
  56. #define HAVE_AESGCM
  57. #define WOLFSSL_SHA512
  58. #define HAVE_ECC
  59. #define HAVE_CURVE25519
  60. #define CURVE25519_SMALL
  61. #define HAVE_ED25519
  62. /* #define NO_WOLFSSL_STUB */
  63. /* #define DEBUG_WOLFSSL */
  64. /* TSIP TLS specific definitions */
  65. #if !defined(WOLFSSL_RENESAS_TSIP)
  66. #define OPENSSL_EXTRA
  67. #define WOLFSSL_GENSEED_FORTEST /* Warning: define your own seed gen */
  68. #else
  69. #if defined(WOLFSSL_RENESAS_RX65N)
  70. /* In the case of Static RSA and AES-CBC use */
  71. #define HAVE_AES_CBC
  72. /* TSIP ver 1.0.6 or lower supports only static RSA as Public-key cryptography. */
  73. #define WOLFSSL_STATIC_RSA
  74. /* for disabling TSIP CRYPT and TSIP TLS */
  75. /* #define NO_RENESAS_TSIP_CRYPT */
  76. /* for disabling only TSIP TLS-linked Common key encryption method */
  77. /* #define NO_WOLFSSL_RENESAS_TSIP_TLS_SESSION */
  78. #endif
  79. #endif