diff options
author | Alex Stapleton <alexs@prol.etari.at> | 2014-06-29 11:30:18 +0100 |
---|---|---|
committer | Alex Stapleton <alexs@prol.etari.at> | 2014-06-29 11:30:18 +0100 |
commit | f6e292027399a3ab71947faef54885ec4f3e79a0 (patch) | |
tree | e3f147c536abe445a702ad830b41be93dc29a8c5 /tests/hazmat/backends/test_openssl.py | |
parent | b86e364ed0314cb2873109541de7d42f015e86e7 (diff) | |
parent | 1262be2b8e1b1577df61846c7ce51605387b5850 (diff) | |
download | cryptography-f6e292027399a3ab71947faef54885ec4f3e79a0.tar.gz cryptography-f6e292027399a3ab71947faef54885ec4f3e79a0.tar.bz2 cryptography-f6e292027399a3ab71947faef54885ec4f3e79a0.zip |
Merge pull request #1191 from reaperhulk/dsa-deprecate-backend-methods
deprecate DSA backend methods
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index bd99c8f2..696a0f73 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -524,3 +524,25 @@ class TestDeprecatedRSABackendMethods(object): ct, padding.PKCS1v15() ) + + +class TestDeprecatedDSABackendMethods(object): + def test_create_dsa_signature_ctx(self): + params = dsa.DSAParameters.generate(1024, backend) + key = dsa.DSAPrivateKey.generate(params, backend) + pytest.deprecated_call( + backend.create_dsa_signature_ctx, + key, + hashes.SHA1() + ) + + def test_create_dsa_verification_ctx(self): + params = dsa.DSAParameters.generate(1024, backend) + key = dsa.DSAPrivateKey.generate(params, backend) + public_key = key.public_key() + pytest.deprecated_call( + backend.create_dsa_verification_ctx, + public_key, + b"\x00" * 128, + hashes.SHA1() + ) |