module Raaz.Hash.Blake2
(
BLAKE2b, BLAKE2s
, blake2b, blake2bFile, blake2bSource
) 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.Blake2.Internal
import Raaz.Hash.Blake2.Recommendation()
blake2b :: PureByteSource src => src -> BLAKE2b
blake2b = hash
{-# SPECIALIZE blake2b :: B.ByteString -> BLAKE2b #-}
{-# SPECIALIZE blake2b :: L.ByteString -> BLAKE2b #-}
blake2bFile :: FilePath -> IO BLAKE2b
blake2bFile = hashFile
blake2bSource :: ByteSource src => src -> IO BLAKE2b
blake2bSource = hashSource