hmac :: (ByteArrayAccess key, ByteArrayAccess message, HashAlgorithm a)=> keySecret key
-> messageMessage to MAC
-> HMAC a
Compute a MAC using the supplied hashing function
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulecrypton-1.0.4Haskell2010
Provide the HMAC (Hash based Message Authentification Code) base algorithm. http://en.wikipedia.org/wiki/HMAC
hmac :: (ByteArrayAccess key, ByteArrayAccess message, HashAlgorithm a)=> keySecret key
-> messageMessage to MAC
-> HMAC aCompute a MAC using the supplied hashing function
hmacLazy :: (ByteArrayAccess key, HashAlgorithm a)=> keySecret key
-> ByteStringMessage to MAC
-> HMAC aCompute a MAC using the supplied hashing function, for a lazy input
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.
HMAChmacGetDigest :: Digest aEq (HMAC a)Defined in crypton-1.0.4 · Crypto.MAC.HMACByteArrayAccess (HMAC a)Defined in crypton-1.0.4 · Crypto.MAC.HMACInitialize a new incremental HMAC context
update :: (ByteArrayAccess message, HashAlgorithm a)=> Context aCurrent HMAC context
-> messageMessage to append to the MAC
-> Context aUpdated HMAC context
Incrementally update a HMAC context
updates :: (ByteArrayAccess message, HashAlgorithm a)=> Context aCurrent HMAC context
-> [message]Messages to append to the MAC
-> Context aUpdated HMAC context
Increamentally update a HMAC context with multiple inputs
Finalize a HMAC context and return the HMAC.