From c57a3761004b364347c9c5d5ce9736b94f7af3d3 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 3 Jun 2014 13:27:50 -0700 Subject: Document the valueerror these might raise. --- docs/hazmat/backends/interfaces.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs') diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index a32829fc..769ab989 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -330,6 +330,10 @@ A specific ``backend`` may provide one or more of these interfaces. :returns: A provider of :class:`~cryptography.hazmat.primitives.interfaces.RSAPrivateKey`. + :raises ValueError: This is raised when the values of ``p``, ``q``, + ``private_exponent``, ``public_exponent``, or ``modulus`` do not + match the bounds specified in :rfc:`3447`. + .. method:: load_rsa_public_numbers(numbers): :param numbers: An instance of @@ -338,6 +342,10 @@ A specific ``backend`` may provide one or more of these interfaces. :returns: A provider of :class:`~cryptography.hazmat.primitives.interfaces.RSAPublicKey`. + :raises ValueError: This is raised when the values of + ``public_exponent`` or ``modulus`` do not match the bounds + specified in :rfc:`3447`. + .. class:: TraditionalOpenSSLSerializationBackend -- cgit v1.2.3