aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-11-21 07:55:18 +0800
committerAlex Gaynor <alex.gaynor@gmail.com>2016-11-20 18:55:18 -0500
commitec7fc461510ce6fa7fe0846dd51907ae5c611a2f (patch)
treecaee4f3f678fb718f88fcc2edf9cc8fd7b4ff825 /docs/hazmat/primitives
parent80ec631601a79fef5bd137a895cd70162ff6b4ca (diff)
downloadcryptography-ec7fc461510ce6fa7fe0846dd51907ae5c611a2f.tar.gz
cryptography-ec7fc461510ce6fa7fe0846dd51907ae5c611a2f.tar.bz2
cryptography-ec7fc461510ce6fa7fe0846dd51907ae5c611a2f.zip
update docs and changelog for prehashed support (#3268)
Diffstat (limited to 'docs/hazmat/primitives')
-rw-r--r--docs/hazmat/primitives/asymmetric/utils.rst18
1 files changed, 15 insertions, 3 deletions
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`.