Skip to content

Commit d1598cd

Browse files
jelaiwLegrandin
authored andcommitted
Change tag variable name to improve clarity.
See KMAC256 for corresponding change.
1 parent 0061029 commit d1598cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Doc/src/hash/kmac128.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ And this is an example showing how to validate the KMAC128 tag::
2222
>>> from Crypto.Hash import KMAC128
2323
>>>
2424
>>> # We have received a message 'msg' together
25-
>>> # with its MAC 'mac'
25+
>>> # with its MAC 'mac_tag'
2626
>>>
2727
>>> secret = b'Sixteen byte key'
2828
>>> mac = KMAC128.new(key=secret, mac_len=16)
2929
>>> mac.update(msg)
3030
>>> try:
31-
>>> mac.verify(mac)
31+
>>> mac.verify(mac_tag)
3232
>>> print("The message '%s' is authentic" % msg)
3333
>>> except ValueError:
3434
>>> print("The message or the key is wrong")

0 commit comments

Comments
 (0)