|
__init__(self,
key,
msg='
' ,
digestmod=None)
Create a new HMAC object. |
|
|
|
update(self,
msg)
Continue authentication of a message by consuming the next
chunk of data. |
|
|
|
copy(self)
Return a copy ("clone") of the MAC object. |
|
|
|
digest(self)
Return the binary (non-printable) MAC of the message that has
been authenticated so far. |
|
|
|
verify(self,
mac_tag)
Verify that a given binary MAC (computed by another party)
is valid. |
|
|
|
hexdigest(self)
Return the printable MAC of the message that has been
authenticated so far. |
|
|
|
hexverify(self,
hex_mac_tag)
Verify that a given printable MAC (computed by another party)
is valid. |
|
|