aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/mac/cmac.rst
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-07-12 12:27:37 +0100
committerAlex Stapleton <alexs@prol.etari.at>2014-07-12 12:27:37 +0100
commitfaf305b3143d35d60d860c4156d020494280008b (patch)
treed5100c200dd95fa9a4190649f99878b6642d06a1 /docs/hazmat/primitives/mac/cmac.rst
parent3e5ea581f240bc9ec19a50f87b326873550feb21 (diff)
downloadcryptography-faf305b3143d35d60d860c4156d020494280008b.tar.gz
cryptography-faf305b3143d35d60d860c4156d020494280008b.tar.bz2
cryptography-faf305b3143d35d60d860c4156d020494280008b.zip
Get rid of remaining pycon blocks
Diffstat (limited to 'docs/hazmat/primitives/mac/cmac.rst')
-rw-r--r--docs/hazmat/primitives/mac/cmac.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/mac/cmac.rst b/docs/hazmat/primitives/mac/cmac.rst
index 498b8b1e..104ba8b8 100644
--- a/docs/hazmat/primitives/mac/cmac.rst
+++ b/docs/hazmat/primitives/mac/cmac.rst
@@ -31,7 +31,7 @@ A subset of CMAC with the AES-128 algorithm is described in :rfc:`4493`.
>>> from cryptography.hazmat.primitives.ciphers import algorithms
>>> c = cmac.CMAC(algorithms.AES(key), backend=default_backend())
>>> c.update(b"message to authenticate")
- >>> c.finalize()
+ >>> c.copy().finalize()
'CT\x1d\xc8\x0e\x15\xbe4e\xdb\xb6\x84\xca\xd9Xk'
If the backend doesn't support the requested ``algorithm`` an
@@ -45,7 +45,7 @@ A subset of CMAC with the AES-128 algorithm is described in :rfc:`4493`.
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::
>>> c.verify(b"an incorrect signature")
Traceback (most recent call last):