aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-06-27 19:09:55 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-06-27 19:09:55 -0700
commitecbc00b3d2d3e3daf0d047da4113d7dceb211366 (patch)
tree957eabf38c774dacffdc226eea7cfd1e84c929a3 /cryptography
parent0e2ee9b15b78fb2e7e08643b1adcdabb63f441e3 (diff)
parent7c9fa3a7384d3b8e14dc8a56390cd4fce222dcba (diff)
downloadcryptography-ecbc00b3d2d3e3daf0d047da4113d7dceb211366.tar.gz
cryptography-ecbc00b3d2d3e3daf0d047da4113d7dceb211366.tar.bz2
cryptography-ecbc00b3d2d3e3daf0d047da4113d7dceb211366.zip
Merge pull request #1189 from reaperhulk/dsa-new-method-multibackend
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,