summaryrefslogtreecommitdiff
path: root/lib/Crypto/Hash/CMAC.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Crypto/Hash/CMAC.py')
-rw-r--r--lib/Crypto/Hash/CMAC.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Crypto/Hash/CMAC.py b/lib/Crypto/Hash/CMAC.py
index 107db96..6305054 100644
--- a/lib/Crypto/Hash/CMAC.py
+++ b/lib/Crypto/Hash/CMAC.py
@@ -320,7 +320,7 @@ class CMAC(_SmoothMAC):
has been tampered with or that the MAC key is incorrect.
"""
- self.verify(unhexlify(hex_mac_tag))
+ self.verify(unhexlify(tobytes(hex_mac_tag)))
def new(key, msg = None, ciphermod = None):
"""Create a new CMAC object.