aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2014-01-03 16:02:51 -0800
committerDavid Reid <dreid@dreid.org>2014-01-03 16:02:51 -0800
commit24c9a8d153ed7b1520a87d2ad22d9e9b26f272b8 (patch)
treedc1ea9ab698f092f1310d6adf8077f1ef9ad95d5 /tests/hazmat/backends
parentf96db83a64bb0ac40d04d27383d7c2defbcec491 (diff)
parent267dbc946b4584b7b4ed10a439b2820d3b048356 (diff)
downloadcryptography-24c9a8d153ed7b1520a87d2ad22d9e9b26f272b8.tar.gz
cryptography-24c9a8d153ed7b1520a87d2ad22d9e9b26f272b8.tar.bz2
cryptography-24c9a8d153ed7b1520a87d2ad22d9e9b26f272b8.zip
Merge pull request #272 from alex/validate-iv
Validate the IV/nonce length for a given algorithm.
Diffstat (limited to 'tests/hazmat/backends')
-rw-r--r--tests/hazmat/backends/test_openssl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index 22cfbe71..ad399594 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -27,6 +27,9 @@ from cryptography.hazmat.primitives.ciphers.modes import CBC
class DummyMode(object):
name = "dummy-mode"
+ def validate_for_algorithm(self, algorithm):
+ pass
+
@utils.register_interface(interfaces.CipherAlgorithm)
class DummyCipher(object):