aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends/test_openssl.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-20 10:52:51 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-20 10:52:51 -0700
commit23c641dad201446a019d4a5f1181908744fd347a (patch)
treef8cf519f89e5e3f6f2acc4cd4586985d0da3fd5b /tests/hazmat/backends/test_openssl.py
parent62e18d7873470517c97c0c37be6bc1a81c304d8a (diff)
parent4d8358fb50253bebdf637f517da8ba2406080d3f (diff)
downloadcryptography-23c641dad201446a019d4a5f1181908744fd347a.tar.gz
cryptography-23c641dad201446a019d4a5f1181908744fd347a.tar.bz2
cryptography-23c641dad201446a019d4a5f1181908744fd347a.zip
Merge pull request #826 from reaperhulk/rsa-more-sig-verification
RSA more sig verification
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r--tests/hazmat/backends/test_openssl.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index 501ee0f6..5c6efbaf 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -40,6 +40,11 @@ class DummyCipher(object):
name = "dummy-cipher"
+@utils.register_interface(interfaces.HashAlgorithm)
+class DummyHash(object):
+ name = "dummy-hash"
+
+
class TestOpenSSL(object):
def test_backend_exists(self):
assert backend
@@ -162,6 +167,9 @@ class TestOpenSSL(object):
backend
)
+ def test_unsupported_mgf1_hash_algorithm(self):
+ assert backend.mgf1_hash_supported(DummyHash()) is False
+
# This test is not in the next class because to check if it's really
# default we don't want to run the setup_method before it
def test_osrandom_engine_is_default(self):