Hmac
class in package klyn.cryptography

    public class Hmac extends Mac:

Object
└ Mac
└ Hmac

HMAC implementation parameterized by a concrete message digest.

    import klyn.cryptography

    mac = Hmac(SHA256())
    mac.init("secret")
    print(mac.doFinal("hello").hex)

Inherited Attributes
attribute Inherited Attributes from Mac: algorithm, hashAlgorithm
Inherited Properties
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | Hmac `Hmac() throws CryptoException:` | Creates an HMAC using `SHA256`.
public | Hmac `Hmac(hash as Object) throws CryptoException:` | Creates an HMAC bound to the given digest algorithm.

Inherited Methods
method Inherited Methods from Mac: doFinal, getInstance, init, reset, toString, update, verify
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml