klyn.cryptography.Mac.update
method

    public update(text as String) as Mac:

Description

Appends text to the in-memory MAC buffer.

Parameters

Parameter | Description
--- | ---
`text` | Additional UTF-8 text chunk.

Returns

This MAC instance.

Example

    import klyn.cryptography

    mac = Hmac(SHA256())
    mac.init("secret")
    mac.update("hel")
    mac.update("lo")
    print(mac.doFinal().hex)