/sha1

SHA-1 implementation for MBED in C++. Do not use SHA-1 unless you have to! https://en.wikipedia.org/wiki/SHA-1#The_SHAppening

Primary LanguageC

SHA-1 implementation in C++

  • Source code for SHA-1 is in sha-src
  • All other folders are needed to build on the MBED platform for ARM core devices

Warning

Do not use SHA-1 unless you have to! Although SHA-1 is not as broken as SHA-0 and MD5, SHA-1 is generally considered weak. Use a hash function from the SHA-2 or SHA-3 family instead.

Build Instructions

“` mkdir build cd build cmake .. make test-sha1 “`

Then flash the .bin file in `build/sha-src` to your MBED-enabled device using whichever method your device datasheet recommends.

License

100% Public Domain, except the mbed-src, MODSERIAL, and cmake directories. See individual files for licensing info there.

Authors

  • Steve Reid (Original C Code)
  • Bruce Guenter (Small changes to fit into bglibs)
  • Volker Diels-Grabsch (Translation to simpler C++ Code)
  • Eugene Hopkinson (Safety improvements)
  • Conor Hayes, Mingzhong Guo, Yulong Ding, Jamie Smith (Porting to run on ARM MCU’s using MBED OS)