aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-05-25 10:23:20 +0100
committerAlex Stapleton <alexs@prol.etari.at>2014-05-25 10:23:20 +0100
commitbf308598c2a588f67963decb69f09a2f5b8b7070 (patch)
treeb9a5ad3f454c1360a957b7bb699d62d7379f9bb9 /docs/hazmat
parent051c5ab3f8a5fdcb6db541c57a785e5e758c9b63 (diff)
parent82d83ca288de7d4ec838974df056438712242be3 (diff)
downloadcryptography-bf308598c2a588f67963decb69f09a2f5b8b7070.tar.gz
cryptography-bf308598c2a588f67963decb69f09a2f5b8b7070.tar.bz2
cryptography-bf308598c2a588f67963decb69f09a2f5b8b7070.zip
Merge pull request #1077 from reaperhulk/rsa-padding-supported
Add rsa_padding_supported
Diffstat (limited to 'docs/hazmat')
-rw-r--r--docs/hazmat/backends/interfaces.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst
index ff389cb5..e98b9a59 100644
--- a/docs/hazmat/backends/interfaces.rst
+++ b/docs/hazmat/backends/interfaces.rst
@@ -263,6 +263,17 @@ A specific ``backend`` may provide one or more of these interfaces.
:returns: ``True`` if the specified ``algorithm`` is supported by this
backend, otherwise ``False``.
+ .. method:: rsa_padding_supported(padding)
+
+ Check if the specified ``padding`` is supported by the backend.
+
+ :param padding: An instance of an
+ :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricPadding`
+ provider.
+
+ :returns: ``True`` if the specified ``padding`` is supported by this
+ backend, otherwise ``False``.
+
.. method:: decrypt_rsa(private_key, ciphertext, padding)
:param private_key: An instance of an