HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecrypto-api-0.13.3Haskell98

Crypto.HMAC

  • 1 type
  • 2 values
valuehmac :: Hash c d => MacKey c d -> ByteString -> d
#

Message authentication code calculation for lazy bytestrings. hmac k msg will compute an authentication code for msg using key k

newtypenewtype MacKey c d
#

A key carrying phantom types c and d, forcing the key data to only be used by particular hash algorithms.

Constructors

Instances3Eq, Ord, Show
  • Eq (MacKey c d)Defined in crypto-api-0.13.3 · Crypto.HMAC
  • Ord (MacKey c d)Defined in crypto-api-0.13.3 · Crypto.HMAC
  • Show (MacKey c d)Defined in crypto-api-0.13.3 · Crypto.HMAC