crypto-api-0.10.2: A generic interface for cryptographic operations

Portabilityportable
Stabilitybeta
MaintainerThomas.DuBuisson@gmail.com
Safe HaskellSafe-Infered

Crypto.HMAC

Description

 

Synopsis

Documentation

hmac :: Hash c d => MacKey c d -> ByteString -> dSource

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

hmac' :: Hash c d => MacKey c d -> ByteString -> dSource

hmac k msg will compute an authentication code for msg using key k

newtype MacKey c d Source

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

Constructors

MacKey ByteString 

Instances

Eq (MacKey c d) 
Ord (MacKey c d) 
Show (MacKey c d)