-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from billphipps/update_with_nvm
Updates to align with wolfHSM. Depends on wolfHSM PR#19
- Loading branch information
Showing
6 changed files
with
267 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,107 @@ | ||
#ifndef USER_SETTINGS_H | ||
#define USER_SETTINGS_H | ||
/* Server wolfSSL settings */ | ||
|
||
#define WOLFSSL_CRYPTO_CB | ||
/* Common configuration */ | ||
#define WOLFCRYPT_ONLY | ||
//#define BIG_ENDIAN_ORDER | ||
#define WOLF_CRYPTO_CB | ||
//#define WOLFSSL_KEY_GEN | ||
#define SINGLE_THREADED | ||
#define WC_NO_ASYNC_THREADING | ||
#define WOLFSSL_USE_ALIGN | ||
#define HAVE_WC_INTROSPECTION | ||
#define WOLFSSL_IGNORE_FILE_WARN | ||
|
||
#define WOLFSSL_NO_MALLOC | ||
|
||
/* Server wolfHSM settings */ | ||
#define HAVE_WOLFHSM_SERVER | ||
/* Hardening options */ | ||
#define TFM_TIMING_RESISTANT | ||
#define ECC_TIMING_RESISTANT | ||
#define WC_RSA_BLINDING | ||
|
||
/* Remove unneeded features*/ | ||
#define NO_MAIN_DRIVER | ||
#define NO_ERROR_STRINGS | ||
#define NO_ERROR_QUEUE | ||
#define NO_FILESYSTEM | ||
#define NO_INLINE | ||
#define NO_OLD_TLS | ||
#define WOLFSSL_NO_TLS12 | ||
#define NO_DO178 | ||
|
||
/* Remove unneded namespace */ | ||
#define NO_OLD_RNGNAME | ||
#define NO_OLD_WC_NAMES | ||
#define NO_OLD_SSL_NAMES | ||
#define NO_OLD_SHA_NAMES | ||
#define NO_OLD_MD5_NAME | ||
|
||
/* RSA Options */ | ||
//#define NO_RSA | ||
#define HAVE_RSA | ||
#define WC_RSA_PSS | ||
#define WOLFSSL_PSS_LONG_SALT | ||
#define FP_MAX_BITS 4096 | ||
|
||
/* ECC Options */ | ||
//#define HAVE_ECC | ||
#define NO_ECC | ||
#define TFM_ECC256 | ||
#define ECC_SHAMIR | ||
#define HAVE_SUPPORTED_CURVES | ||
|
||
/* Curve25519 Options */ | ||
#define HAVE_CURVE25519 | ||
|
||
/* DH and DHE Options */ | ||
#define HAVE_DH_DEFAULT_PARAMS | ||
#define HAVE_FFDHE_2048 | ||
|
||
/* AES Options */ | ||
#define HAVE_AES | ||
#define HAVE_AESGCM | ||
#define GCM_TABLE_4BIT | ||
#define WOLFSSL_AES_DIRECT | ||
#define HAVE_AES_ECB | ||
#define WOLFSSL_CMAC | ||
|
||
/* SHA Options */ | ||
#define NO_SHA | ||
#define HAVE_SHA256 | ||
|
||
/* Composite features */ | ||
#define HAVE_HKDF | ||
#define HAVE_HASHDRBG | ||
|
||
/* Remove unneeded crypto */ | ||
#define NO_DSA | ||
#define NO_RC4 | ||
#define NO_PSK | ||
#define NO_MD4 | ||
#define NO_MD5 | ||
#define NO_DES3 | ||
#define WOLFSSL_NO_SHAKE128 | ||
#define WOLFSSL_NO_SHAKE256 | ||
#define NO_PWDBASED | ||
|
||
/* Disable DH for now */ | ||
#define NO_DH | ||
|
||
/* Cert processing options */ | ||
#define WOLFSSL_ASN_TEMPLATE | ||
#define WOLFSSL_BASE64_ENCODE | ||
|
||
/* TLS features that are not used */ | ||
/* TODO: Check to see if these can be removed */ | ||
#define HAVE_TLS_EXTENSIONS | ||
#define HAVE_ENCRYPT_THEN_MAC | ||
|
||
/* Math library selection. Move to target */ | ||
|
||
#define USE_FAST_MATH | ||
|
||
|
||
|
||
#endif /*define USER_SETTINGS_H */ | ||
|
||
#define USER_SETTINGS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters