diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-06-06 21:43:08 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-06-06 21:43:08 -0700 |
commit | 6df90fb03b8ccb642028ba927fa3490ff71d965a (patch) | |
tree | 1839e533a1398f891d0c92f2f02b6b47781cc8c0 /docs | |
parent | f1de2f78cfd2b19eb4e2485ff36008581b088292 (diff) | |
parent | b2fa4b7499e9ca70568bdb33eae99a22e9ed2cc6 (diff) | |
download | cryptography-6df90fb03b8ccb642028ba927fa3490ff71d965a.tar.gz cryptography-6df90fb03b8ccb642028ba927fa3490ff71d965a.tar.bz2 cryptography-6df90fb03b8ccb642028ba927fa3490ff71d965a.zip |
Merge pull request #1103 from reaperhulk/fix-1097
add load_rsa_*_numbers functions
Diffstat (limited to 'docs')
-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. |