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

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

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