From 80ec631601a79fef5bd137a895cd70162ff6b4ca Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 21 Nov 2016 00:20:52 +0800 Subject: add support for prehashing in ECDSA sign/verify (#3267) * add support for prehashing in ECDSA sign/verify * move signature_algorithm check to its own function --- docs/hazmat/primitives/asymmetric/ec.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/hazmat/primitives/asymmetric') diff --git a/docs/hazmat/primitives/asymmetric/ec.rst b/docs/hazmat/primitives/asymmetric/ec.rst index 27debfa1..99abcc69 100644 --- a/docs/hazmat/primitives/asymmetric/ec.rst +++ b/docs/hazmat/primitives/asymmetric/ec.rst @@ -384,12 +384,16 @@ Key Interfaces .. class:: EllipticCurveSignatureAlgorithm .. versionadded:: 0.5 + .. versionchanged:: 1.6 + :class:`~cryptography.hazmat.primitives.asymmetric.utils.Prehashed` + can now be used as an ``algorithm``. A signature algorithm for use with elliptic curve keys. .. attribute:: algorithm - :type: :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` + :type: :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` or + :class:`~cryptography.hazmat.primitives.asymmetric.utils.Prehashed` The digest algorithm to be used with the signature scheme. -- cgit v1.2.3