diff options
author | David Reid <dreid@dreid.org> | 2014-06-03 13:27:50 -0700 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2014-06-03 13:27:50 -0700 |
commit | c57a3761004b364347c9c5d5ce9736b94f7af3d3 (patch) | |
tree | ba465cf820feca055ec91ce051896ea9d130b6ac /docs | |
parent | 414e2f7410f7aeded99be1740f252a49956cd496 (diff) | |
download | cryptography-c57a3761004b364347c9c5d5ce9736b94f7af3d3.tar.gz cryptography-c57a3761004b364347c9c5d5ce9736b94f7af3d3.tar.bz2 cryptography-c57a3761004b364347c9c5d5ce9736b94f7af3d3.zip |
Document the valueerror these might raise.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/hazmat/backends/interfaces.rst | 8 |
1 files changed, 8 insertions, 0 deletions
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 |