aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/backends
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-17 19:20:14 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-17 19:20:14 -0600
commit2b3f0fc4d6641d040056466adc6dca7cfc75d3d5 (patch)
tree922feae65271415da8dbe98c07e778c344ab1278 /docs/hazmat/backends
parente9a11f735e27059bce71bcafc7f91bbacf29c0f5 (diff)
downloadcryptography-2b3f0fc4d6641d040056466adc6dca7cfc75d3d5.tar.gz
cryptography-2b3f0fc4d6641d040056466adc6dca7cfc75d3d5.tar.bz2
cryptography-2b3f0fc4d6641d040056466adc6dca7cfc75d3d5.zip
add docs for sign/verify ctx creation interface
Diffstat (limited to 'docs/hazmat/backends')
-rw-r--r--docs/hazmat/backends/interfaces.rst36
1 files changed, 36 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst
index e6bf8f69..72b64910 100644
--- a/docs/hazmat/backends/interfaces.rst
+++ b/docs/hazmat/backends/interfaces.rst
@@ -212,3 +212,39 @@ A specific ``backend`` may provide one or more of these interfaces.
provider.
:raises ValueError: If the public_exponent is not valid.
+
+ .. method:: create_rsa_sign_ctx(private_key, padding, algorithm)
+
+ :param private_key: An instance of a
+ :class:`~cryptography.hazmat.primitives.interfaces.RSAPrivateKey`
+ provider.
+
+ :param padding: An instance of a
+ :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricPadding`
+ provider.
+
+ :param algorithm: An instance of a
+ :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm`
+ provider.
+
+ :returns:
+ :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricSignContext`
+
+ .. method:: create_rsa_verify_ctx(public_key, signature, padding, algorithm)
+
+ :param public_key: An instance of a
+ :class:`~cryptography.hazmat.primitives.interfaces.RSAPublicKey`
+ provider.
+
+ :param bytes signature: The signature to verify.
+
+ :param padding: An instance of a
+ :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricPadding`
+ provider.
+
+ :param algorithm: An instance of a
+ :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm`
+ provider.
+
+ :returns:
+ :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerifyContext`