Type class of SHAKE algorithms.
Modulecryptonite-0.30Haskell2010
Crypto.MAC.KMAC
Provide the KMAC (Keccak Message Authentication Code) algorithm, derived from the SHA-3 base algorithm Keccak and defined in NIST SP800-185.
Contents
- Packagecryptonite-0.30
- Exports8
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceKMAC.hs
Compute a KMAC using the supplied customization string and key.
Represent a KMAC that is a phantom type with the hash used to produce the mac.
The Eq instance is constant time. No Show instance is provided, to avoid printing by mistake.
Constructors
KMACkmacGetDigest :: Digest a
Incremental
Initialize a new incremental KMAC context with the supplied customization string and key.
Incrementally update a KMAC context.
Incrementally update a KMAC context with multiple inputs.
Finalize a KMAC context and return the KMAC.