aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-06-24 10:12:04 -1000
committerAlex Gaynor <alex.gaynor@gmail.com>2017-06-24 16:12:04 -0400
commit361a9fc2b7ec3c41dbf479071fca87a2573e0c52 (patch)
tree98c80e28b742fc500c183f5cd3670949efab0113
parent6b08aba7f1eb296461528328a3c9871fa7594fc4 (diff)
downloadcryptography-361a9fc2b7ec3c41dbf479071fca87a2573e0c52.tar.gz
cryptography-361a9fc2b7ec3c41dbf479071fca87a2573e0c52.tar.bz2
cryptography-361a9fc2b7ec3c41dbf479071fca87a2573e0c52.zip
changelog entry and a few updates to the new DH params docs (#3718)
-rw-r--r--CHANGELOG.rst7
-rw-r--r--docs/hazmat/backends/interfaces.rst4
-rw-r--r--docs/hazmat/primitives/asymmetric/dh.rst3
-rw-r--r--docs/hazmat/primitives/asymmetric/serialization.rst8
-rw-r--r--docs/spelling_wordlist.txt1
5 files changed, 16 insertions, 7 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 90a5a2a2..5af45a46 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -24,6 +24,13 @@ Changelog
* Added support for
:class:`~cryptography.hazmat.primitives.ciphers.aead.ChaCha20Poly1305`.
* Added support for :doc:`/hazmat/primitives/asymmetric/x25519`.
+* Added support for serializing and deserializing Diffie-Hellman parameters
+ with
+ :func:`~cryptography.hazmat.primitives.serialization.load_pem_parameters`,
+ :func:`~cryptography.hazmat.primitives.serialization.load_der_parameters`,
+ and
+ :meth:`~cryptography.hazmat.primitives.asymmetric.dh.DHParametersWithSerialization.parameter_bytes`
+ .
1.9 - 2017-05-29
~~~~~~~~~~~~~~~~
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst
index 8ea1cf99..93eedbe6 100644
--- a/docs/hazmat/backends/interfaces.rst
+++ b/docs/hazmat/backends/interfaces.rst
@@ -457,7 +457,7 @@ A specific ``backend`` may provide one or more of these interfaces.
.. versionadded:: 2.0
:param bytes data: PEM data to load.
- :return: A new instance of the appropriate type of encryption
+ :return: A new instance of the appropriate type of asymmetric
parameters the serialized data contains.
:raises ValueError: If the data could not be deserialized.
@@ -490,7 +490,7 @@ A specific ``backend`` may provide one or more of these interfaces.
.. versionadded:: 2.0
:param bytes data: DER data to load.
- :return: A new instance of the appropriate type of encryption
+ :return: A new instance of the appropriate type of asymmetric
parameters the serialized data contains.
:raises ValueError: If the data could not be deserialized.
diff --git a/docs/hazmat/primitives/asymmetric/dh.rst b/docs/hazmat/primitives/asymmetric/dh.rst
index 971d3452..2e894dba 100644
--- a/docs/hazmat/primitives/asymmetric/dh.rst
+++ b/docs/hazmat/primitives/asymmetric/dh.rst
@@ -130,7 +130,8 @@ Group parameters
:class:`~cryptography.hazmat.primitives.serialization.Encoding` enum.
:param format: A value from the
- :class:`~cryptography.hazmat.primitives.serialization.ParameterFormat` enum.
+ :class:`~cryptography.hazmat.primitives.serialization.ParameterFormat`
+ enum. At the moment only ``PKCS3`` is supported.
:return bytes: Serialized parameters.
diff --git a/docs/hazmat/primitives/asymmetric/serialization.rst b/docs/hazmat/primitives/asymmetric/serialization.rst
index b0cfbd0e..24e2b89c 100644
--- a/docs/hazmat/primitives/asymmetric/serialization.rst
+++ b/docs/hazmat/primitives/asymmetric/serialization.rst
@@ -199,8 +199,8 @@ all begin with ``-----BEGIN {format}-----`` and end with ``-----END
.. versionadded:: 2.0
- Deserialize encryption parameters from PEM encoded data to one of the supported
- asymmetric encryption parameters types.
+ Deserialize parameters from PEM encoded data to one of the supported
+ asymmetric parameters types.
.. doctest::
@@ -317,8 +317,8 @@ the rest.
.. versionadded:: 2.0
- Deserialize encryption parameters from DER encoded data to one of the supported
- asymmetric encryption parameters types.
+ Deserialize parameters from DER encoded data to one of the supported
+ asymmetric parameters types.
:param bytes data: The DER encoded parameters data.
diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt
index d9921a0e..3ebc63d1 100644
--- a/docs/spelling_wordlist.txt
+++ b/docs/spelling_wordlist.txt
@@ -26,6 +26,7 @@ DER
deserialize
deserialized
Deserialization
+deserializing
Diffie
Diffie
disambiguating