From 68b509a399b5d24b6e6fe1b707096928a8483c9a Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 8 May 2014 10:31:51 -0700 Subject: Document the backend interface. --- docs/hazmat/backends/interfaces.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs/hazmat') 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 -- cgit v1.2.3