aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_block.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-19 16:57:08 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-19 16:57:08 -0800
commit18f2c8f5da97e430387a78d6e7fe20de1c1e6ada (patch)
treea3811ad1ea5cc9391264abb102e17c812a841ba5 /tests/hazmat/primitives/test_block.py
parent26ebea2c5bde18aaecee5f03291606cc5799d0cc (diff)
downloadcryptography-18f2c8f5da97e430387a78d6e7fe20de1c1e6ada.tar.gz
cryptography-18f2c8f5da97e430387a78d6e7fe20de1c1e6ada.tar.bz2
cryptography-18f2c8f5da97e430387a78d6e7fe20de1c1e6ada.zip
test for ctr
Diffstat (limited to 'tests/hazmat/primitives/test_block.py')
-rw-r--r--tests/hazmat/primitives/test_block.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_block.py b/tests/hazmat/primitives/test_block.py
index ad56f77e..52221cb6 100644
--- a/tests/hazmat/primitives/test_block.py
+++ b/tests/hazmat/primitives/test_block.py
@@ -139,3 +139,11 @@ class TestModeValidation(object):
modes.CFB(b"abc"),
backend,
)
+
+ def test_ctr(self, backend):
+ with pytest.raises(ValueError):
+ Cipher(
+ algorithms.AES(b"\x00" * 16),
+ modes.CFB(b"abc"),
+ backend,
+ )