summaryrefslogtreecommitdiff
path: root/tests/hazmat/primitives
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-07-17 22:56:12 +0800
committerAlex Gaynor <alex.gaynor@gmail.com>2018-07-17 10:56:12 -0400
commit12a1cacb6ae6de51a003dcc884e769854a1345a8 (patch)
tree3efc3e8ca27249f8de685319687bd79bb515c8e5 /tests/hazmat/primitives
parent7ca0e46d82606b8a12ff323181065a00885d39dc (diff)
downloadcryptography-12a1cacb6ae6de51a003dcc884e769854a1345a8.tar.gz
raise ValueError on zero length GCM IV (#4348)
Diffstat (limited to 'tests/hazmat/primitives')
-rw-r--r--tests/hazmat/primitives/test_block.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_block.py b/tests/hazmat/primitives/test_block.py
index c053feafb..37158f153 100644
--- a/tests/hazmat/primitives/test_block.py
+++ b/tests/hazmat/primitives/test_block.py
@@ -191,6 +191,10 @@ class TestModeValidation(object):
backend,
)
+ def test_gcm(self):
+ with pytest.raises(ValueError):
+ modes.GCM(b"")
+
class TestModesRequireBytes(object):
def test_cbc(self):