aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends/test_openssl.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-22 10:12:07 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-22 10:12:07 -0700
commitd918580097506197e0aadaa60c4681536b5f4adf (patch)
tree2b58223f53302e0aa953c0fc203537dda879d1fc /tests/hazmat/backends/test_openssl.py
parent633caacfe7e86f9098bb8cb64cfc12a9fe5cc35c (diff)
downloadcryptography-d918580097506197e0aadaa60c4681536b5f4adf.tar.gz
cryptography-d918580097506197e0aadaa60c4681536b5f4adf.tar.bz2
cryptography-d918580097506197e0aadaa60c4681536b5f4adf.zip
Statically verify interface implementations, and fix all the resulting bugs
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-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 3bea413a..83494d0d 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -51,6 +51,7 @@ class DummyMode(object):
@utils.register_interface(interfaces.CipherAlgorithm)
class DummyCipher(object):
name = "dummy-cipher"
+ key_size = 128
@utils.register_interface(interfaces.AsymmetricPadding)
@@ -61,6 +62,8 @@ class DummyPadding(object):
@utils.register_interface(interfaces.HashAlgorithm)
class DummyHash(object):
name = "dummy-hash"
+ block_size = 128
+ digest_size = 128
class DummyMGF(object):