diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-01 10:12:38 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-01 10:12:38 -0700 |
commit | 72d5b285220c6c3670e5163a5a9c5359352ad9b8 (patch) | |
tree | 06f378681ece28bb6294b9b7441b885434d22c59 /cryptography | |
parent | c37ad5799f2ceeaecb821f6bdf06b9e08e7ffc41 (diff) | |
parent | db72657c6874db143d86629d60efe318678cd980 (diff) | |
download | cryptography-72d5b285220c6c3670e5163a5a9c5359352ad9b8.tar.gz cryptography-72d5b285220c6c3670e5163a5a9c5359352ad9b8.tar.bz2 cryptography-72d5b285220c6c3670e5163a5a9c5359352ad9b8.zip |
Merge pull request #1379 from reaperhulk/update-multibackend-deprecation
update multibackend to remove deprecated methods
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/hazmat/backends/multibackend.py | 45 |
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) |