diff options
| author | Aviv Palivoda <palaviv@gmail.com> | 2017-05-24 01:21:49 +0300 | 
|---|---|---|
| committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-05-23 15:21:49 -0700 | 
| commit | 76e68ebb20fc2cd9fe15e692e28690012cf20442 (patch) | |
| tree | 90ef77677caa0162fc73e5a6d7bffcc9211a82b1 | |
| parent | 95e513f95a39756dc930c056aee6d7ea1b96c8cc (diff) | |
| download | cryptography-76e68ebb20fc2cd9fe15e692e28690012cf20442.tar.gz cryptography-76e68ebb20fc2cd9fe15e692e28690012cf20442.tar.bz2 cryptography-76e68ebb20fc2cd9fe15e692e28690012cf20442.zip  | |
Document DH in serialization (#3569)
| -rw-r--r-- | docs/hazmat/primitives/asymmetric/serialization.rst | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/hazmat/primitives/asymmetric/serialization.rst b/docs/hazmat/primitives/asymmetric/serialization.rst index f7baf754..96b50220 100644 --- a/docs/hazmat/primitives/asymmetric/serialization.rst +++ b/docs/hazmat/primitives/asymmetric/serialization.rst @@ -130,6 +130,7 @@ all begin with ``-----BEGIN {format}-----`` and end with ``-----END      :returns: One of          :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`,          :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`, +        :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKey`,          or          :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`          depending on the contents of ``data``. @@ -169,6 +170,7 @@ all begin with ``-----BEGIN {format}-----`` and end with ``-----END      :returns: One of          :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`,          :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey`, +        :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPublicKey`,          or          :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey`          depending on the contents of ``data``. @@ -205,6 +207,7 @@ the rest.      :returns: One of          :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`,          :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`, +        :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKey`,          or          :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`          depending on the contents of ``data``. @@ -245,6 +248,7 @@ the rest.      :returns: One of          :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`,          :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey`, +        :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPublicKey`,          or          :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey`          depending on the contents of ``data``. @@ -329,6 +333,7 @@ Serialization Formats      :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`      ,      :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization` +    , :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKeyWithSerialization`      and      :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`. @@ -352,6 +357,7 @@ Serialization Formats      :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`      ,      :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization` +    , :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPublicKeyWithSerialization`      , and      :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization`. @@ -383,10 +389,12 @@ Serialization Encodings      :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`      ,      :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization` +    , :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKeyWithSerialization`      and      :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`      as well as ``public_bytes`` on -    :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization` +    :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`, +    :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPublicKeyWithSerialization`      and      :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization`. @@ -419,6 +427,7 @@ Serialization Encryption Types      :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`      ,      :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization` +    , :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKeyWithSerialization`      and      :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`.      All other classes in this section represent the available choices for  | 
