diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-22 07:33:46 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-22 07:33:46 -0700 |
commit | c6f85a721c3f38da6a3f179850a317ce238735b3 (patch) | |
tree | 07eead34092b41d88573fab91fba3cfe516e7268 /cryptography | |
parent | 6ec1b7bb991a123ed131f138c24eee2c6c18b839 (diff) | |
parent | 6eed9d0f3d1eb36ff5a834ff52e06c80cbde0681 (diff) | |
download | cryptography-c6f85a721c3f38da6a3f179850a317ce238735b3.tar.gz cryptography-c6f85a721c3f38da6a3f179850a317ce238735b3.tar.bz2 cryptography-c6f85a721c3f38da6a3f179850a317ce238735b3.zip |
Merge pull request #1425 from reaperhulk/fix-missing-method
add load_dsa_parameter_numbers on multibackend
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/hazmat/backends/multibackend.py | 6 |
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) |