Skip to content

Commit f3d1495

Browse files
Carglglzdpgeorge
authored andcommitted
all: Update bindings, ports and tests for mbedtls v3.5.1.
Changes include: - Some mbedtls source files renamed or deprecated. - Our `mbedtls_config.h` files are renamed to `mbedtls_config_port.h`, so they don't clash with mbedtls's new default configuration file named `mbedtls_config.h`. - MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE is deprecated. - MBEDTLS_HAVE_TIME now requires an `mbedtls_ms_time` function to be defined but it's only used for TLSv1.3 (currently not enabled in MicroPython so there is a lazy implementation, i.e. seconds * 1000). - `tests/multi_net/ssl_data.py` is removed (due to deprecation of MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE), there are the existing `ssl_cert_rsa.py` and `sslcontext_server_client.py` tests which do very similar, simple SSL data transfer. - Tests now use an EC key by default (they are smaller and faster), and the RSA key has been regenerated due to the old PKCS encoding used by openssl rsa command, see https://stackoverflow.com/questions/40822328/openssl-rsa-key-pem-and-der-conversion-does-not-match (and `tests/README.md` has been updated accordingly). Signed-off-by: Carlos Gil <[email protected]>
1 parent 92136cb commit f3d1495

37 files changed

+156
-132
lines changed

extmod/extmod.cmake

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -174,20 +174,24 @@ if(MICROPY_SSL_MBEDTLS)
174174
${MICROPY_DIR}/lib/mbedtls_errors/mp_mbedtls_errors.c
175175
${MICROPY_LIB_MBEDTLS_DIR}/library/aes.c
176176
${MICROPY_LIB_MBEDTLS_DIR}/library/aesni.c
177-
${MICROPY_LIB_MBEDTLS_DIR}/library/arc4.c
178177
${MICROPY_LIB_MBEDTLS_DIR}/library/asn1parse.c
179178
${MICROPY_LIB_MBEDTLS_DIR}/library/asn1write.c
180179
${MICROPY_LIB_MBEDTLS_DIR}/library/base64.c
180+
${MICROPY_LIB_MBEDTLS_DIR}/library/bignum_core.c
181+
${MICROPY_LIB_MBEDTLS_DIR}/library/bignum_mod.c
182+
${MICROPY_LIB_MBEDTLS_DIR}/library/bignum_mod_raw.c
181183
${MICROPY_LIB_MBEDTLS_DIR}/library/bignum.c
182-
${MICROPY_LIB_MBEDTLS_DIR}/library/blowfish.c
183184
${MICROPY_LIB_MBEDTLS_DIR}/library/camellia.c
184185
${MICROPY_LIB_MBEDTLS_DIR}/library/ccm.c
185-
${MICROPY_LIB_MBEDTLS_DIR}/library/certs.c
186186
${MICROPY_LIB_MBEDTLS_DIR}/library/chacha20.c
187187
${MICROPY_LIB_MBEDTLS_DIR}/library/chachapoly.c
188188
${MICROPY_LIB_MBEDTLS_DIR}/library/cipher.c
189189
${MICROPY_LIB_MBEDTLS_DIR}/library/cipher_wrap.c
190+
${MICROPY_LIB_MBEDTLS_DIR}/library/nist_kw.c
191+
${MICROPY_LIB_MBEDTLS_DIR}/library/aria.c
190192
${MICROPY_LIB_MBEDTLS_DIR}/library/cmac.c
193+
${MICROPY_LIB_MBEDTLS_DIR}/library/mps_reader.c
194+
${MICROPY_LIB_MBEDTLS_DIR}/library/mps_trace.c
191195
${MICROPY_LIB_MBEDTLS_DIR}/library/ctr_drbg.c
192196
${MICROPY_LIB_MBEDTLS_DIR}/library/debug.c
193197
${MICROPY_LIB_MBEDTLS_DIR}/library/des.c
@@ -200,17 +204,13 @@ if(MICROPY_SSL_MBEDTLS)
200204
${MICROPY_LIB_MBEDTLS_DIR}/library/entropy.c
201205
${MICROPY_LIB_MBEDTLS_DIR}/library/entropy_poll.c
202206
${MICROPY_LIB_MBEDTLS_DIR}/library/gcm.c
203-
${MICROPY_LIB_MBEDTLS_DIR}/library/havege.c
204207
${MICROPY_LIB_MBEDTLS_DIR}/library/hmac_drbg.c
205-
${MICROPY_LIB_MBEDTLS_DIR}/library/md2.c
206-
${MICROPY_LIB_MBEDTLS_DIR}/library/md4.c
207208
${MICROPY_LIB_MBEDTLS_DIR}/library/md5.c
208209
${MICROPY_LIB_MBEDTLS_DIR}/library/md.c
209210
${MICROPY_LIB_MBEDTLS_DIR}/library/oid.c
210211
${MICROPY_LIB_MBEDTLS_DIR}/library/padlock.c
211212
${MICROPY_LIB_MBEDTLS_DIR}/library/pem.c
212213
${MICROPY_LIB_MBEDTLS_DIR}/library/pk.c
213-
${MICROPY_LIB_MBEDTLS_DIR}/library/pkcs11.c
214214
${MICROPY_LIB_MBEDTLS_DIR}/library/pkcs12.c
215215
${MICROPY_LIB_MBEDTLS_DIR}/library/pkcs5.c
216216
${MICROPY_LIB_MBEDTLS_DIR}/library/pkparse.c
@@ -221,15 +221,17 @@ if(MICROPY_SSL_MBEDTLS)
221221
${MICROPY_LIB_MBEDTLS_DIR}/library/poly1305.c
222222
${MICROPY_LIB_MBEDTLS_DIR}/library/ripemd160.c
223223
${MICROPY_LIB_MBEDTLS_DIR}/library/rsa.c
224-
${MICROPY_LIB_MBEDTLS_DIR}/library/rsa_internal.c
224+
${MICROPY_LIB_MBEDTLS_DIR}/library/rsa_alt_helpers.c
225225
${MICROPY_LIB_MBEDTLS_DIR}/library/sha1.c
226226
${MICROPY_LIB_MBEDTLS_DIR}/library/sha256.c
227227
${MICROPY_LIB_MBEDTLS_DIR}/library/sha512.c
228228
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_cache.c
229229
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_ciphersuites.c
230-
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_cli.c
230+
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_tls12_client.c
231+
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_tls12_server.c
232+
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_client.c
231233
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_cookie.c
232-
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_srv.c
234+
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_debug_helpers_generated.c
233235
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_msg.c
234236
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_ticket.c
235237
${MICROPY_LIB_MBEDTLS_DIR}/library/ssl_tls.c
@@ -242,11 +244,10 @@ if(MICROPY_SSL_MBEDTLS)
242244
${MICROPY_LIB_MBEDTLS_DIR}/library/x509_csr.c
243245
${MICROPY_LIB_MBEDTLS_DIR}/library/x509write_crt.c
244246
${MICROPY_LIB_MBEDTLS_DIR}/library/x509write_csr.c
245-
${MICROPY_LIB_MBEDTLS_DIR}/library/xtea.c
246247
)
247248

