diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-12-19 14:45:53 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-12-19 14:46:31 +1100 |
| commit | 251b00457c02718373a03cd5c1aa04a67ba30711 (patch) | |
| tree | f37a08e710647c7f480b5e9b72dd1657c078ba77 /tests/extmod/uhashlib_sha256.py | |
| parent | 7db79d8b031e69392432ace687c9fcfdd2c56d4c (diff) | |
tests/extmod/uhashlib_sha256: Add test for hashing 56 bytes of data.
Diffstat (limited to 'tests/extmod/uhashlib_sha256.py')
| -rw-r--r-- | tests/extmod/uhashlib_sha256.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/extmod/uhashlib_sha256.py b/tests/extmod/uhashlib_sha256.py index 3200e8f5c..676d47979 100644 --- a/tests/extmod/uhashlib_sha256.py +++ b/tests/extmod/uhashlib_sha256.py @@ -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()) |
