user_settings.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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_DSA
  10. #define NO_PWDBASED
  11. #else
  12. /* disable "main" entry */
  13. #undef NO_MAIN_DRIVER
  14. #define NO_MAIN_DRIVER
  15. /* 128-bit type */
  16. #define HAVE___UINT128_T
  17. /* SP Math */
  18. #define WOLFSSL_SP_MATH
  19. #define HAVE_ECC
  20. /* ECC speedups */
  21. #define ECC_SHAMIR
  22. #define TFM_ECC256
  23. /* timing resistance */
  24. #if 1
  25. #define WC_RSA_BLINDING
  26. #define TFM_TIMING_RESISTANT
  27. #define ECC_TIMING_RESISTANT
  28. #else
  29. #define WC_NO_HARDEN
  30. #endif
  31. /* single precision math */
  32. #if 1
  33. #define WOLFSSL_HAVE_SP_RSA
  34. #define WOLFSSL_HAVE_SP_DH
  35. #define WOLFSSL_HAVE_SP_ECC
  36. #endif
  37. /* ARMv8 - iPhone 8/8Plus and iPhone X */
  38. #ifdef __ARM_FEATURE_CRYPTO
  39. #define WOLFSSL_ARMASM
  40. #define WOLFSSL_SP_ARM64_ASM
  41. #endif
  42. /* newer algorithms */
  43. #define WOLFSSL_SHA3
  44. #define HAVE_POLY1305
  45. #define HAVE_CHACHA
  46. #define HAVE_CURVE25519
  47. #ifndef WOLFSSL_ARMASM
  48. #define HAVE_ED25519
  49. #endif
  50. /* TLS extensions */
  51. #define HAVE_ONE_TIME_AUTH
  52. #define HAVE_TLS_EXTENSIONS
  53. #define HAVE_SUPPORTED_CURVES
  54. #define HAVE_EXTENDED_MASTER
  55. /* off by default */
  56. #define NO_RC4
  57. #define NO_MD4
  58. #define NO_DSA
  59. #define NO_PSK
  60. #define NO_PWDBASED
  61. /* test certificate buffers */
  62. #define USE_CERT_BUFFERS_2048
  63. #define USE_CERT_BUFFERS_256
  64. #define NO_WRITE_TEMP_FILES
  65. #define WOLFSSL_DTLS
  66. //#define DEBUG_WOLFSSL
  67. #endif