tests/extmod/uhashlib_sha256: Add test for hashing 56 bytes of data.

This commit is contained in:
Damien George 2017-12-19 14:45:53 +11:00
parent 7db79d8b03
commit 251b00457c
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ print(h.digest())
print(hashlib.sha256(b"\xff" * 64).digest())
# 56 bytes is a boundary case in the algorithm
print(hashlib.sha256(b"\xff" * 56).digest())
# TODO: running .digest() several times in row is not supported()
#h = hashlib.sha256(b'123')
#print(h.digest())