diff options
Diffstat (limited to 'docs/hazmat')
-rw-r--r-- | docs/hazmat/backends/interfaces.rst | 5 | ||||
-rw-r--r-- | docs/hazmat/primitives/asymmetric/ec.rst | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index 942a359c..42e07d39 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -422,14 +422,15 @@ A specific ``backend`` may provide one or more of these interfaces. :returns: An instance of :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey`. - .. method:: derive_elliptic_curve_public_point(private_value, curve) + .. method:: derive_elliptic_curve_private_key(private_value, curve) :param private_value: A secret scalar value. :param curve: An instance of :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurve`. - :returns: A tuple (x, y). + :returns: An instance of + :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`. .. class:: PEMSerializationBackend diff --git a/docs/hazmat/primitives/asymmetric/ec.rst b/docs/hazmat/primitives/asymmetric/ec.rst index 33ebee0f..27debfa1 100644 --- a/docs/hazmat/primitives/asymmetric/ec.rst +++ b/docs/hazmat/primitives/asymmetric/ec.rst @@ -20,13 +20,14 @@ Elliptic curve cryptography :returns: A new instance of :class:`EllipticCurvePrivateKey`. -.. function:: derive_private_key(secret, curve, backend) +.. function:: derive_private_key(private_value, curve, backend) .. versionadded:: 1.6 - Derive a private key from ``secret`` on ``curve`` for use with ``backend``. + Derive a private key from ``private_value`` on ``curve`` for use with + ``backend``. - :param int secret: The secret scalar value. + :param int private_value: The secret scalar value. :param curve: An instance of :class:`EllipticCurve`. |