Remove the padding from the BlockCipher API
diff --git a/tests/primitives/test_block.py b/tests/primitives/test_block.py
index aa670be..799e5f0 100644
--- a/tests/primitives/test_block.py
+++ b/tests/primitives/test_block.py
@@ -15,21 +15,21 @@
import pytest
-from cryptography.primitives.block import BlockCipher, ciphers, modes, padding
+from cryptography.primitives.block import BlockCipher, ciphers, modes
class TestBlockCipher(object):
def test_cipher_name(self):
cipher = BlockCipher(
ciphers.AES(binascii.unhexlify(b"0" * 32)),
- modes.CBC(binascii.unhexlify(b"0" * 32), padding.NoPadding())
+ modes.CBC(binascii.unhexlify(b"0" * 32))
)
assert cipher.name == "AES-128-CBC"
def test_use_after_finalize(self):
cipher = BlockCipher(
ciphers.AES(binascii.unhexlify(b"0" * 32)),
- modes.CBC(binascii.unhexlify(b"0" * 32), padding.NoPadding())
+ modes.CBC(binascii.unhexlify(b"0" * 32))
)
cipher.encrypt(b"a" * 16)
cipher.finalize()
@@ -41,7 +41,7 @@
def test_encrypt_with_invalid_operation(self):
cipher = BlockCipher(
ciphers.AES(binascii.unhexlify(b"0" * 32)),
- modes.CBC(binascii.unhexlify(b"0" * 32), padding.NoPadding())
+ modes.CBC(binascii.unhexlify(b"0" * 32))
)
cipher._operation = "decrypt"
@@ -51,7 +51,7 @@
def test_finalize_with_invalid_operation(self):
cipher = BlockCipher(
ciphers.AES(binascii.unhexlify(b"0" * 32)),
- modes.CBC(binascii.unhexlify(b"0" * 32), padding.NoPadding())
+ modes.CBC(binascii.unhexlify(b"0" * 32))
)
cipher._operation = "wat"