aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/asymmetric
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-07-06 21:52:28 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2017-07-06 22:52:28 -0400
commit3ba1d8a9a51a3e770318069230932d0a7c9dd2d8 (patch)
treedc365b56f7a2766ea1209d26bc3a3df508932693 /docs/hazmat/primitives/asymmetric
parent765a3e494e8196370995d2c698b6eda8492935e0 (diff)
downloadcryptography-3ba1d8a9a51a3e770318069230932d0a7c9dd2d8.tar.gz
cryptography-3ba1d8a9a51a3e770318069230932d0a7c9dd2d8.tar.bz2
cryptography-3ba1d8a9a51a3e770318069230932d0a7c9dd2d8.zip
we forgot to document these DH methods (#3757)
Diffstat (limited to 'docs/hazmat/primitives/asymmetric')
-rw-r--r--docs/hazmat/primitives/asymmetric/dh.rst27
1 files changed, 27 insertions, 0 deletions
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