From ec7fc461510ce6fa7fe0846dd51907ae5c611a2f Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 21 Nov 2016 07:55:18 +0800 Subject: update docs and changelog for prehashed support (#3268) --- docs/hazmat/primitives/asymmetric/utils.rst | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'docs/hazmat') diff --git a/docs/hazmat/primitives/asymmetric/utils.rst b/docs/hazmat/primitives/asymmetric/utils.rst index ab49e551..f46acb2e 100644 --- a/docs/hazmat/primitives/asymmetric/utils.rst +++ b/docs/hazmat/primitives/asymmetric/utils.rst @@ -33,11 +33,23 @@ Asymmetric Utilities .. versionadded:: 1.6 - ``Prehashed`` can be passed as the ``algorithm`` in + ``Prehashed`` can be passed as the ``algorithm`` in the RSA :meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey.sign` - or + and :meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey.verify` - if the data to be signed or verified has been hashed beforehand. + as well as DSA + :meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey.sign` + and + :meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey.verify` + methods. + + For elliptic curves it can be passed as the ``algorithm`` in + :class:`~cryptography.hazmat.primitives.asymmetric.ec.ECDSA` and then used + with + :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey.sign` + and + :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey.verify` + . :param algorithm: An instance of :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`. -- cgit v1.2.3