diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-07-05 08:29:02 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-07-05 08:29:02 -0400 |
commit | 999605e33ae72ba439eddd22187697f0f6296171 (patch) | |
tree | 98ab3fd9efa84ba179cedac685ecc19dda5c2d71 /docs/hazmat/primitives/asymmetric/rsa.rst | |
parent | 6e56df3e7a6a9e08fe80c30c9815fbbbae00a682 (diff) | |
parent | 8ea90ef486632b71736c53083a8d93134c96c2db (diff) | |
download | cryptography-999605e33ae72ba439eddd22187697f0f6296171.tar.gz cryptography-999605e33ae72ba439eddd22187697f0f6296171.tar.bz2 cryptography-999605e33ae72ba439eddd22187697f0f6296171.zip |
Merge pull request #2112 from reaperhulk/publickeywithserialization
move PublicKeyWithSerialization methods to PublicKey
Diffstat (limited to 'docs/hazmat/primitives/asymmetric/rsa.rst')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/rsa.rst | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/docs/hazmat/primitives/asymmetric/rsa.rst b/docs/hazmat/primitives/asymmetric/rsa.rst index 8689bad3..e8bbf5ce 100644 --- a/docs/hazmat/primitives/asymmetric/rsa.rst +++ b/docs/hazmat/primitives/asymmetric/rsa.rst @@ -113,10 +113,8 @@ It is also possible to serialize without encryption using >>> pem.splitlines()[0] '-----BEGIN RSA PRIVATE KEY-----' -Similarly, if your public key implements -:class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization` -interface you can use -:meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization.public_bytes` +For public keys you can use +:meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey.public_bytes` to serialize the key. .. doctest:: @@ -608,13 +606,6 @@ Key interfaces The bit length of the modulus. - -.. class:: RSAPublicKeyWithSerialization - - .. versionadded:: 0.8 - - Extends :class:`RSAPublicKey`. - .. method:: public_numbers() Create a @@ -645,6 +636,13 @@ Key interfaces :return bytes: Serialized key. +.. class:: RSAPublicKeyWithSerialization + + .. versionadded:: 0.8 + + Alias for :class:`RSAPublicKey`. + + .. _`RSA`: https://en.wikipedia.org/wiki/RSA_(cryptosystem) .. _`public-key`: https://en.wikipedia.org/wiki/Public-key_cryptography .. _`specific mathematical properties`: https://en.wikipedia.org/wiki/RSA_(cryptosystem)#Key_generation |