mirror of https://github.com/wolfSSL/wolfssl.git
Add include for project for cases when a custom user_settings.h file is used. Tested support with PSA.
parent
85c22abe4e
commit
03e306a98f
|
@ -6,6 +6,10 @@ if(CONFIG_WOLFSSL)
|
||||||
target_compile_definitions(wolfSSL INTERFACE
|
target_compile_definitions(wolfSSL INTERFACE
|
||||||
WOLFSSL_SETTINGS_FILE="${CONFIG_WOLFSSL_SETTINGS_FILE}"
|
WOLFSSL_SETTINGS_FILE="${CONFIG_WOLFSSL_SETTINGS_FILE}"
|
||||||
)
|
)
|
||||||
|
zephyr_include_directories(
|
||||||
|
${APPLICATION_CONFIG_DIR}
|
||||||
|
${APPLICATION_CONFIG_DIR}/src
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
zephyr_include_directories(
|
zephyr_include_directories(
|
||||||
|
|
|
@ -69,7 +69,10 @@ extern "C" {
|
||||||
/* PSA support */
|
/* PSA support */
|
||||||
#ifdef CONFIG_MBEDTLS_PSA_CRYPTO_C
|
#ifdef CONFIG_MBEDTLS_PSA_CRYPTO_C
|
||||||
#define WOLFSSL_HAVE_PSA
|
#define WOLFSSL_HAVE_PSA
|
||||||
|
#ifndef SINGLE_THREADED
|
||||||
#define WOLFSSL_PSA_GLOBAL_LOCK
|
#define WOLFSSL_PSA_GLOBAL_LOCK
|
||||||
|
#endif
|
||||||
|
#define WC_NO_HASHDRBG /* use PSA RNG directly via wc_psa_get_random */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
@ -135,12 +138,6 @@ extern "C" {
|
||||||
/* Algorithms */
|
/* Algorithms */
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
/* RNG */
|
/* 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
|
#ifndef WC_NO_HASHDRBG
|
||||||
#define HAVE_HASHDRBG /* Use DRBG SHA2-256 and seed */
|
#define HAVE_HASHDRBG /* Use DRBG SHA2-256 and seed */
|
||||||
#endif
|
#endif
|
||||||
|
@ -173,6 +170,7 @@ extern "C" {
|
||||||
#undef NO_RSA
|
#undef NO_RSA
|
||||||
#define WC_RSA_BLINDING
|
#define WC_RSA_BLINDING
|
||||||
//#define WC_RSA_NO_PADDING
|
//#define WC_RSA_NO_PADDING
|
||||||
|
//#define RSA_LOW_MEM
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
#define WOLFSSL_KEY_GEN /* For RSA Key gen only */
|
#define WOLFSSL_KEY_GEN /* For RSA Key gen only */
|
||||||
|
|
Loading…
Reference in New Issue