tests/extmod/uhashlib_sha256: Add test for hashing 56 bytes of data.
This commit is contained in:
parent
7db79d8b03
commit
251b00457c
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue