aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2014-05-08 10:31:51 -0700
committerDavid Reid <dreid@dreid.org>2014-06-03 10:05:38 -0700
commit68b509a399b5d24b6e6fe1b707096928a8483c9a (patch)
treeaf5caba84d5d3197f726146a2c0c53da455402cb /docs/hazmat
parent6bca12ffdac94bc3ad0865c27ead1f5e9bba5325 (diff)
downloadcryptography-68b509a399b5d24b6e6fe1b707096928a8483c9a.tar.gz
cryptography-68b509a399b5d24b6e6fe1b707096928a8483c9a.tar.bz2
cryptography-68b509a399b5d24b6e6fe1b707096928a8483c9a.zip
Document the backend interface.
Diffstat (limited to 'docs/hazmat')
-rw-r--r--docs/hazmat/backends/interfaces.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst
index c1ce621a..341fdc34 100644
--- a/docs/hazmat/backends/interfaces.rst
+++ b/docs/hazmat/backends/interfaces.rst
@@ -315,12 +315,28 @@ A specific ``backend`` may provide one or more of these interfaces.
:class:`~cryptography.hazmat.primitives.interfaces.AsymmetricPadding`
provider.
+<<<<<<< HEAD
:return bytes: The encrypted data.
:raises cryptography.exceptions.UnsupportedAlgorithm: If an unsupported
MGF, hash function, or padding is chosen.
:raises ValueError: When plaintext is too long for the key size.
+=======
+ .. method:: load_rsa_numbers(numbers):
+
+ :param numbers: An instance of
+ :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers` or
+ :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicNumbers`.
+
+ :returns: A provider of
+ :class:`~cryptography.hazmat.primitives.interfaces.RSAPrivateKey` or
+ :class:`~cryptography.hazmat.primitives.interfaces.RSAPublicKey`
+ depending on if it's input was an
+ :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers` or
+ :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicNumbers`.
+
+>>>>>>> 70cf9ba... Document the backend interface.
.. class:: TraditionalOpenSSLSerializationBackend