mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 10:46:02 -04:00
Merge branch 'bugfix/mbedtls_linux_entropy' into 'master'
fix(mbedtls): allow to use built in entropy implementation for linux target See merge request espressif/esp-idf!26413
This commit is contained in:
commit
fc1080dc6a
@ -192,8 +192,10 @@ if(AES_PERIPHERAL_TYPE STREQUAL "dma")
|
||||
endif()
|
||||
|
||||
|
||||
target_sources(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/esp_hardware.c"
|
||||
"${COMPONENT_DIR}/port/esp_mem.c"
|
||||
if(NOT ${IDF_TARGET} STREQUAL "linux")
|
||||
target_sources(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/esp_hardware.c")
|
||||
endif()
|
||||
target_sources(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/esp_mem.c"
|
||||
"${COMPONENT_DIR}/port/esp_timing.c"
|
||||
)
|
||||
|
||||
|
@ -232,6 +232,7 @@
|
||||
#undef MBEDTLS_ECP_VERIFY_ALT_SOFT_FALLBACK
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_IDF_TARGET_LINUX
|
||||
/**
|
||||
* \def MBEDTLS_ENTROPY_HARDWARE_ALT
|
||||
*
|
||||
@ -244,6 +245,7 @@
|
||||
* Uncomment to use your own hardware entropy collector.
|
||||
*/
|
||||
#define MBEDTLS_ENTROPY_HARDWARE_ALT
|
||||
#endif // !CONFIG_IDF_TARGET_LINUX
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_AES_ROM_TABLES
|
||||
@ -866,6 +868,7 @@
|
||||
*/
|
||||
#define MBEDTLS_FS_IO
|
||||
|
||||
#ifndef CONFIG_IDF_TARGET_LINUX
|
||||
/**
|
||||
* \def MBEDTLS_NO_PLATFORM_ENTROPY
|
||||
*
|
||||
@ -876,6 +879,7 @@
|
||||
* Uncomment this macro to disable the built-in platform entropy functions.
|
||||
*/
|
||||
#define MBEDTLS_NO_PLATFORM_ENTROPY
|
||||
#endif // !CONFIG_IDF_TARGET_LINUX
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_PK_RSA_ALT_SUPPORT
|
||||
|
Loading…
Reference in New Issue
Block a user