user_settings.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. #ifndef WOLFSSL_USER_SETTINGS_H
  22. #define WOLFSSL_USER_SETTINGS_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. #undef SINGLE_THREADED
  27. #define SINGLE_THREADED
  28. #undef WOLFSSL_STATIC_MEMORY
  29. #define WOLFSSL_STATIC_MEMORY
  30. #undef WOLFSSL_NO_MALLOC
  31. #define WOLFSSL_NO_MALLOC
  32. #undef NO_FILESYSTEM
  33. #define NO_FILESYSTEM
  34. /* WolfCrypt Only (no TLS) */
  35. #define WOLFCRYPT_ONLY
  36. /* 16 bit */
  37. #define WC_16BIT_CPU
  38. /* Endianness - defaults to little endian */
  39. #ifdef __BIG_ENDIAN__
  40. #define BIG_ENDIAN_ORDER
  41. #endif
  42. /* Expose the math mp_ API's */
  43. #define WOLFSSL_PUBLIC_MP
  44. /* Use single precision math only */
  45. #define WOLFSSL_SP_MATH
  46. #define WOLFSSL_SP_NO_MALLOC
  47. #define WOLFSSL_SP_SMALL
  48. #define WOLFSSL_SP_NO_DYN_STACK
  49. #define WOLFSSL_HAVE_SP_ECC
  50. #define SP_WORD_SIZE 32
  51. #define FP_MAX_BITS (2*256)
  52. #define USE_SLOW_SHA
  53. #define USE_SLOW_SHA256
  54. #define USE_SLOW_SHA512
  55. /* Enable Timing Resistance */
  56. #define TFM_TIMING_RESISTANT
  57. #define ECC_TIMING_RESISTANT
  58. /* Enable ECC */
  59. #define HAVE_ECC
  60. #define ECC_USER_CURVES /* Only 256-Bit Curves */
  61. //#define ECC_SHAMIR
  62. /* Optional Feature Disables */
  63. #define NO_SIG_WRAPPER
  64. //#define NO_ECC_KEY_EXPORT
  65. //#define NO_ECC_DHE
  66. //#define NO_ECC_SIGN
  67. //#define NO_ECC_VERIFY
  68. /* Disable Algorithms */
  69. #define NO_AES
  70. #define NO_AES_CBC
  71. #define NO_DES3
  72. #define NO_DSA
  73. #define NO_RSA
  74. #define NO_DH
  75. #define NO_RC4
  76. #define NO_MD4
  77. #define NO_MD5
  78. #define NO_SHA
  79. #define NO_PWDBASED
  80. #define NO_PKCS12
  81. #define NO_PKCS8
  82. #define HAVE_CHACHA
  83. #define HAVE_POLY1305
  84. #define SIZEOF_LONG_LONG 8
  85. /* Disable Features */
  86. //#define NO_ASN
  87. //#define NO_CERTS
  88. //#define NO_WOLFSSL_MEMORY
  89. #define WOLFSSL_NO_PEM
  90. //#define NO_CODING
  91. #define NO_PSK
  92. #ifndef DEBUG_WOLFSSL
  93. #define DEBUG_WOLFSSL
  94. #define NO_ERROR_STRINGS
  95. #endif
  96. #define CUSTOM_RAND_TYPE unsigned int
  97. extern unsigned int msp430_rnd(void);
  98. #undef CUSTOM_RAND_GENERATE
  99. #define CUSTOM_RAND_GENERATE msp430_rnd
  100. extern unsigned int msp430_time(long *x);
  101. #undef XTIME
  102. #define XTIME msp430_time
  103. #undef NO_CRYPT_TEST
  104. #define NO_CRYPT_TEST
  105. #undef NO_CRYPT_BENCHMARK
  106. #define NO_CRYPT_BENCHMARK
  107. #ifdef __cplusplus
  108. }
  109. #endif
  110. #endif /* WOLFSSL_USER_SETTINGS_H */