Files
wolfssl/IDE/XCODE/user_settings.h
Sean Parkinson 568fc8f5bd Fixes for compiling for ARM64 iOS
Fix bug in ChaCha20 assembly code (was writing one byte too many).
Fix the assembly code to have APPLE format.
Change Poly1305 inline assembly as requested by compiler.
Initialize variables that will be set anyway - compiler complaint.
Change to use the assembly code files for Curve25519 and SHA-512.
Ed25519 not suported with ARM assembly.
2020-07-23 18:08:37 +10:00

88 lines
1.7 KiB
C

/* Configuration */
#define IPHONE /* Needed for Xcode */
#define HAVE_HASHDRBG
#define HAVE_AESGCM
#define WOLFSSL_SHA512
#define WOLFSSL_SHA384
#ifdef HAVE_FIPS
#define NO_MD4
#define NO_HC128
#define NO_RABBIT
#define NO_DSA
#define NO_PWDBASED
#else
/* disable "main" entry */
#undef NO_MAIN_DRIVER
#define NO_MAIN_DRIVER
/* 128-bit type */
#define HAVE___UINT128_T
/* fast math */
#define USE_FAST_MATH
#define HAVE_ECC
/* ECC speedups */
#define ECC_SHAMIR
#define TFM_ECC256
/* timing resistance */
#if 1
#define WC_RSA_BLINDING
#define TFM_TIMING_RESISTANT
#define ECC_TIMING_RESISTANT
#else
#define WC_NO_HARDEN
#endif
/* single precision math */
#if 1
#define WOLFSSL_HAVE_SP_RSA
#define WOLFSSL_HAVE_SP_DH
#define WOLFSSL_HAVE_SP_ECC
#endif
/* ARMv8 - iPhone 8/8Plus and iPhone X */
#ifdef __ARM_FEATURE_CRYPTO
#define WOLFSSL_ARMASM
#define WOLFSSL_SP_ARM64_ASM
#endif
/* newer algorithms */
#define WOLFSSL_SHA3
#define HAVE_POLY1305
#define HAVE_CHACHA
#define HAVE_CURVE25519
#ifndef WOLFSSL_ARMASM
#define HAVE_ED25519
#endif
/* TLS extensions */
#define HAVE_ONE_TIME_AUTH
#define HAVE_TLS_EXTENSIONS
#define HAVE_SUPPORTED_CURVES
#define HAVE_EXTENDED_MASTER
/* off by default */
#define NO_RC4
#define NO_MD4
#define NO_HC128
#define NO_RABBIT
#define NO_DSA
#define NO_PSK
#define NO_PWDBASED
/* test certificate buffers */
#define USE_CERT_BUFFERS_2048
#define USE_CERT_BUFFERS_256
#define NO_WRITE_TEMP_FILES
#define WOLFSSL_DTLS
//#define DEBUG_WOLFSSL
#endif