aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat
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 /docs/hazmat
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 'docs/hazmat')
-rw-r--r--docs/hazmat/backends/interfaces.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst
index a7a9661b..c3ea164a 100644
--- a/docs/hazmat/backends/interfaces.rst
+++ b/docs/hazmat/backends/interfaces.rst
@@ -249,6 +249,20 @@ A specific ``backend`` may provide one or more of these interfaces.
:returns:
:class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerificationContext`
+ .. method:: mgf1_hash_supported(algorithm)
+
+ Check if the specified ``algorithm`` is supported for use with
+ :class:`~cryptography.hazmat.primitives.asymmetric.padding.MGF1`
+ inside :class:`~cryptography.hazmat.primitives.asymmetric.padding.PSS`
+ padding.
+
+ :param algorithm: An instance of a
+ :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm`
+ provider.
+
+ :returns: ``True`` if the specified ``algorithm`` is supported by this
+ backend, otherwise ``False``.
+
.. class:: OpenSSLSerializationBackend