Skip to content

Commit f0f5abb

Browse files
committed
alif/mpconfigport: Enable cryptolib and hashlib.md5/sha1.
They are enabled when SSL/mbedTLS is included in the firmware. These new features cost around +1400 bytes of code size. Signed-off-by: Damien George <damien@micropython.org>
1 parent f146244 commit f0f5abb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/alif/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@
112112

113113
// Extended modules
114114
#define MICROPY_EPOCH_IS_1970 (1)
115+
#define MICROPY_PY_CRYPTOLIB (MICROPY_PY_SSL)
116+
#define MICROPY_PY_HASHLIB_MD5 (MICROPY_PY_SSL)
117+
#define MICROPY_PY_HASHLIB_SHA1 (MICROPY_PY_SSL)
115118
#define MICROPY_PY_OS_INCLUDEFILE "ports/alif/modos.c"
116119
#define MICROPY_PY_OS_DUPTERM (1)
117120
#define MICROPY_PY_OS_SEP (1)

0 commit comments

Comments
 (0)