aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-26 16:16:50 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-28 08:35:32 -0600
commit1262be2b8e1b1577df61846c7ce51605387b5850 (patch)
tree280e5291f04981c7306a9e4184dbcf94bb385631 /cryptography
parentecbc00b3d2d3e3daf0d047da4113d7dceb211366 (diff)
downloadcryptography-1262be2b8e1b1577df61846c7ce51605387b5850.tar.gz
cryptography-1262be2b8e1b1577df61846c7ce51605387b5850.tar.bz2
cryptography-1262be2b8e1b1577df61846c7ce51605387b5850.zip
deprecate DSA backend methods
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/backends/openssl/backend.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py
index b3396ea9..087dc494 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -634,12 +634,24 @@ class Backend(object):
return self.generate_dsa_private_key(parameters)
def create_dsa_signature_ctx(self, private_key, algorithm):
+ warnings.warn(
+ "create_dsa_signature_ctx is deprecated and will be removed in "
+ "a future version.",
+ utils.DeprecatedIn05,
+ stacklevel=2
+ )
dsa_cdata = self._dsa_cdata_from_private_key(private_key)
key = _DSAPrivateKey(self, dsa_cdata)
return _DSASignatureContext(self, key, algorithm)
def create_dsa_verification_ctx(self, public_key, signature,
algorithm):
+ warnings.warn(
+ "create_dsa_verification_ctx is deprecated and will be removed in "
+ "a future version.",
+ utils.DeprecatedIn05,
+ stacklevel=2
+ )
dsa_cdata = self._dsa_cdata_from_public_key(public_key)
key = _DSAPublicKey(self, dsa_cdata)
return _DSAVerificationContext(self, key, signature, algorithm)