micropython-lib/python-stdlib/hmac
Jim Mussared f95260d7e3 python-stdlib/hmac: Update to work with built-in hash functions.
This library was non-functional unless used with the micropython-lib
pure-Python implementation of hashlib, even if the device provides
sha1 and sha256.

This updates hmac to be significantly more RAM efficient (removes the
512-byte table), and functional with the built-in hash functions.

The only unsupported function is "copy", but this is non-critical, and now
fails with a NotSupportedError.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-09 00:19:31 +10:00
..
hmac.py python-stdlib/hmac: Update to work with built-in hash functions. 2022-08-09 00:19:31 +10:00
metadata.txt python-stdlib/hmac: Update to work with built-in hash functions. 2022-08-09 00:19:31 +10:00
setup.py all: Run black over all code. 2021-05-27 15:50:04 +10:00
test_hmac.py python-stdlib/hmac: Update to work with built-in hash functions. 2022-08-09 00:19:31 +10:00