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