aboutsummaryrefslogtreecommitdiffstats
path: root/tests/primitives/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/primitives/utils.py')
-rw-r--r--tests/primitives/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/primitives/utils.py b/tests/primitives/utils.py
index e4cb8da7..3cf08c28 100644
--- a/tests/primitives/utils.py
+++ b/tests/primitives/utils.py
@@ -39,4 +39,4 @@ def encrypt_test(api, cipher_factory, mode_factory, params, only_if,
)
actual_ciphertext = cipher.encrypt(binascii.unhexlify(plaintext))
actual_ciphertext += cipher.finalize()
- assert binascii.hexlify(actual_ciphertext) == ciphertext
+ assert actual_ciphertext == binascii.unhexlify(ciphertext)