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/backends/interfaces.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/hazmat/backends') 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 -- cgit v1.2.3