forked from wolfSSL/wolfssl
Implement peer review feedback and enhance PAA settings
This commit is contained in:
@ -9,7 +9,7 @@
|
|||||||
* https://www.wolfssl.com
|
* https://www.wolfssl.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Custom wolfSSL user settings for GCC ARM */
|
/* Custom wolfSSL user settings for XCODE-FIPSv2/macOS-C++/Intel */
|
||||||
|
|
||||||
#ifndef WOLFSSL_USER_SETTINGS_H
|
#ifndef WOLFSSL_USER_SETTINGS_H
|
||||||
#define WOLFSSL_USER_SETTINGS_H
|
#define WOLFSSL_USER_SETTINGS_H
|
||||||
@ -53,22 +53,7 @@ extern "C" {
|
|||||||
#define TFM_TIMING_RESISTANT
|
#define TFM_TIMING_RESISTANT
|
||||||
|
|
||||||
#undef TFM_NO_ASM
|
#undef TFM_NO_ASM
|
||||||
#define TFM_NO_ASM
|
// #define TFM_NO_ASM
|
||||||
|
|
||||||
/* Optimizations */
|
|
||||||
//#define TFM_ARM
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Wolf Single Precision Math */
|
|
||||||
#undef WOLFSSL_SP
|
|
||||||
#if 0 /* SP Assembly Speedups (wPAA) */
|
|
||||||
#define WOLFSSL_SP
|
|
||||||
#define WOLFSSL_SP_SMALL /* use smaller version of code */
|
|
||||||
#define WOLFSSL_HAVE_SP_RSA
|
|
||||||
#define WOLFSSL_HAVE_SP_DH
|
|
||||||
#define WOLFSSL_HAVE_SP_ECC
|
|
||||||
#define WOLFSSL_ARMASM
|
|
||||||
#define WOLFSSL_SP_ARM64_ASM
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 1 /* AESNI (wPAA) */
|
#if 1 /* AESNI (wPAA) */
|
||||||
@ -351,8 +336,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* MD5 */
|
/* MD5 */
|
||||||
#undef NO_MD5
|
#undef NO_MD5
|
||||||
#if 1
|
#if 0 /* NOTE: If NO_OLD_TLS is not defined this needs to be set to '#if 1' */
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define NO_MD5
|
#define NO_MD5
|
||||||
#endif
|
#endif
|
||||||
@ -375,7 +359,7 @@ extern "C" {
|
|||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
/* Use reduced benchmark / test sizes */
|
/* Use reduced benchmark / test sizes */
|
||||||
#undef BENCH_EMBEDDED
|
#undef BENCH_EMBEDDED
|
||||||
#define BENCH_EMBEDDED
|
//#define BENCH_EMBEDDED
|
||||||
|
|
||||||
#undef USE_CERT_BUFFERS_2048
|
#undef USE_CERT_BUFFERS_2048
|
||||||
#define USE_CERT_BUFFERS_2048
|
#define USE_CERT_BUFFERS_2048
|
||||||
@ -570,7 +554,7 @@ extern "C" {
|
|||||||
#define WOLFSSL_BASE64_ENCODE
|
#define WOLFSSL_BASE64_ENCODE
|
||||||
|
|
||||||
/* TLS Session Cache */
|
/* TLS Session Cache */
|
||||||
#if 0
|
#if 1
|
||||||
#define SMALL_SESSION_CACHE
|
#define SMALL_SESSION_CACHE
|
||||||
#else
|
#else
|
||||||
#define NO_SESSION_CACHE
|
#define NO_SESSION_CACHE
|
||||||
@ -642,7 +626,7 @@ extern "C" {
|
|||||||
#define NO_RC4
|
#define NO_RC4
|
||||||
|
|
||||||
#undef NO_OLD_TLS
|
#undef NO_OLD_TLS
|
||||||
#define NO_OLD_TLS
|
#define NO_OLD_TLS /* dependency on MD5, enable MD5 if this setting disabled */
|
||||||
|
|
||||||
#undef NO_PSK
|
#undef NO_PSK
|
||||||
#define NO_PSK
|
#define NO_PSK
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* https://www.wolfssl.com
|
* https://www.wolfssl.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Custom wolfSSL user settings for GCC ARM */
|
/* Custom wolfSSL user settings for XCODE-FIPSv2/macOS-C++/M1 */
|
||||||
|
|
||||||
#ifndef WOLFSSL_USER_SETTINGS_H
|
#ifndef WOLFSSL_USER_SETTINGS_H
|
||||||
#define WOLFSSL_USER_SETTINGS_H
|
#define WOLFSSL_USER_SETTINGS_H
|
||||||
@ -56,7 +56,7 @@ extern "C" {
|
|||||||
//#define TFM_NO_ASM
|
//#define TFM_NO_ASM
|
||||||
|
|
||||||
/* Optimizations */
|
/* Optimizations */
|
||||||
//#define TFM_ARM
|
#define TFM_ARM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Wolf Single Precision Math */
|
/* Wolf Single Precision Math */
|
||||||
@ -71,10 +71,6 @@ extern "C" {
|
|||||||
#define WOLFSSL_SP_ARM64_ASM
|
#define WOLFSSL_SP_ARM64_ASM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0 /* AESNI (wPAA) */
|
|
||||||
#define WOLFSSL_AESNI
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
/* FIPS - Requires eval or license from wolfSSL */
|
/* FIPS - Requires eval or license from wolfSSL */
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
@ -351,8 +347,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* MD5 */
|
/* MD5 */
|
||||||
#undef NO_MD5
|
#undef NO_MD5
|
||||||
#if 1
|
#if 0 /* NOTE: If NO_OLD_TLS is not defined this needs to be set to '#if 1' */
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define NO_MD5
|
#define NO_MD5
|
||||||
#endif
|
#endif
|
||||||
@ -375,7 +370,7 @@ extern "C" {
|
|||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
/* Use reduced benchmark / test sizes */
|
/* Use reduced benchmark / test sizes */
|
||||||
#undef BENCH_EMBEDDED
|
#undef BENCH_EMBEDDED
|
||||||
#define BENCH_EMBEDDED
|
//#define BENCH_EMBEDDED
|
||||||
|
|
||||||
#undef USE_CERT_BUFFERS_2048
|
#undef USE_CERT_BUFFERS_2048
|
||||||
#define USE_CERT_BUFFERS_2048
|
#define USE_CERT_BUFFERS_2048
|
||||||
@ -570,7 +565,7 @@ extern "C" {
|
|||||||
#define WOLFSSL_BASE64_ENCODE
|
#define WOLFSSL_BASE64_ENCODE
|
||||||
|
|
||||||
/* TLS Session Cache */
|
/* TLS Session Cache */
|
||||||
#if 0
|
#if 1
|
||||||
#define SMALL_SESSION_CACHE
|
#define SMALL_SESSION_CACHE
|
||||||
#else
|
#else
|
||||||
#define NO_SESSION_CACHE
|
#define NO_SESSION_CACHE
|
||||||
@ -642,7 +637,7 @@ extern "C" {
|
|||||||
#define NO_RC4
|
#define NO_RC4
|
||||||
|
|
||||||
#undef NO_OLD_TLS
|
#undef NO_OLD_TLS
|
||||||
#define NO_OLD_TLS
|
#define NO_OLD_TLS /* dependency on MD5, enable MD5 if this setting disabled */
|
||||||
|
|
||||||
#undef NO_PSK
|
#undef NO_PSK
|
||||||
#define NO_PSK
|
#define NO_PSK
|
||||||
|
Reference in New Issue
Block a user