aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/asymmetric
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-06-02 07:51:09 -1000
committerAlex Gaynor <alex.gaynor@gmail.com>2017-06-02 13:51:09 -0400
commit26fcc5c24d7ef7e905181ba044447ed15746c73b (patch)
tree00d9d9d22f28434f57dab94fa03bd357558d6db0 /docs/hazmat/primitives/asymmetric
parenta7e9a22886418b43ecdebd4ea3b5acba5425e822 (diff)
downloadcryptography-26fcc5c24d7ef7e905181ba044447ed15746c73b.tar.gz
cryptography-26fcc5c24d7ef7e905181ba044447ed15746c73b.tar.bz2
cryptography-26fcc5c24d7ef7e905181ba044447ed15746c73b.zip
make signature and verification contexts error better re: prehashed (#3658)
* make signature and verification contexts error better re: prehashed * code review feedback
Diffstat (limited to 'docs/hazmat/primitives/asymmetric')
-rw-r--r--docs/hazmat/primitives/asymmetric/interfaces.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/interfaces.rst b/docs/hazmat/primitives/asymmetric/interfaces.rst
index c4f176c6..a5dbc671 100644
--- a/docs/hazmat/primitives/asymmetric/interfaces.rst
+++ b/docs/hazmat/primitives/asymmetric/interfaces.rst
@@ -9,6 +9,12 @@ Signature Interfaces
.. versionadded:: 0.2
+ .. note::
+
+ :class:`~cryptography.hazmat.primitives.asymmetric.utils.Prehashed`
+ is not supported by this context. You must use the ``sign`` method
+ on the private key object.
+
.. method:: update(data)
:param bytes data: The data you want to sign.
@@ -22,6 +28,12 @@ Signature Interfaces
.. versionadded:: 0.2
+ .. note::
+
+ :class:`~cryptography.hazmat.primitives.asymmetric.utils.Prehashed`
+ is not supported by this context. You must use the ``verify`` method
+ on the public key object.
+
.. method:: update(data)
:param bytes data: The data you wish to verify using the signature.