aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-27 16:14:00 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-27 16:14:00 -0600
commit7c9fa3a7384d3b8e14dc8a56390cd4fce222dcba (patch)
tree957eabf38c774dacffdc226eea7cfd1e84c929a3 /cryptography
parent0e2ee9b15b78fb2e7e08643b1adcdabb63f441e3 (diff)
downloadcryptography-7c9fa3a7384d3b8e14dc8a56390cd4fce222dcba.tar.gz
cryptography-7c9fa3a7384d3b8e14dc8a56390cd4fce222dcba.tar.bz2
cryptography-7c9fa3a7384d3b8e14dc8a56390cd4fce222dcba.zip
add multibackend support for new DSABackend method
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/backends/multibackend.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cryptography/hazmat/backends/multibackend.py b/cryptography/hazmat/backends/multibackend.py
index 27ab0636..800c3503 100644
--- a/cryptography/hazmat/backends/multibackend.py
+++ b/cryptography/hazmat/backends/multibackend.py
@@ -205,6 +205,12 @@ class MultiBackend(object):
raise UnsupportedAlgorithm("DSA is not supported by the backend.",
_Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
+ def generate_dsa_private_key_and_parameters(self, key_size):
+ for b in self._filtered_backends(DSABackend):
+ return b.generate_dsa_private_key_and_parameters(key_size)
+ 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,