aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-27 10:24:43 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-27 10:24:43 -0700
commit22eb4c91914cd2f0ad2cb67ad27e5bfb60400492 (patch)
treef2ac2d307c0d11950137f55b9132dab411e984b8 /tests/hazmat/backends
parent65bdfb6ee2941b6176ed6661e0aac83febc233e0 (diff)
downloadcryptography-22eb4c91914cd2f0ad2cb67ad27e5bfb60400492.tar.gz
cryptography-22eb4c91914cd2f0ad2cb67ad27e5bfb60400492.tar.bz2
cryptography-22eb4c91914cd2f0ad2cb67ad27e5bfb60400492.zip
Added attributes that are part of hte interface to several test fakes
Diffstat (limited to 'tests/hazmat/backends')
-rw-r--r--tests/hazmat/backends/test_commoncrypto.py1
-rw-r--r--tests/hazmat/backends/test_openssl.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_commoncrypto.py b/tests/hazmat/backends/test_commoncrypto.py
index 28d1a6ca..6bb0ede0 100644
--- a/tests/hazmat/backends/test_commoncrypto.py
+++ b/tests/hazmat/backends/test_commoncrypto.py
@@ -30,6 +30,7 @@ from ...utils import raises_unsupported_algorithm
class DummyCipher(object):
name = "dummy-cipher"
block_size = 128
+ digest_size = None
@pytest.mark.skipif("commoncrypto" not in
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index 39708f82..ebd8686c 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -52,6 +52,7 @@ class DummyMode(object):
@utils.register_interface(interfaces.CipherAlgorithm)
class DummyCipher(object):
name = "dummy-cipher"
+ key_size = None
@utils.register_interface(interfaces.AsymmetricPadding)
@@ -62,6 +63,8 @@ class DummyPadding(object):
@utils.register_interface(interfaces.HashAlgorithm)
class DummyHash(object):
name = "dummy-hash"
+ block_size = None
+ digest_size = None
class DummyMGF(object):