aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-10 10:47:43 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-10 10:47:43 -0700
commit933afee7da0ff431da452ef32ef23dc17527b16a (patch)
tree08dfd424ec18e105bb34fadaea17c1c4b86bd9f7 /cryptography
parentd9c879f2841e16e07c1aa73361c02b3c93af85e7 (diff)
parent06c77936d3506977f51f4e69c382bd756affe80e (diff)
downloadcryptography-933afee7da0ff431da452ef32ef23dc17527b16a.tar.gz
cryptography-933afee7da0ff431da452ef32ef23dc17527b16a.tar.bz2
cryptography-933afee7da0ff431da452ef32ef23dc17527b16a.zip
Merge pull request #772 from reaperhulk/rsa-mgf1-supported-interface
Add mgf1_hash_supported to the RSABackend interface
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/backends/interfaces.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cryptography/hazmat/backends/interfaces.py b/cryptography/hazmat/backends/interfaces.py
index da41532d..27b609ed 100644
--- a/cryptography/hazmat/backends/interfaces.py
+++ b/cryptography/hazmat/backends/interfaces.py
@@ -106,6 +106,12 @@ class RSABackend(six.with_metaclass(abc.ABCMeta)):
interface.
"""
+ @abc.abstractmethod
+ def mgf1_hash_supported(self, algorithm):
+ """
+ Return True if the hash algorithm is supported for MGF1 in PSS.
+ """
+
class OpenSSLSerializationBackend(six.with_metaclass(abc.ABCMeta)):
@abc.abstractmethod