From 3ba1d8a9a51a3e770318069230932d0a7c9dd2d8 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Thu, 6 Jul 2017 21:52:28 -0500 Subject: we forgot to document these DH methods (#3757) --- docs/hazmat/primitives/asymmetric/dh.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'docs') diff --git a/docs/hazmat/primitives/asymmetric/dh.rst b/docs/hazmat/primitives/asymmetric/dh.rst index c52ee4d1..1df182e8 100644 --- a/docs/hazmat/primitives/asymmetric/dh.rst +++ b/docs/hazmat/primitives/asymmetric/dh.rst @@ -288,6 +288,15 @@ Numbers p subgroup order value. + .. method:: parameters(backend) + + .. versionadded:: 1.7 + + :param backend: An instance of + :class:`~cryptography.hazmat.backends.interfaces.DHBackend`. + + :returns: A new instance of :class:`DHParameters`. + .. class:: DHPrivateNumbers(x, public_numbers) .. versionadded:: 0.8 @@ -307,6 +316,15 @@ Numbers The private value. + .. method:: private_key(backend) + + .. versionadded:: 1.7 + + :param backend: An instance of + :class:`~cryptography.hazmat.backends.interfaces.DHBackend`. + + :returns: A new instance of :class:`DHPrivateKey`. + .. class:: DHPublicNumbers(y, parameter_numbers) @@ -326,6 +344,15 @@ Numbers The public value. + .. method:: public_key(backend) + + .. versionadded:: 1.7 + + :param backend: An instance of + :class:`~cryptography.hazmat.backends.interfaces.DHBackend`. + + :returns: A new instance of :class:`DHPublicKey`. + .. _`Diffie-Hellman key exchange`: https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange .. _`forward secrecy`: https://en.wikipedia.org/wiki/Forward_secrecy -- cgit v1.2.3