Skip to content

Commit d513a54

Browse files
committed
esp: tmp: try workaround for time alt
Signed-off-by: David Brown <[email protected]>
1 parent fc6263d commit d513a54

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

boot/espressif/include/crypto_config/mbedtls_custom_config.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@
133133
*
134134
* Comment if your system does not support time functions
135135
*/
136-
#define MBEDTLS_HAVE_TIME
136+
// #define MBEDTLS_HAVE_TIME
137+
138+
// #define MBEDTLS_PLATFORM_MS_TIME_ALT
137139

138140
/**
139141
* \def MBEDTLS_HAVE_TIME_DATE
@@ -154,7 +156,7 @@
154156
* mbedtls_platform_gmtime_r() at compile-time by using the macro
155157
* MBEDTLS_PLATFORM_GMTIME_R_ALT.
156158
*/
157-
#define MBEDTLS_HAVE_TIME_DATE
159+
// #define MBEDTLS_HAVE_TIME_DATE
158160

159161
/**
160162
* \def MBEDTLS_PLATFORM_MEMORY

boot/espressif/include/crypto_config/rsa.cmake

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ if (DEFINED CONFIG_ESP_USE_MBEDTLS)
1414
${MBEDTLS_DIR}/library/sha256.c
1515
${MBEDTLS_DIR}/library/rsa.c
1616
${MBEDTLS_DIR}/library/bignum.c
17+
${MBEDTLS_DIR}/library/bignum_core.c
18+
${MBEDTLS_DIR}/library/constant_time.c
1719
${MBEDTLS_DIR}/library/asn1parse.c
1820
${MBEDTLS_DIR}/library/md.c
1921
${MBEDTLS_DIR}/library/memory_buffer_alloc.c
@@ -25,4 +27,4 @@ if (DEFINED CONFIG_ESP_USE_MBEDTLS)
2527
endif()
2628
elseif (DEFINED CONFIG_ESP_USE_TINYCRYPT)
2729
message(FATAL_ERROR "RSA signature verification using Tinycrypt lib is not supported")
28-
endif()
30+
endif()

0 commit comments

Comments
 (0)