aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-09 22:22:14 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-10 12:56:09 -0400
commit06c77936d3506977f51f4e69c382bd756affe80e (patch)
tree2956fc5faec2c4aed33df6ed59e655728aa13397 /cryptography
parent7ba305bd33f6ae8bb4927549006106783d0dce3e (diff)
downloadcryptography-06c77936d3506977f51f4e69c382bd756affe80e.tar.gz
cryptography-06c77936d3506977f51f4e69c382bd756affe80e.tar.bz2
cryptography-06c77936d3506977f51f4e69c382bd756affe80e.zip
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