SHA2017-badge / Firmware

ESP32 firmware for the SHA2017 badge
https://wiki.sha2017.org/w/Badge
Other
83 stars 36 forks source link

micropython: unix hashlib has no sha1 #61

Open annejan opened 7 years ago

annejan commented 7 years ago

For using extmod/uhashlib you need axtls for the sha1

I tried using the mbedtls/moduhashlib on unix which resulted in weird hashes!!

basvs commented 7 years ago

ugly hack: adding -lcrypto to the linker seems to work. even with the correct hashes.

strange thing is.. the unix build builds the libaxtls library and then uses the mbedtls library.