diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-07-12 08:09:47 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-07-12 08:09:47 -0500 |
commit | f11d17b5c787409a7689279aec8f5435c64fdce8 (patch) | |
tree | d5100c200dd95fa9a4190649f99878b6642d06a1 /docs/hazmat/primitives/mac/hmac.rst | |
parent | 3e5ea581f240bc9ec19a50f87b326873550feb21 (diff) | |
parent | faf305b3143d35d60d860c4156d020494280008b (diff) | |
download | cryptography-f11d17b5c787409a7689279aec8f5435c64fdce8.tar.gz cryptography-f11d17b5c787409a7689279aec8f5435c64fdce8.tar.bz2 cryptography-f11d17b5c787409a7689279aec8f5435c64fdce8.zip |
Merge pull request #1259 from public/doctests
Get rid of remaining pycon blocks
Diffstat (limited to 'docs/hazmat/primitives/mac/hmac.rst')
-rw-r--r-- | docs/hazmat/primitives/mac/hmac.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/mac/hmac.rst b/docs/hazmat/primitives/mac/hmac.rst index d56927b9..da75fa9d 100644 --- a/docs/hazmat/primitives/mac/hmac.rst +++ b/docs/hazmat/primitives/mac/hmac.rst @@ -31,7 +31,7 @@ of a message. >>> from cryptography.hazmat.primitives import hashes, hmac >>> h = hmac.HMAC(key, hashes.SHA256(), backend=default_backend()) >>> h.update(b"message to hash") - >>> h.finalize() + >>> h.copy().finalize() '#F\xdaI\x8b"e\xc4\xf1\xbb\x9a\x8fc\xff\xf5\xdex.\xbc\xcd/+\x8a\x86\x1d\x84\'\xc3\xa6\x1d\xd8J' If the backend doesn't support the requested ``algorithm`` an @@ -45,7 +45,7 @@ of a message. To check that a given signature is correct use the :meth:`verify` method. You will receive an exception if the signature is wrong: - .. code-block:: pycon + .. doctest:: >>> h.verify(b"an incorrect signature") Traceback (most recent call last): |