aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-01 11:09:32 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-01 11:09:32 -0500
commitdb72657c6874db143d86629d60efe318678cd980 (patch)
tree06f378681ece28bb6294b9b7441b885434d22c59 /cryptography
parentc37ad5799f2ceeaecb821f6bdf06b9e08e7ffc41 (diff)
downloadcryptography-db72657c6874db143d86629d60efe318678cd980.tar.gz
cryptography-db72657c6874db143d86629d60efe318678cd980.tar.bz2
cryptography-db72657c6874db143d86629d60efe318678cd980.zip
update multibackend to remove deprecated methods
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/backends/multibackend.py45
1 files changed, 0 insertions, 45 deletions
diff --git a/cryptography/hazmat/backends/multibackend.py b/cryptography/hazmat/backends/multibackend.py
index ce9e6dee..db189787 100644
--- a/cryptography/hazmat/backends/multibackend.py
+++ b/cryptography/hazmat/backends/multibackend.py
@@ -148,38 +148,6 @@ class MultiBackend(object):
raise UnsupportedAlgorithm("RSA is not supported by the backend.",
_Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
- def create_rsa_signature_ctx(self, private_key, padding, algorithm):
- for b in self._filtered_backends(RSABackend):
- return b.create_rsa_signature_ctx(private_key, padding, algorithm)
- raise UnsupportedAlgorithm("RSA is not supported by the backend.",
- _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
-
- def create_rsa_verification_ctx(self, public_key, signature, padding,
- algorithm):
- for b in self._filtered_backends(RSABackend):
- return b.create_rsa_verification_ctx(public_key, signature,
- padding, algorithm)
- raise UnsupportedAlgorithm("RSA is not supported by the backend.",
- _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
-
- def mgf1_hash_supported(self, algorithm):
- for b in self._filtered_backends(RSABackend):
- return b.mgf1_hash_supported(algorithm)
- raise UnsupportedAlgorithm("RSA is not supported by the backend.",
- _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
-
- def decrypt_rsa(self, private_key, ciphertext, padding):
- for b in self._filtered_backends(RSABackend):
- return b.decrypt_rsa(private_key, ciphertext, padding)
- raise UnsupportedAlgorithm("RSA is not supported by the backend.",
- _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
-
- def encrypt_rsa(self, public_key, plaintext, padding):
- for b in self._filtered_backends(RSABackend):
- return b.encrypt_rsa(public_key, plaintext, padding)
- raise UnsupportedAlgorithm("RSA is not supported by the backend.",
- _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
-
def rsa_padding_supported(self, padding):
for b in self._filtered_backends(RSABackend):
return b.rsa_padding_supported(padding)
@@ -218,19 +186,6 @@ class MultiBackend(object):
raise UnsupportedAlgorithm("DSA is not supported by the backend.",
_Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
- def create_dsa_verification_ctx(self, public_key, signature, algorithm):
- for b in self._filtered_backends(DSABackend):
- return b.create_dsa_verification_ctx(public_key, signature,
- algorithm)
- raise UnsupportedAlgorithm("DSA is not supported by the backend.",
- _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
-
- def create_dsa_signature_ctx(self, private_key, algorithm):
- for b in self._filtered_backends(DSABackend):
- return b.create_dsa_signature_ctx(private_key, algorithm)
- raise UnsupportedAlgorithm("DSA is not supported by the backend.",
- _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
-
def dsa_hash_supported(self, algorithm):
for b in self._filtered_backends(DSABackend):
return b.dsa_hash_supported(algorithm)