aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-12-27 08:21:54 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-12-27 08:21:54 -0800
commit37c88a0dea800b3028f95bf71a8cd6e344254d4e (patch)
treebcf227588c0a96073336041978880763ce03bc7e /docs/hazmat/primitives
parentb645521e84026633f666aa107816ac2fc5e05cc6 (diff)
parentb808f8cc91e302d4120eefa80c946a7cdcf9a155 (diff)
downloadcryptography-37c88a0dea800b3028f95bf71a8cd6e344254d4e.tar.gz
cryptography-37c88a0dea800b3028f95bf71a8cd6e344254d4e.tar.bz2
cryptography-37c88a0dea800b3028f95bf71a8cd6e344254d4e.zip
Merge pull request #315 from juliankrause/verify
Add verify function to hmac and hashes.
Diffstat (limited to 'docs/hazmat/primitives')
-rw-r--r--docs/hazmat/primitives/hmac.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/hmac.rst b/docs/hazmat/primitives/hmac.rst
index 0547b7d2..b8f94fd2 100644
--- a/docs/hazmat/primitives/hmac.rst
+++ b/docs/hazmat/primitives/hmac.rst
@@ -71,3 +71,11 @@ message.
:return bytes: The message digest as bytes.
:raises cryptography.exceptions.AlreadyFinalized:
+
+ .. method:: verify(signature)
+
+ Finalize the current context and securely compare digest to ``signature``.
+
+ :param bytes signature: The bytes of the HMAC signature recieved.
+ :raises cryptography.exceptions.AlreadyFinalized: See :meth:`finalize`
+ :raises cryptography.exceptions.InvalidSignature: If signature does not match digest