aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/backends
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 /docs/hazmat/backends
parent7ba305bd33f6ae8bb4927549006106783d0dce3e (diff)
downloadcryptography-06c77936d3506977f51f4e69c382bd756affe80e.tar.gz
cryptography-06c77936d3506977f51f4e69c382bd756affe80e.tar.bz2
cryptography-06c77936d3506977f51f4e69c382bd756affe80e.zip
add mgf1_hash_supported to the RSABackend interface
Diffstat (limited to 'docs/hazmat/backends')
-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