mirror of
https://github.com/Legrandin/pycryptodome.git
synced 2025-12-08 05:19:46 +00:00
update() of CMAC was not throwing an exception after digest was computed
This commit is contained in:
parent
4b138584f9
commit
072b54a9be
3 changed files with 28 additions and 4 deletions
|
|
@ -116,6 +116,9 @@ class CMAC(object):
|
|||
data (byte string/byte array/memoryview): The next chunk of data
|
||||
"""
|
||||
|
||||
if self._mac_tag is not None:
|
||||
raise TypeError("update() cannot be called after digest() or verify()")
|
||||
|
||||
self._data_size += len(msg)
|
||||
bs = self._block_size
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue