aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-05-16 13:38:12 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2014-05-16 13:38:12 -0400
commite03bd73c4e90bab900323355799d58d5b64064ec (patch)
tree2a29e579e10bea0ca802df290caa4d20c812cd85
parent3a7e9d3f4a9ad32c0782d69620543f6ad3adae93 (diff)
parent9ef866842d0c55d8d313c472ce38d856f61747ba (diff)
downloadcryptography-e03bd73c4e90bab900323355799d58d5b64064ec.tar.gz
cryptography-e03bd73c4e90bab900323355799d58d5b64064ec.tar.bz2
cryptography-e03bd73c4e90bab900323355799d58d5b64064ec.zip
Merge pull request #1045 from reaperhulk/fix-coverage-i-are-dumb
fix coverage for CFB8
-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(