diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-06-06 21:45:24 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-06-06 21:45:24 -0700 |
commit | 2e0def6592f338b2886666879bcebf54a5409748 (patch) | |
tree | 5aefc1b74003c1a33d891cd92b0b9d9f51bf59d3 /docs/hazmat/primitives/asymmetric | |
parent | 47089fde8fc66f600967f34e1915557a929a1681 (diff) | |
parent | 6df90fb03b8ccb642028ba927fa3490ff71d965a (diff) | |
download | cryptography-2e0def6592f338b2886666879bcebf54a5409748.tar.gz cryptography-2e0def6592f338b2886666879bcebf54a5409748.tar.bz2 cryptography-2e0def6592f338b2886666879bcebf54a5409748.zip |
Merge branch 'master' into use-numbers
Diffstat (limited to 'docs/hazmat/primitives/asymmetric')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/serialization.rst | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/serialization.rst b/docs/hazmat/primitives/asymmetric/serialization.rst index 2b3eb511..e53d0d1f 100644 --- a/docs/hazmat/primitives/asymmetric/serialization.rst +++ b/docs/hazmat/primitives/asymmetric/serialization.rst @@ -98,3 +98,41 @@ header that mentions the type of the serialized key. e.g. :raises UnsupportedAlgorithm: If the serialized key is of a type that is not supported by the backend or if the key is encrypted with a symmetric cipher that is not supported by the backend. + + +RSA Numbers +~~~~~~~~~~~ + +.. function:: load_rsa_private_numbers(numbers, backend) + + .. versionadded:: 0.5 + + Create a private key instance using the given backend and numbers. + + :param numbers: An instance of + :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers`. + + :param backend: A + :class:`~cryptography.hazmat.backends.interfaces.RSABackend` provider. + + :returns: A new instance of a private key. + + :raises UnsupportedAlgorithm: If the given backend does not support loading + numbers. + +.. function:: load_rsa_public_numbers(numbers, backend) + + .. versionadded:: 0.5 + + Create a public key instance using the given backend and numbers. + + :param numbers: An instance of + :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicNumbers`. + + :param backend: A + :class:`~cryptography.hazmat.backends.interfaces.RSABackend` provider. + + :returns: A new instance of a public key. + + :raises UnsupportedAlgorithm: If the given backend does not support loading + numbers. |