Skip to content

Commit 251b004

Browse files
committed
tests/extmod/uhashlib_sha256: Add test for hashing 56 bytes of data.
1 parent 7db79d8 commit 251b004

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/extmod/uhashlib_sha256.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
print(hashlib.sha256(b"\xff" * 64).digest())
2525

26+
# 56 bytes is a boundary case in the algorithm
27+
print(hashlib.sha256(b"\xff" * 56).digest())
28+
2629
# TODO: running .digest() several times in row is not supported()
2730
#h = hashlib.sha256(b'123')
2831
#print(h.digest())

0 commit comments

Comments
 (0)