1
0

user_settings.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* Configuration */
  2. #define IPHONE /* Needed for Xcode */
  3. #define HAVE_HASHDRBG
  4. #define HAVE_AESGCM
  5. #define WOLFSSL_SHA512
  6. #define WOLFSSL_SHA384
  7. #ifdef HAVE_FIPS
  8. #define NO_MD4
  9. #define NO_HC128
  10. #define NO_RABBIT
  11. #define NO_DSA
  12. #define NO_PWDBASED
  13. #else
  14. /* disable "main" entry */
  15. #undef NO_MAIN_DRIVER
  16. #define NO_MAIN_DRIVER
  17. /* 128-bit type */
  18. #define HAVE___UINT128_T
  19. /* fast math */
  20. #define USE_FAST_MATH
  21. #define HAVE_ECC
  22. /* ECC speedups */
  23. #define ECC_SHAMIR
  24. #define TFM_ECC256
  25. /* timing resistance */
  26. #if 1
  27. #define WC_RSA_BLINDING
  28. #define TFM_TIMING_RESISTANT
  29. #define ECC_TIMING_RESISTANT
  30. #else
  31. #define WC_NO_HARDEN
  32. #endif
  33. /* single precision math */
  34. #if 1
  35. #define WOLFSSL_HAVE_SP_RSA
  36. #define WOLFSSL_HAVE_SP_DH
  37. #define WOLFSSL_HAVE_SP_ECC
  38. #endif
  39. /* ARMv8 - iPhone 8/8Plus and iPhone X */
  40. #ifdef __ARM_FEATURE_CRYPTO
  41. #define WOLFSSL_ARMASM
  42. #define WOLFSSL_SP_ARM64_ASM
  43. #endif
  44. /* newer algorithms */
  45. #define WOLFSSL_SHA3
  46. #define HAVE_POLY1305
  47. #define HAVE_CHACHA
  48. #define HAVE_CURVE25519
  49. #ifndef WOLFSSL_ARMASM
  50. #define HAVE_ED25519
  51. #endif
  52. /* TLS extensions */
  53. #define HAVE_ONE_TIME_AUTH
  54. #define HAVE_TLS_EXTENSIONS
  55. #define HAVE_SUPPORTED_CURVES
  56. #define HAVE_EXTENDED_MASTER
  57. /* off by default */
  58. #define NO_RC4
  59. #define NO_MD4
  60. #define NO_HC128
  61. #define NO_RABBIT
  62. #define NO_DSA
  63. #define NO_PSK
  64. #define NO_PWDBASED
  65. /* test certificate buffers */
  66. #define USE_CERT_BUFFERS_2048
  67. #define USE_CERT_BUFFERS_256
  68. #define NO_WRITE_TEMP_FILES
  69. #define WOLFSSL_DTLS
  70. //#define DEBUG_WOLFSSL
  71. #endif