HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecrypton-1.0.4Haskell2010

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-1.0.4
  • Exports8
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • 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-1.0.4 · Crypto.MAC.KMAC
  • NFData (KMAC a)Defined in crypton-1.0.4 · Crypto.MAC.KMAC
  • ByteArrayAccess (KMAC a)Defined in crypton-1.0.4 · 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.