aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-21 11:28:19 -0700
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-21 11:28:19 -0700
commit6eed9d0f3d1eb36ff5a834ff52e06c80cbde0681 (patch)
tree3376de086478f0940c27557ea3c13bb4df39c30f /cryptography
parent126afca70edc3fac2e493c6b7cd05219c8d8e373 (diff)
downloadcryptography-6eed9d0f3d1eb36ff5a834ff52e06c80cbde0681.tar.gz
cryptography-6eed9d0f3d1eb36ff5a834ff52e06c80cbde0681.tar.bz2
cryptography-6eed9d0f3d1eb36ff5a834ff52e06c80cbde0681.zip
add load_dsa_parameter_numbers on multibackend
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 db189787..e873f504 100644
--- a/cryptography/hazmat/backends/multibackend.py
+++ b/cryptography/hazmat/backends/multibackend.py
@@ -210,6 +210,12 @@ class MultiBackend(object):
raise UnsupportedAlgorithm("DSA is not supported by the backend.",
_Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
+ def load_dsa_parameter_numbers(self, numbers):
+ for b in self._filtered_backends(DSABackend):
+ return b.load_dsa_parameter_numbers(numbers)
+ raise UnsupportedAlgorithm("DSA is not supported by the backend.",
+ _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM)
+
def cmac_algorithm_supported(self, algorithm):
return any(
b.cmac_algorithm_supported(algorithm)