aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/primitives/test_block.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/primitives/test_block.py b/tests/primitives/test_block.py
index 92fd31a3..774885fa 100644
--- a/tests/primitives/test_block.py
+++ b/tests/primitives/test_block.py
@@ -31,6 +31,13 @@ class TestBlockCipher(object):
)
assert cipher.name == "AES-128-CBC"
+ def test_instantiate_without_api(self):
+ cipher = BlockCipher(
+ ciphers.AES(binascii.unhexlify(b"0" * 32)),
+ modes.CBC(binascii.unhexlify(b"0" * 32))
+ )
+ assert cipher.name == "AES-128-CBC"
+
def test_use_after_finalize(self, api):
cipher = BlockCipher(
ciphers.AES(binascii.unhexlify(b"0" * 32)),