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

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

Modulecryptonite-0.30Haskell2010

Crypto.MAC.HMAC

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

  • 2 types
  • 6 values
  • Packagecryptonite-0.30
  • 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
  • Eq (HMAC a)Defined in cryptonite-0.30 · Crypto.MAC.HMAC
  • ByteArrayAccess (HMAC a)Defined in cryptonite-0.30 · Crypto.MAC.HMAC

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