Properly decode plaintext before encrypting it
diff --git a/tests/primitives/test_block.py b/tests/primitives/test_block.py
index b976e21..f2da583 100644
--- a/tests/primitives/test_block.py
+++ b/tests/primitives/test_block.py
@@ -16,5 +16,6 @@
ciphers.AES(binascii.unhexlify(key)),
modes.CBC(binascii.unhexlify(iv), padding.NoPadding())
)
- actual_ciphertext = cipher.encrypt(plaintext) + cipher.finalize()
+ actual_ciphertext = cipher.encrypt(binascii.unhexlify(plaintext))
+ actual_ciphertext += cipher.finalize()
assert binascii.hexlify(actual_ciphertext) == ciphertext