diff options
author | David Reid <dreid@dreid.org> | 2014-06-22 16:09:34 -0700 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2014-06-22 16:09:34 -0700 |
commit | 41a35e1f4ec3dad0761b5e2c880eeab6d81b5cf4 (patch) | |
tree | 8455afef8c499c4ec8626e58e27f30a030e3e9c5 /docs/hazmat/primitives/asymmetric/rsa.rst | |
parent | f1194546e509321edfef9eecf3aa6e62fd7d9310 (diff) | |
parent | 33bdf0fabd90e3a73138cb3f8acd929328a152aa (diff) | |
download | cryptography-41a35e1f4ec3dad0761b5e2c880eeab6d81b5cf4.tar.gz cryptography-41a35e1f4ec3dad0761b5e2c880eeab6d81b5cf4.tar.bz2 cryptography-41a35e1f4ec3dad0761b5e2c880eeab6d81b5cf4.zip |
Merge pull request #1155 from reaperhulk/fix-1111
modify RSA numbers loading to match elliptic curve
Diffstat (limited to 'docs/hazmat/primitives/asymmetric/rsa.rst')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/rsa.rst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/rsa.rst b/docs/hazmat/primitives/asymmetric/rsa.rst index 71b7cd9c..c3962901 100644 --- a/docs/hazmat/primitives/asymmetric/rsa.rst +++ b/docs/hazmat/primitives/asymmetric/rsa.rst @@ -385,6 +385,18 @@ RSA The collection of integers that make up an RSA public key. + .. method:: public_key(backend) + + :param backend: A + :class:`~cryptography.hazmat.backends.interfaces.RSABackend` + provider. + + :return: A :class:`~cryptography.hazmat.primitives.interfaces.RSAPublicKey` + provider. + + :raises UnsupportedAlgorithm: If the given backend does not support + loading numbers. + .. attribute:: n :type: int @@ -411,6 +423,18 @@ RSA secret. Revealing them will compromise the security of any cryptographic operations performed with a key loaded from them. + .. method:: private_key(backend) + + :param backend: A + :class:`~cryptography.hazmat.backends.interfaces.RSABackend` + provider. + + :return: A :class:`~cryptography.hazmat.primitives.interfaces.RSAPrivateKey` + provider. + + :raises UnsupportedAlgorithm: If the given backend does not support + loading numbers. + .. attribute:: public_numbers :type: :class:`~cryptography.hazmat.primitives.rsa.RSAPublicNumbers` |