From 533a3c909d59698259456233041a3d4e232bf87e Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 19 Nov 2016 09:49:10 +0800 Subject: =?UTF-8?q?change=20derive=5Felliptic=5Fcurve=5Fpublic=5Fpoint=20t?= =?UTF-8?q?o=20return=20EllipticCurvePubl=E2=80=A6=20(#3243)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * change derive_elliptic_curve_public_point to return EllipticCurvePublicKey * also rename the backend interface method * review feedback * Rename to derive_elliptic_curve_private_key * Returns EllipticCurvePrivateKey * Reuses the EC_POINT in the openssl impl * Rename "secret" arg to "private_value" which is consistent with our naming for the value in ECPrivateNumbers. --- docs/hazmat/primitives/asymmetric/ec.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/hazmat/primitives') 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`. -- cgit v1.2.3