public update(text as String) as Mac:
Appends text to the in-memory MAC buffer.
| Parameter | Description |
|---|---|
text | Additional UTF-8 text chunk. |
This MAC instance.
import klyn.cryptography
mac = Hmac(SHA256())
mac.init("secret")
mac.update("hel")
mac.update("lo")
print(mac.doFinal().hex)