Skip to content

Commit

Permalink
esp: tmp: try workaround for time alt
Browse files Browse the repository at this point in the history
Signed-off-by: David Brown <[email protected]>
  • Loading branch information
d3zd3z committed Jun 26, 2024
1 parent fc6263d commit d513a54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions boot/espressif/include/crypto_config/mbedtls_custom_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@
*
* Comment if your system does not support time functions
*/
#define MBEDTLS_HAVE_TIME
// #define MBEDTLS_HAVE_TIME

// #define MBEDTLS_PLATFORM_MS_TIME_ALT

/**
* \def MBEDTLS_HAVE_TIME_DATE
Expand All @@ -154,7 +156,7 @@
* mbedtls_platform_gmtime_r() at compile-time by using the macro
* MBEDTLS_PLATFORM_GMTIME_R_ALT.
*/
#define MBEDTLS_HAVE_TIME_DATE
// #define MBEDTLS_HAVE_TIME_DATE

/**
* \def MBEDTLS_PLATFORM_MEMORY
Expand Down
4 changes: 3 additions & 1 deletion boot/espressif/include/crypto_config/rsa.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ if (DEFINED CONFIG_ESP_USE_MBEDTLS)
${MBEDTLS_DIR}/library/sha256.c
${MBEDTLS_DIR}/library/rsa.c
${MBEDTLS_DIR}/library/bignum.c
${MBEDTLS_DIR}/library/bignum_core.c
${MBEDTLS_DIR}/library/constant_time.c
${MBEDTLS_DIR}/library/asn1parse.c
${MBEDTLS_DIR}/library/md.c
${MBEDTLS_DIR}/library/memory_buffer_alloc.c
Expand All @@ -25,4 +27,4 @@ if (DEFINED CONFIG_ESP_USE_MBEDTLS)
endif()
elseif (DEFINED CONFIG_ESP_USE_TINYCRYPT)
message(FATAL_ERROR "RSA signature verification using Tinycrypt lib is not supported")
endif()
endif()

0 comments on commit d513a54

Please sign in to comment.