diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-04 13:41:37 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-04 13:41:37 -0500 |
commit | e5f7e3055ee28c420eda563aafad19d664a6a76c (patch) | |
tree | 7480aa0c66c9773bb889a8bb42b53c3fc1edda43 /docs/hazmat | |
parent | 395be8ba6b482f52c76713e2d01f29c824ae96de (diff) | |
parent | da76ae019e98ef8580b9568bdd59fd27121ff432 (diff) | |
download | cryptography-e5f7e3055ee28c420eda563aafad19d664a6a76c.tar.gz cryptography-e5f7e3055ee28c420eda563aafad19d664a6a76c.tar.bz2 cryptography-e5f7e3055ee28c420eda563aafad19d664a6a76c.zip |
Merge pull request #1027 from dreid/rsa-number-loading
RSABackend support for loading RSA*Numbers
Diffstat (limited to 'docs/hazmat')
-rw-r--r-- | docs/hazmat/backends/interfaces.rst | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index c1ce621a..1a2603bc 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -322,6 +322,37 @@ A specific ``backend`` may provide one or more of these interfaces. :raises ValueError: When plaintext is too long for the key size. + .. method:: load_rsa_private_numbers(numbers): + + :param numbers: An instance of + :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers`. + + :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`. + + :raises cryptography.exceptions.UnsupportedAlgorithm: This raised when + any backend specific criteria are not met. + + .. method:: load_rsa_public_numbers(numbers): + + :param numbers: An instance of + :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers`. + + :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`. + + :raises cryptography.exceptions.UnsupportedAlgorithm: This raised when + any backend specific criteria are not met. + + .. class:: TraditionalOpenSSLSerializationBackend .. versionadded:: 0.3 |