diff options
Diffstat (limited to 'tests/hazmat/backends/test_multibackend.py')
-rw-r--r-- | tests/hazmat/backends/test_multibackend.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py index 64dc062c..a68fe560 100644 --- a/tests/hazmat/backends/test_multibackend.py +++ b/tests/hazmat/backends/test_multibackend.py @@ -128,6 +128,9 @@ class DummyDSABackend(object): def generate_dsa_private_key(self, parameters): pass + def generate_dsa_private_key_and_parameters(self, key_size): + pass + def create_dsa_signature_ctx(self, private_key, algorithm): pass @@ -343,6 +346,7 @@ class TestMultiBackend(object): parameters = object() backend.generate_dsa_private_key(parameters) + backend.generate_dsa_private_key_and_parameters(key_size=1024) backend.create_dsa_verification_ctx("public_key", "sig", hashes.SHA1()) backend.create_dsa_signature_ctx("private_key", hashes.SHA1()) @@ -363,6 +367,11 @@ class TestMultiBackend(object): with raises_unsupported_algorithm( _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM ): + backend.generate_dsa_private_key_and_parameters(key_size=1024) + + with raises_unsupported_algorithm( + _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM + ): backend.create_dsa_signature_ctx("private_key", hashes.SHA1()) with raises_unsupported_algorithm( |