diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-28 11:31:06 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-03-07 19:59:04 -0600 |
commit | 3f157e00f4fe3a86da17a1de8e2222705147728f (patch) | |
tree | a458824de770f94c35285e103ad2591514147de2 /docs/hazmat/primitives/asymmetric/serialization.rst | |
parent | 7d5483b7cd0065b1f21b068ac2278ba74c21dc67 (diff) | |
download | cryptography-3f157e00f4fe3a86da17a1de8e2222705147728f.tar.gz cryptography-3f157e00f4fe3a86da17a1de8e2222705147728f.tar.bz2 cryptography-3f157e00f4fe3a86da17a1de8e2222705147728f.zip |
support RSA public key serialization
Diffstat (limited to 'docs/hazmat/primitives/asymmetric/serialization.rst')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/serialization.rst | 19 |
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..dd532b51 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 occasionally used by various systems. + Serialization Encodings ~~~~~~~~~~~~~~~~~~~~~~~ |