module Raaz.Hash.Sha224
(
SHA224
, sha224, sha224File, sha224Source
, hmacSha224, hmacSha224File, hmacSha224Source
) where
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as L
import Raaz.Core
import Raaz.Hash.Internal ( hashSource, hash, hashFile )
import Raaz.Hash.Internal.HMAC ( hmacSource, hmac, hmacFile, HMAC )
import Raaz.Hash.Sha224.Internal ( SHA224 )
import Raaz.Hash.Sha224.Recommendation()
sha224 :: PureByteSource src => src -> SHA224
sha224 = hash
{-# SPECIALIZE sha224 :: B.ByteString -> SHA224 #-}
{-# SPECIALIZE sha224 :: L.ByteString -> SHA224 #-}
sha224File :: FilePath -> IO SHA224
sha224File = hashFile
sha224Source :: ByteSource src => src -> IO SHA224
sha224Source = hashSource
hmacSha224 :: PureByteSource src
=> Key (HMAC SHA224)
-> src
-> HMAC SHA224
hmacSha224 = hmac
hmacSha224File :: Key (HMAC SHA224)
-> FilePath
-> IO (HMAC SHA224)
hmacSha224File = hmacFile
hmacSha224Source :: ByteSource src
=> Key (HMAC SHA224)
-> src
-> IO (HMAC SHA224)
hmacSha224Source = hmacSource