RP2040 : Enabling hashlib.sha1 during compilation #10311
Unanswered
ABelliqueux
asked this question in
RP2040 / Pico
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So for those of you wondering how to get sha1 back in (u)hashlib on the rp2 port, it can be enabled by defining
MICROPY_PY_UHASHLIB_SHA1
in 'ports/rp2/mpconfigport.h', after the#include
directives (l.36) , i.e :The resulting filesize with only SHA1 enabled is ~10KB more.
As I didn't find any ressources mentioning this, I figured I might as well save someone else the few hours lost figuring this one out.
Of course, don't use SHA1 for new stuff as it's deprecated, etc.
Beta Was this translation helpful? Give feedback.
All reactions