diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-04-06 11:15:52 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-04-06 11:15:52 +0200 |
commit | d7669fc974ad1616d5cd7178f91525f609d3971a (patch) | |
tree | fe4c211ed9727f3ea71ff818901994b8b21823f0 /src/model | |
parent | 00827a6c00a5e11c98931b0c2fcd0386f38ecd3b (diff) |
Improved digest check and dump to be more usable.
Diffstat (limited to 'src/model')
-rwxr-xr-x | src/model/python/sha512.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/model/python/sha512.py b/src/model/python/sha512.py index bca62af..672dc73 100755 --- a/src/model/python/sha512.py +++ b/src/model/python/sha512.py @@ -290,12 +290,16 @@ def compare_digests(digest, expected): if (digest != expected): print("Error:") print("Got:") - print(digest) + for i in digest: + print("0x%016x " % (i), end="") + print() print("Expected:") - print(expected) + for i in expected: + print("0x%016x " % (i), end="") + print() else: print("Test case ok.") - + print() #------------------------------------------------------------------- |