From 26fcc5c24d7ef7e905181ba044447ed15746c73b Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 2 Jun 2017 07:51:09 -1000 Subject: make signature and verification contexts error better re: prehashed (#3658) * make signature and verification contexts error better re: prehashed * code review feedback --- docs/hazmat/primitives/asymmetric/interfaces.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/hazmat/primitives/asymmetric') 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. -- cgit v1.2.3