public Hmac(hash as Object) throws CryptoException:
Creates an HMAC bound to the given digest algorithm.
| Parameter | Description |
|---|---|
hash | Digest algorithm instance, for example SHA512() or SHA3_256(). |
import klyn.cryptography mac = Hmac(SHA3_256()) print(mac.hashAlgorithm)