diff options
| author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2021-11-02 20:14:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-02 12:14:45 +0000 |
| commit | dcf82c6c00bb006b6355c51d02c816769cb534a3 (patch) | |
| tree | 43e28a167eb5d7652bd5bdb15a36aa70ea10e1c2 /docs/hazmat | |
| parent | 99fac0f400be6c0354e104c46ba5addbf7df1512 (diff) | |
| download | cryptography-dcf82c6c00bb006b6355c51d02c816769cb534a3.tar.gz | |
deprecate backend part 2 of n (#6518)
Diffstat (limited to 'docs/hazmat')
| -rw-r--r-- | docs/hazmat/primitives/asymmetric/ec.rst | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/docs/hazmat/primitives/asymmetric/ec.rst b/docs/hazmat/primitives/asymmetric/ec.rst index c45cc9ad7..95244c2eb 100644 --- a/docs/hazmat/primitives/asymmetric/ec.rst +++ b/docs/hazmat/primitives/asymmetric/ec.rst @@ -6,34 +6,27 @@ Elliptic curve cryptography .. module:: cryptography.hazmat.primitives.asymmetric.ec -.. function:: generate_private_key(curve, backend=None) +.. function:: generate_private_key(curve) .. versionadded:: 0.5 - Generate a new private key on ``curve`` for use with ``backend``. + Generate a new private key on ``curve``. :param curve: An instance of :class:`EllipticCurve`. - :param backend: An optional instance of - :class:`~cryptography.hazmat.backends.interfaces.EllipticCurveBackend`. - :returns: A new instance of :class:`EllipticCurvePrivateKey`. -.. function:: derive_private_key(private_value, curve, backend=None) +.. function:: derive_private_key(private_value, curve) .. versionadded:: 1.6 - Derive a private key from ``private_value`` on ``curve`` for use with - ``backend``. + Derive a private key from ``private_value`` on ``curve``. :param int private_value: The secret scalar value. :param curve: An instance of :class:`EllipticCurve`. - :param backend: An optional instance of - :class:`~cryptography.hazmat.backends.interfaces.EllipticCurveBackend`. - :returns: A new instance of :class:`EllipticCurvePrivateKey`. @@ -147,14 +140,11 @@ Elliptic Curve Signature Algorithms The private value. - .. method:: private_key(backend=None) + .. method:: private_key() Convert a collection of numbers into a private key suitable for doing actual cryptographic operations. - :param backend: An optional instance of - :class:`~cryptography.hazmat.backends.interfaces.EllipticCurveBackend`. - :returns: A new instance of :class:`EllipticCurvePrivateKey`. @@ -189,14 +179,11 @@ Elliptic Curve Signature Algorithms The affine y component of the public point used for verifying. - .. method:: public_key(backend=None) + .. method:: public_key() Convert a collection of numbers into a public key suitable for doing actual cryptographic operations. - :param backend: An optional instance of - :class:`~cryptography.hazmat.backends.interfaces.EllipticCurveBackend`. - :raises ValueError: Raised if the point is invalid for the curve. :returns: A new instance of :class:`EllipticCurvePublicKey`. |
