HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulecrypto-api-0.13.3Haskell98

Crypto.HMAC

Synopsis
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