248249
if(NOT MBEDTLS_CONFIG_FILE)
249-
set(MBEDTLS_CONFIG_FILE "${MICROPY_PORT_DIR}/mbedtls/mbedtls_config.h")
250+
set(MBEDTLS_CONFIG_FILE "${MICROPY_PORT_DIR}/mbedtls/mbedtls_config_port.h")
250251
endif()
251252

252253
target_compile_definitions(micropy_lib_mbedtls INTERFACE

extmod/extmod.mk

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -231,28 +231,33 @@ SRC_THIRDPARTY_C += $(addprefix $(AXTLS_DIR)/,\
231231
)
232232
else ifeq ($(MICROPY_SSL_MBEDTLS),1)
233233
MBEDTLS_DIR = lib/mbedtls
234-
MBEDTLS_CONFIG_FILE ?= \"mbedtls/mbedtls_config.h\"
234+
MBEDTLS_CONFIG_FILE ?= \"mbedtls/mbedtls_config_port.h\"
235235
GIT_SUBMODULES += $(MBEDTLS_DIR)
236236
CFLAGS_EXTMOD += -DMBEDTLS_CONFIG_FILE=$(MBEDTLS_CONFIG_FILE)
237237
CFLAGS_EXTMOD += -DMICROPY_SSL_MBEDTLS=1 -I$(TOP)/$(MBEDTLS_DIR)/include
238238
SRC_THIRDPARTY_C += lib/mbedtls_errors/mp_mbedtls_errors.c
239239
SRC_THIRDPARTY_C += $(addprefix $(MBEDTLS_DIR)/library/,\
240240
aes.c \
241241
aesni.c \
242-
arc4.c \
243242
asn1parse.c \
244243
asn1write.c \
245244
base64.c \
245+
bignum_core.c \
246+
bignum_mod.c \
247+
bignum_mod_raw.c \
246248
bignum.c \
247-
blowfish.c \
248249
camellia.c \
249250
ccm.c \
250-
certs.c \
251251
chacha20.c \
252252
chachapoly.c \
253253
cipher.c \
254254
cipher_wrap.c \
255+
nist_kw.c \
256+
aria.c \
255257
cmac.c \
258+
constant_time.c \
259+
mps_reader.c \
260+
mps_trace.c \
256261
ctr_drbg.c \
257262
debug.c \
258263
des.c \
@@ -265,17 +270,13 @@ SRC_THIRDPARTY_C += $(addprefix $(MBEDTLS_DIR)/library/,\
265270
entropy.c \
266271
entropy_poll.c \
267272
gcm.c \
268-
havege.c \
269273
hmac_drbg.c \
270-
md2.c \
271-
md4.c \
272274
md5.c \
273275
md.c \
274276
oid.c \
275277
padlock.c \
276278
pem.c \
277279
pk.c \
278-
pkcs11.c \
279280
pkcs12.c \
280281
pkcs5.c \
281282
pkparse.c \
@@ -286,28 +287,28 @@ SRC_THIRDPARTY_C += $(addprefix $(MBEDTLS_DIR)/library/,\
286287
poly1305.c \
287288
ripemd160.c \
288289
rsa.c \
289-
rsa_internal.c \
290+
rsa_alt_helpers.c \
290291
sha1.c \
291292
sha256.c \
292293
sha512.c \
293294
ssl_cache.c \
294295
ssl_ciphersuites.c \
295-
ssl_cli.c \
296+
ssl_client.c \
296297
ssl_cookie.c \
297-
ssl_srv.c \
298+
ssl_debug_helpers_generated.c \
298299
ssl_msg.c \
299300
ssl_ticket.c \
300301
ssl_tls.c \
302+
ssl_tls12_client.c \
303+
ssl_tls12_server.c \
301304
timing.c \
302-
constant_time.c \
303305
x509.c \
304306
x509_create.c \
305307
x509_crl.c \
306308
x509_crt.c \
307309
x509_csr.c \
308310
x509write_crt.c \
309311
x509write_csr.c \
310-
xtea.c \
311312
)
312313
endif
313314
endif

extmod/mbedtls/mbedtls_config_common.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
4646
#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
4747
#define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
48-
// #define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED // enabling this currently breaks ssl_data.py test
4948
#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
50-
#define MBEDTLS_NO_PLATFORM_ENTROPY
49+
#define MBEDTLS_CAN_ECDH
50+
#define MBEDTLS_PK_CAN_ECDSA_SIGN
5151
#define MBEDTLS_PKCS1_V15
5252
#define MBEDTLS_SHA256_SMALLER
5353
#define MBEDTLS_SSL_PROTO_TLS1
@@ -81,12 +81,13 @@
8181
#define MBEDTLS_PLATFORM_C
8282
#define MBEDTLS_RSA_C
8383
#define MBEDTLS_SHA1_C
84+
#define MBEDTLS_SHA224_C
8485
#define MBEDTLS_SHA256_C
86+
#define MBEDTLS_SHA384_C
8587
#define MBEDTLS_SHA512_C
8688
#define MBEDTLS_SSL_CLI_C
8789
#define MBEDTLS_SSL_SRV_C
8890
#define MBEDTLS_SSL_TLS_C
89-
#define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE
9091
#define MBEDTLS_X509_CRT_PARSE_C
9192
#define MBEDTLS_X509_USE_C
9293

@@ -97,6 +98,7 @@
9798
#define MBEDTLS_PLATFORM_MEMORY
9899
#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
99100
#define MBEDTLS_ENTROPY_HARDWARE_ALT
101+
#define MBEDTLS_NO_PLATFORM_ENTROPY
100102

101103
// Bare-metal memory allocation hooks.
102104
#include <stdlib.h>
@@ -109,7 +111,4 @@ void m_tracked_free(void *ptr);
109111

110112
#endif
111113

112-
// Include mbedtls configuration checker.
113-
#include "mbedtls/check_config.h"
114-
115114
#endif // MICROPY_INCLUDED_MBEDTLS_CONFIG_COMMON_H

ports/mimxrt/mbedtls/mbedtls_config.h renamed to ports/mimxrt/mbedtls/mbedtls_config_port.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <time.h>
3131
extern time_t mimxrt_rtctime_seconds(time_t *timer);
3232
#define MBEDTLS_PLATFORM_TIME_MACRO mimxrt_rtctime_seconds
33+
#define MBEDTLS_PLATFORM_MS_TIME_ALT mbedtls_ms_time
3334

3435
// Set MicroPython-specific options.
3536
#define MICROPY_MBEDTLS_CONFIG_BARE_METAL (1)

ports/mimxrt/mbedtls/mbedtls_port.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@
2828

2929
#ifdef MICROPY_SSL_MBEDTLS
3030

31-
#include "mbedtls_config.h"
31+
#include "mbedtls_config_port.h"
3232
#if defined(MBEDTLS_HAVE_TIME) || defined(MBEDTLS_HAVE_TIME_DATE)
3333
#include "fsl_snvs_lp.h"
3434
#include "shared/timeutils/timeutils.h"
35+
#include "mbedtls/platform_time.h"
3536
#endif
3637

3738
void trng_random_data(unsigned char *output, size_t len);
@@ -52,6 +53,13 @@ time_t mimxrt_rtctime_seconds(time_t *timer) {
5253
SNVS_LP_SRTC_GetDatetime(SNVS, &date);
5354
return timeutils_seconds_since_epoch(date.year, date.month, date.day, date.hour, date.minute, date.second);
5455
}
56+
57+
mbedtls_ms_time_t mbedtls_ms_time(void) {
58+
time_t *tv = NULL;
59+
mbedtls_ms_time_t current_ms;
60+
current_ms = mimxrt_rtctime_seconds(tv) * 1000;
61+
return current_ms;
62+
}
5563
#endif
5664

5765
#if defined(MBEDTLS_HAVE_TIME_DATE)

ports/renesas-ra/boards/ARDUINO_PORTENTA_C33/mbedtls_config_board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
#define MBEDTLS_ECP_NIST_OPTIM
55

6-
#include "ports/renesas-ra/mbedtls/mbedtls_config.h"
6+
#include "ports/renesas-ra/mbedtls/mbedtls_config_port.h"
77

88
#endif /* MICROPY_INCLUDED_MBEDTLS_CONFIG_BOARD_H */

ports/renesas-ra/mbedtls/mbedtls_config.h renamed to ports/renesas-ra/mbedtls/mbedtls_config_port.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <time.h>
3131
extern time_t ra_rtctime_seconds(time_t *timer);
3232
#define MBEDTLS_PLATFORM_TIME_MACRO ra_rtctime_seconds
33+
#define MBEDTLS_PLATFORM_MS_TIME_ALT mbedtls_ms_time
3334

3435
// Set MicroPython-specific options.
3536
#define MICROPY_MBEDTLS_CONFIG_BARE_METAL (1)

ports/renesas-ra/mbedtls/mbedtls_port.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525
*/
2626

2727
#include "rng.h"
28-
#include "mbedtls_config.h"
28+
#include "mbedtls_config_port.h"
2929

3030
#if defined(MBEDTLS_HAVE_TIME) || defined(MBEDTLS_HAVE_TIME_DATE)
3131
#include "rtc.h"
3232
#include "shared/timeutils/timeutils.h"
33+
#include "mbedtls/platform_time.h"
3334
#endif
3435

3536
int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, size_t *olen) {
@@ -57,6 +58,13 @@ time_t ra_rtctime_seconds(time_t *timer) {
5758
rtc_get_date(&date);
5859
return timeutils_seconds_since_epoch(2000 + date.Year, date.Month, date.Date, time.Hours, time.Minutes, time.Seconds);
5960
}
61+
62+
mbedtls_ms_time_t mbedtls_ms_time(void) {
63+
time_t *tv = NULL;
64+
mbedtls_ms_time_t current_ms;
65+
current_ms = ra_rtctime_seconds(tv) * 1000;
66+
return current_ms;
67+
}
6068
#endif
6169

6270
#if defined(MBEDTLS_HAVE_TIME_DATE)

ports/rp2/mbedtls/mbedtls_config.h renamed to ports/rp2/mbedtls/mbedtls_config_port.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include <time.h>
3838
time_t rp2_rtctime_seconds(time_t *timer);
3939
#define MBEDTLS_PLATFORM_TIME_MACRO rp2_rtctime_seconds
40+
#define MBEDTLS_PLATFORM_MS_TIME_ALT mbedtls_ms_time
4041

4142
// Set MicroPython-specific options.
4243
#define MICROPY_MBEDTLS_CONFIG_BARE_METAL (1)

ports/rp2/mbedtls/mbedtls_port.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727

2828
#ifdef MICROPY_SSL_MBEDTLS
2929

30-
#include "mbedtls_config.h"
30+
#include "mbedtls_config_port.h"
3131

3232
#include "hardware/rtc.h"
3333
#include "shared/timeutils/timeutils.h"
34+
#include "mbedtls/platform_time.h"
3435

3536
extern uint8_t rosc_random_u8(size_t cycles);
3637

@@ -48,4 +49,10 @@ time_t rp2_rtctime_seconds(time_t *timer) {
4849
return timeutils_seconds_since_epoch(t.year, t.month, t.day, t.hour, t.min, t.sec);
4950
}
5051

52+
mbedtls_ms_time_t mbedtls_ms_time(void) {
53+
time_t *tv = NULL;
54+
mbedtls_ms_time_t current_ms;
55+
current_ms = rp2_rtctime_seconds(tv) * 1000;
56+
return current_ms;
57+
}
5158
#endif

ports/stm32/boards/ARDUINO_GIGA/mbedtls_config_board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
#define MBEDTLS_ECP_NIST_OPTIM
55

6-
#include "ports/stm32/mbedtls/mbedtls_config.h"
6+
#include "ports/stm32/mbedtls/mbedtls_config_port.h"
77

88
#endif /* MICROPY_INCLUDED_MBEDTLS_CONFIG_BOARD_H */

ports/stm32/boards/ARDUINO_NICLA_VISION/mbedtls_config_board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
#define MBEDTLS_ECP_NIST_OPTIM
55

6-
#include "ports/stm32/mbedtls/mbedtls_config.h"
6+
#include "ports/stm32/mbedtls/mbedtls_config_port.h"
77

88
#endif /* MICROPY_INCLUDED_MBEDTLS_CONFIG_BOARD_H */

ports/stm32/boards/ARDUINO_PORTENTA_H7/mbedtls_config_board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
#define MBEDTLS_ECP_NIST_OPTIM
55

6-
#include "ports/stm32/mbedtls/mbedtls_config.h"
6+
#include "ports/stm32/mbedtls/mbedtls_config_port.h"
77

88
#endif /* MICROPY_INCLUDED_MBEDTLS_CONFIG_BOARD_H */

ports/stm32/mbedtls/mbedtls_config.h renamed to ports/stm32/mbedtls/mbedtls_config_port.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <time.h>
3131
extern time_t stm32_rtctime_seconds(time_t *timer);
3232
#define MBEDTLS_PLATFORM_TIME_MACRO stm32_rtctime_seconds
33+
#define MBEDTLS_PLATFORM_MS_TIME_ALT mbedtls_ms_time
3334

3435
// Set MicroPython-specific options.
3536
#define MICROPY_MBEDTLS_CONFIG_BARE_METAL (1)

ports/stm32/mbedtls/mbedtls_port.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525
*/
2626

2727
#include "rng.h"
28-
#include "mbedtls_config.h"
28+
#include "mbedtls_config_port.h"
2929

3030
#if defined(MBEDTLS_HAVE_TIME) || defined(MBEDTLS_HAVE_TIME_DATE)
3131
#include "rtc.h"
3232
#include "shared/timeutils/timeutils.h"
33+
#include "mbedtls/platform_time.h"
3334
#endif
3435

3536
int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, size_t *olen) {
@@ -57,6 +58,13 @@ time_t stm32_rtctime_seconds(time_t *timer) {
5758
HAL_RTC_GetDate(&RTCHandle, &date, RTC_FORMAT_BIN);
5859
return timeutils_seconds_since_epoch(2000 + date.Year, date.Month, date.Date, time.Hours, time.Minutes, time.Seconds);
5960
}
61+
62+
mbedtls_ms_time_t mbedtls_ms_time(void) {
63+
time_t *tv = NULL;
64+
mbedtls_ms_time_t current_ms;
65+
current_ms = stm32_rtctime_seconds(tv) * 1000;
66+
return current_ms;
67+
}
6068
#endif
6169

6270
#if defined(MBEDTLS_HAVE_TIME_DATE)

ports/unix/mbedtls/mbedtls_config.h renamed to ports/unix/mbedtls/mbedtls_config_port.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#define MBEDTLS_CIPHER_MODE_CTR // needed for MICROPY_PY_CRYPTOLIB_CTR
3131

3232
// Enable mbedtls modules
33-
#define MBEDTLS_HAVEGE_C
3433
#define MBEDTLS_TIMING_C
3534

3635
// Include common mbedtls configuration.

0 commit comments

Comments
 (0)