aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/asymmetric/serialization.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-03-08 16:34:32 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-03-08 16:34:32 -0400
commit88e7ed6415ccf7fb2432b90876deefa8ab88cc98 (patch)
treef0d9d75696b461b6628d13b2e61c94ceff81e180 /docs/hazmat/primitives/asymmetric/serialization.rst
parent7d5483b7cd0065b1f21b068ac2278ba74c21dc67 (diff)
parentefc7f3d23836b7fd6633e95af0e2626eb1f594da (diff)
downloadcryptography-88e7ed6415ccf7fb2432b90876deefa8ab88cc98.tar.gz
cryptography-88e7ed6415ccf7fb2432b90876deefa8ab88cc98.tar.bz2
cryptography-88e7ed6415ccf7fb2432b90876deefa8ab88cc98.zip
Merge pull request #1706 from reaperhulk/serialize-rsa-public-key
Serialize RSA public keys
Diffstat (limited to 'docs/hazmat/primitives/asymmetric/serialization.rst')
-rw-r--r--docs/hazmat/primitives/asymmetric/serialization.rst19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/serialization.rst b/docs/hazmat/primitives/asymmetric/serialization.rst
index 4a2aedc9..fb8c93a4 100644
--- a/docs/hazmat/primitives/asymmetric/serialization.rst
+++ b/docs/hazmat/primitives/asymmetric/serialization.rst
@@ -309,6 +309,25 @@ Serialization Formats
encryption. Choose this unless you have explicit legacy compatibility
requirements.
+.. class:: PublicFormat
+
+ .. versionadded:: 0.8
+
+ An enumeration for public key formats. Used with the ``public_bytes``
+ method available on
+ :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`.
+
+ .. attribute:: SubjectPublicKeyInfo
+
+ This is the typical public key format. It consists of an algorithm
+ identifier and the public key as a bit string. Choose this unless
+ you have specific needs.
+
+ .. attribute:: PKCS1
+
+ Just the public key elements (without the algorithm identifier). This
+ format is RSA only, but is used by some older systems.
+
Serialization Encodings
~~~~~~~~~~~~~~~~~~~~~~~