Skip to content

Commit 0501427

Browse files
committed
esp32: Remove port-specific uhashlib implementation and use common one.
Now that the common module has mbedtls support for both SHA1 and SHA256 it can now be used on this port.
1 parent c2fb725 commit 0501427

3 files changed

Lines changed: 3 additions & 147 deletions

File tree

ports/esp32/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ SRC_C = \
167167
modesp.c \
168168
esp32_ulp.c \
169169
modesp32.c \
170-
moduhashlib.c \
171170
espneopixel.c \
172171
machine_hw_spi.c \
173172
machine_wdt.c \

ports/esp32/moduhashlib.c

Lines changed: 0 additions & 144 deletions
This file was deleted.

ports/esp32/mpconfigport.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@
124124
#define MICROPY_PY_URE (1)
125125
#define MICROPY_PY_UHEAPQ (1)
126126
#define MICROPY_PY_UTIMEQ (1)
127-
#define MICROPY_PY_UHASHLIB (0) // We use the ESP32 version
128-
#define MICROPY_PY_UHASHLIB_SHA1 (MICROPY_PY_USSL && MICROPY_SSL_AXTLS)
127+
#define MICROPY_PY_UHASHLIB (1)
128+
#define MICROPY_PY_UHASHLIB_SHA1 (1)
129+
#define MICROPY_PY_UHASHLIB_SHA256 (1)
129130
#define MICROPY_PY_UBINASCII (1)
130131
#define MICROPY_PY_UBINASCII_CRC32 (1)
131132
#define MICROPY_PY_URANDOM (1)

0 commit comments

Comments
 (0)