extmod/moduhashlib: Add support for SHA1 (based on axTLS).

SHA1 is used in a number of protocols and algorithm originated 5 years ago
or so, in other words, it's in "wide use", and only newer protocols use
SHA2.

The implementation depends on axTLS enabled. TODO: Make separate config
option specifically for sha1().
This commit is contained in:
Paul Sokolovsky
2016-01-24 20:52:54 +02:00
parent df4ce930e3
commit ee1656e148
2 changed files with 59 additions and 0 deletions

View File

@@ -614,6 +614,7 @@ Q(uhashlib)
Q(update)
Q(digest)
Q(sha256)
Q(sha1)
#endif
#if MICROPY_PY_UBINASCII