Skip to content

Commit d9d82b5

Browse files
almir-okatod3zd3z
authored andcommitted
espressif: fix RSA sign build after MbedTLS version update
Add missing files from external MbedTLS. Signed-off-by: Almir Okato <almir.okato@espressif.com> Signed-off-by: David Brown <david.brown@linaro.org>
1 parent fa4ca87 commit d9d82b5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

boot/espressif/include/crypto_config/mbedtls_custom_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
*
134134
* Comment if your system does not support time functions
135135
*/
136-
#define MBEDTLS_HAVE_TIME
136+
// #define MBEDTLS_HAVE_TIME
137137

138138
/**
139139
* \def MBEDTLS_HAVE_TIME_DATE
@@ -154,7 +154,7 @@
154154
* mbedtls_platform_gmtime_r() at compile-time by using the macro
155155
* MBEDTLS_PLATFORM_GMTIME_R_ALT.
156156
*/
157-
#define MBEDTLS_HAVE_TIME_DATE
157+
// #define MBEDTLS_HAVE_TIME_DATE
158158

159159
/**
160160
* \def MBEDTLS_PLATFORM_MEMORY

boot/espressif/include/crypto_config/rsa.cmake

Lines changed: 2 additions & 0 deletions
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

0 commit comments

Comments
 (0)