Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | Trustworthy |
provide the HMAC (Hash based Message Authentification Code) base algorithm. http://en.wikipedia.org/wiki/HMAC
- hmac :: (ByteString -> ByteString) -> Int -> ByteString -> ByteString -> ByteString
Documentation
:: (ByteString -> ByteString) | hash function |
-> Int | block size |
-> ByteString | secret |
-> ByteString | message |
-> ByteString |
compute a MAC using the supplied hashing function
An incremental API can be found in the module Crypto.Hash.