user_settings.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. #define NO_MAIN_DRIVER
  16. /* fast math */
  17. #define USE_FAST_MATH
  18. #define HAVE_ECC
  19. /* ECC speedups */
  20. #define ECC_SHAMIR
  21. #define TFM_ECC256
  22. /* timing resistance */
  23. #if 0
  24. #define WC_RSA_BLINDING
  25. #define TFM_TIMING_RESISTANT
  26. #define ECC_TIMING_RESISTANT
  27. #else
  28. #define WC_NO_HARDEN
  29. #endif
  30. /* single precision math */
  31. #if 1
  32. #define WOLFSSL_HAVE_SP_RSA
  33. #define WOLFSSL_HAVE_SP_DH
  34. #define WOLFSSL_HAVE_SP_ECC
  35. #endif
  36. /* ARMv8 - iPhone 8/8Plus and iPhone X */
  37. #ifdef __ARM_FEATURE_CRYPTO
  38. #define WOLFSSL_ARMASM
  39. #endif
  40. /* newer algorithms */
  41. #define WOLFSSL_SHA3
  42. #define HAVE_POLY1305
  43. #define HAVE_CHACHA
  44. #define HAVE_CURVE25519
  45. #define HAVE_ED25519
  46. /* TLS extensions */
  47. #define HAVE_ONE_TIME_AUTH
  48. #define HAVE_TLS_EXTENSIONS
  49. #define HAVE_SUPPORTED_CURVES
  50. #define HAVE_EXTENDED_MASTER
  51. /* off by default */
  52. #define NO_RC4
  53. #define NO_MD4
  54. #define NO_HC128
  55. #define NO_RABBIT
  56. #define NO_DSA
  57. #define NO_PSK
  58. #define NO_PWDBASED
  59. /* test certificate buffers */
  60. #define USE_CERT_BUFFERS_2048
  61. #define USE_CERT_BUFFERS_256
  62. //#define DEBUG_WOLFSSL
  63. #endif