diff options
author | Rob Austein <sra@hactrn.net> | 2020-05-26 15:18:19 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2020-05-26 15:18:19 -0400 |
commit | ed4c22473f5fb07006e773137ed047950e25a4d8 (patch) | |
tree | 26f7b93d5447b2e0cf5bd9c92dcda70161a46545 /unit-tests.py | |
parent | 1cd42f6d3332e1edf78b06bd7dcf51f5a1a7bb23 (diff) |
Wow, python-version-independent hexadecimal is painful
Diffstat (limited to 'unit-tests.py')
-rw-r--r-- | unit-tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit-tests.py b/unit-tests.py index 2bb80a8..77ca4cb 100644 --- a/unit-tests.py +++ b/unit-tests.py @@ -1727,7 +1727,7 @@ class AESKeyWrapWithPadding(object): R = b"".join(R[1:]) assert len(R) == 8 * n if any(r != b"\x00" for r in R[m:]): - raise self.UnwrapError("Nonzero trailing bytes {}".format(binascii.hexlify(R[m:]))) + raise self.UnwrapError("Nonzero trailing bytes 0x{}".format(binascii.hexlify(R[m:]).decode("ascii"))) return R[:m] |