module Raaz.Hash.Sha384
(
SHA384
, sha384, sha384File, sha384Source
, hmacSha384, hmacSha384File, hmacSha384Source
) 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.Sha384.Internal ( SHA384 )
import Raaz.Hash.Sha384.Recommendation()
sha384 :: PureByteSource src => src -> SHA384
sha384 = hash
{-# SPECIALIZE sha384 :: B.ByteString -> SHA384 #-}
{-# SPECIALIZE sha384 :: L.ByteString -> SHA384 #-}
sha384File :: FilePath -> IO SHA384
sha384File = hashFile
sha384Source :: ByteSource src => src -> IO SHA384
sha384Source = hashSource
hmacSha384 :: PureByteSource src
=> Key (HMAC SHA384)
-> src
-> HMAC SHA384
hmacSha384 = hmac
hmacSha384File :: Key (HMAC SHA384)
-> FilePath
-> IO (HMAC SHA384)
hmacSha384File = hmacFile
hmacSha384Source :: ByteSource src
=> Key (HMAC SHA384)
-> src
-> IO (HMAC SHA384)
hmacSha384Source = hmacSource