HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulecrypton-1.0.6Haskell2010

Crypto.MAC.HMAC

Provide the HMAC (Hash based Message Authentification Code) base algorithm. http://en.wikipedia.org/wiki/HMAC

  • 2 types
  • 6 values
  • Packagecrypton-1.0.6
  • Exports8
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHMAC.hs
newtypenewtype HMAC a
#

Represent an HMAC 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

Instances2Eq, ByteArrayAccess

Incremental

5 declarations
datadata Context hashalg
#

Represent an ongoing HMAC state, that can be appended with update and finalize to an HMAC with hmacFinalize

Constructors