HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Modulecrypton-2.1.7Haskell2010

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.

  • 2 types
  • 1 class
  • 5 values
  • Packagecrypton-2.1.7
  • Exports8
  • LanguageHaskell2010
  • LicenceBSD-3-Clause AND MIT AND ISC
  • SourceKMAC.hs
newtypenewtype KMAC a
#

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

Instances3Eq, NFData, ByteArrayAccess
  • Eq (KMAC a)Defined in crypton-2.1.7 · Crypto.MAC.KMAC
  • NFData (KMAC a)Defined in crypton-2.1.7 · Crypto.MAC.KMAC
  • ByteArrayAccess (KMAC a)Defined in crypton-2.1.7 · Crypto.MAC.KMAC

Incremental

5 declarations
newtypenewtype Context a
#

Represent an ongoing KMAC state, that can be appended with update and finalized to a KMAC with finalize.