2
0

user_settings_min_ecc.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /* user_settings_min_ecc.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. /* should be renamed to user_settings.h for customer use
  22. * generated from configure options:
  23. * ./configure \
  24. --enable-cryptonly --enable-ecc --enable-sp \
  25. --disable-rsa --disable-dh --disable-sha3 --disable-sha224 --disable-md5 \
  26. --disable-sha --disable-pkcs12 --disable-memory \
  27. --disable-chacha --disable-poly1305 --disable-sha512 --disable-sha384 \
  28. --disable-aesgcm --disable-aescbc --disable-aes --disable-rng \
  29. CFLAGS="-DNO_SIG_WRAPPER -DWOLFSSL_PUBLIC_MP -DECC_USER_CURVES \
  30. -DNO_ECC_SIGN -DNO_ECC_DHE -DNO_ECC_KEY_EXPORT"
  31. *
  32. * Cleaned up by David Garske
  33. */
  34. #ifndef WOLFSSL_USER_SETTINGS_H
  35. #define WOLFSSL_USER_SETTINGS_H
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39. /* WolfCrypt Only (no TLS) */
  40. #define WOLFCRYPT_ONLY
  41. /* Endianness - defaults to little endian */
  42. #ifdef __BIG_ENDIAN__
  43. #define BIG_ENDIAN_ORDER
  44. #endif
  45. /* Expose the math mp_ API's */
  46. #define WOLFSSL_PUBLIC_MP
  47. /* Use single precision math only */
  48. #define WOLFSSL_SP
  49. #define WOLFSSL_SP_SMALL
  50. #define WOLFSSL_SP_MATH
  51. #define WOLFSSL_HAVE_SP_ECC
  52. /* Enable Timing Resistance */
  53. #define TFM_TIMING_RESISTANT
  54. #define ECC_TIMING_RESISTANT
  55. /* Enable ECC */
  56. #define HAVE_ECC
  57. #define ECC_USER_CURVES /* Only 256-Bit Curves */
  58. //#define ECC_SHAMIR
  59. /* Optional Feature Disables */
  60. #define NO_SIG_WRAPPER
  61. //#define NO_ECC_KEY_EXPORT
  62. //#define NO_ECC_DHE
  63. //#define NO_ECC_SIGN
  64. //#define NO_ECC_VERIFY
  65. /* Disable Algorithms */
  66. #define NO_AES
  67. #define NO_AES_CBC
  68. #define NO_DES3
  69. #define NO_DSA
  70. #define NO_RSA
  71. #define NO_DH
  72. #define NO_RC4
  73. #define NO_MD4
  74. #define NO_MD5
  75. #define NO_SHA
  76. #define NO_PWDBASED
  77. #define NO_PKCS12
  78. #define NO_PKCS8
  79. //#define WC_NO_RNG
  80. /* Disable Features */
  81. //#define NO_ASN
  82. //#define NO_CERTS
  83. #define NO_WOLFSSL_MEMORY
  84. #define WOLFSSL_NO_PEM
  85. //#define NO_CODING
  86. #define NO_PSK
  87. #ifndef DEBUG_WOLFSSL
  88. #define DEBUG_WOLFSSL
  89. #define NO_ERROR_STRINGS
  90. #endif
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94. #endif /* WOLFSSL_USER_SETTINGS_H */