diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index b1c2b0159..376cbce6e 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -6,6 +6,10 @@ if(CONFIG_WOLFSSL) target_compile_definitions(wolfSSL INTERFACE WOLFSSL_SETTINGS_FILE="${CONFIG_WOLFSSL_SETTINGS_FILE}" ) + zephyr_include_directories( + ${APPLICATION_CONFIG_DIR} + ${APPLICATION_CONFIG_DIR}/src + ) endif() zephyr_include_directories( diff --git a/zephyr/user_settings.h b/zephyr/user_settings.h index de3073d04..8b597144a 100644 --- a/zephyr/user_settings.h +++ b/zephyr/user_settings.h @@ -69,7 +69,10 @@ extern "C" { /* PSA support */ #ifdef CONFIG_MBEDTLS_PSA_CRYPTO_C #define WOLFSSL_HAVE_PSA - #define WOLFSSL_PSA_GLOBAL_LOCK + #ifndef SINGLE_THREADED + #define WOLFSSL_PSA_GLOBAL_LOCK + #endif + #define WC_NO_HASHDRBG /* use PSA RNG directly via wc_psa_get_random */ #endif /* ------------------------------------------------------------------------- */ @@ -135,12 +138,6 @@ extern "C" { /* Algorithms */ /* ------------------------------------------------------------------------- */ /* RNG */ -#if 0 - /* Example for disabling DRBG and using TRNG directly */ - extern int cc310_random_generate(unsigned char* output, unsigned int size); - #define CUSTOM_RAND_GENERATE_BLOCK cc310_random_generate - #define WC_NO_HASHDRBG -#endif #ifndef WC_NO_HASHDRBG #define HAVE_HASHDRBG /* Use DRBG SHA2-256 and seed */ #endif @@ -173,6 +170,7 @@ extern "C" { #undef NO_RSA #define WC_RSA_BLINDING //#define WC_RSA_NO_PADDING + //#define RSA_LOW_MEM #if 0 #define WOLFSSL_KEY_GEN /* For RSA Key gen only */