3030# include "test-app/wcs/user_settings.h"
3131#else
3232
33-
3433#include <target.h>
3534
3635/* System */
3736#define WOLFSSL_GENERAL_ALIGNMENT 4
3837#define SINGLE_THREADED
38+ #define WOLFSSL_USER_MUTEX /* avoid wc_port.c wc_InitAndAllocMutex */
3939#define WOLFCRYPT_ONLY
4040#define SIZEOF_LONG_LONG 8
4141
@@ -166,14 +166,14 @@ extern int tolower(int c);
166166 defined(WOLFBOOT_SIGN_RSA4096 ) || \
167167 defined(WOLFCRYPT_SECURE_MODE )
168168
169-
170- # define WC_RSA_BLINDING
169+ # define WC_RSA_BLINDING
171170# define WC_RSA_DIRECT
172171# define RSA_LOW_MEM
173172# define WC_ASN_HASH_SHA256
174173# if !defined(WOLFBOOT_TPM ) && !defined(WOLFCRYPT_SECURE_MODE )
175174# define WOLFSSL_RSA_VERIFY_INLINE
176175# define WOLFSSL_RSA_VERIFY_ONLY
176+ # define WOLFSSL_RSA_PUBLIC_ONLY
177177# define WC_NO_RSA_OAEP
178178# endif
179179# if !defined(USE_FAST_MATH ) && !defined(WOLFSSL_SP_MATH_ALL )
@@ -374,6 +374,9 @@ extern int tolower(int c);
374374#define WOLFSSL_NO_SOCK
375375#define WOLFSSL_IGNORE_FILE_WARN
376376#define NO_ERROR_STRINGS
377+ #define NO_PKCS12
378+ #define NO_PKCS8
379+ #define NO_CHECK_PRIVATE_KEY
377380
378381#define BENCH_EMBEDDED
379382#define NO_CRYPT_TEST
@@ -397,13 +400,13 @@ extern int tolower(int c);
397400# define WOLFSSL_SP_NO_MALLOC
398401# define WOLFSSL_SP_NO_DYN_STACK
399402# endif
400- # if !defined(ARCH_SIM ) && !defined( SECURE_PKCS11 )
403+ # if !defined(SECURE_PKCS11 )
401404# define WOLFSSL_NO_MALLOC
402405# endif
403406#else
404407# if defined(WOLFBOOT_HUGE_STACK )
405408# error "Cannot use SMALL_STACK=1 with HUGE_STACK=1"
406- #endif
409+ # endif
407410# define WOLFSSL_SMALL_STACK
408411#endif
409412
0 commit comments