aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-05-16 13:01:17 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-05-16 13:01:17 -0400
commit9ef866842d0c55d8d313c472ce38d856f61747ba (patch)
treef2369afce823f1ee31334f8d55ccb0c33ced50f9 /tests/hazmat
parentd1c0fb8bbe0984d54ba0f4b7a8861bca0e446e19 (diff)
downloadcryptography-9ef866842d0c55d8d313c472ce38d856f61747ba.tar.gz
cryptography-9ef866842d0c55d8d313c472ce38d856f61747ba.tar.bz2
cryptography-9ef866842d0c55d8d313c472ce38d856f61747ba.zip
fix coverage for CFB8
Diffstat (limited to 'tests/hazmat')
-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 acfd947c..022e3af7 100644
--- a/tests/hazmat/primitives/test_block.py
+++ b/tests/hazmat/primitives/test_block.py
@@ -184,6 +184,14 @@ class TestModeValidation(object):
backend,
)
+ def test_cfb8(self, backend):
+ with pytest.raises(ValueError):
+ Cipher(
+ algorithms.AES(b"\x00" * 16),
+ modes.CFB8(b"abc"),
+ backend,
+ )
+
def test_ctr(self, backend):
with pytest.raises(ValueError):
Cipher(