123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- #ifndef WOLFSSL_USER_SETTINGS_SSH_H
- #define WOLFSSL_USER_SETTINGS_SSH_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef USE_LOW_RESOURCE
-
- #define SINGLE_THREADED
- #define NO_FILESYSTEM
- #define BENCH_EMBEDDED
- #endif
- #define WOLFSSL_WOLFSSH
- #if 1
- #define WOLFCRYPT_ONLY
- #endif
- #define HAVE_HASHDRBG
- #define WOLFSSL_ASN_TEMPLATE
- #define WOLFSSL_PUBLIC_MP
- #ifndef USE_LOW_RESOURCE
- #define WOLFSSL_BASE64_ENCODE
- #endif
- #ifndef WOLFCRYPT_ONLY
- #define HAVE_TLS_EXTENSIONS
- #define HAVE_SUPPORTED_CURVES
- #define HAVE_ENCRYPT_THEN_MAC
- #endif
- #define TFM_TIMING_RESISTANT
- #define ECC_TIMING_RESISTANT
- #define WC_RSA_BLINDING
- #if 1
- #undef NO_RSA
- #define WC_NO_RSA_OAEP
- #ifdef USE_LOW_RESOURCE
- #define RSA_LOW_MEM
- #endif
- #else
- #define NO_RSA
- #endif
- #if 1
-
- #undef NO_DH
- #ifndef WOLFCRYPT_ONLY
- #define HAVE_DH_DEFAULT_PARAMS
- #define HAVE_FFDHE_2048
- #endif
- #else
- #define NO_DH
- #endif
- #if 1
- #define HAVE_ECC
- #ifndef USE_LOW_RESOURCE
- #define ECC_SHAMIR
- #endif
- #define ECC_USER_CURVES
- #ifndef USE_LOW_RESOURCE
- #define HAVE_ECC384
- #define HAVE_ECC521
- #endif
- #endif
- #undef NO_AES_CBC
- #if 1
- #define HAVE_AESGCM
- #define GCM_SMALL
- #endif
- #ifdef USE_LOW_RESOURCE
- #define WOLFSSL_AES_SMALL_TABLES
- #endif
- #undef NO_SHA
- #undef NO_SHA256
- #ifdef USE_LOW_RESOURCE
- #define USE_SLOW_SHA
- #define USE_SLOW_SHA256
- #endif
- #if 0
- #define WOLFSSL_SHA384
- #define WOLFSSL_SHA512
- #ifdef USE_LOW_RESOURCE
- #define USE_SLOW_SHA512
- #endif
- #endif
- #if 0
- #define WOLFSSL_SP_MATH_ALL
- #endif
- #define WOLFSSL_SP_MATH
- #define WOLFSSL_SP_SMALL
- #if !defined(NO_RSA) || !defined(NO_DH)
- #undef WOLFSSL_SP_NO_2048
- #ifdef USE_LOW_RESOURCE
- #define WOLFSSL_SP_NO_3072
- #else
- #undef WOLFSSL_SP_NO_3072
- #define WOLFSSL_SP_4096
- #endif
- #ifndef NO_RSA
- #define WOLFSSL_HAVE_SP_RSA
- #endif
- #ifndef NO_DH
- #define WOLFSSL_HAVE_SP_DH
- #endif
- #endif
- #ifdef HAVE_ECC
- #define WOLFSSL_HAVE_SP_ECC
- #undef WOLFSSL_SP_NO_256
- #ifdef HAVE_ECC384
- #define WOLFSSL_SP_384
- #endif
- #ifdef HAVE_ECC521
- #define WOLFSSL_SP_521
- #endif
- #endif
- #define NO_DSA
- #define NO_DES3
- #define NO_MD4
- #define NO_MD5
- #define NO_RC4
- #define NO_PSK
- #define NO_PKCS12
- #define NO_PWDBASED
- #define WOLFSSL_NO_SHAKE128
- #define WOLFSSL_NO_SHAKE256
- #define NO_ERROR_STRINGS
- #define WC_NO_ASYNC_THREADING
- #define NO_DES3_TLS_SUITES
- #define NO_OLD_TLS
- #define WOLFSSL_NO_TLS12
- #ifdef __cplusplus
- }
- #endif
- #endif
|