hashes-0.2.3: Hash functions
CopyrightCopyright © 2021 Lars Kuhtz <lakuhtz@gmail.com>
LicenseMIT
MaintainerLars Kuhtz <lakuhtz@gmail.com>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Hash.Class.Mutable.Salted

Description

Class of Salted Mutable Hashes

Synopsis

Documentation

class IncrementalHash a => Hash a where Source #

Associated Types

type Salt a :: Type Source #

Methods

initialize :: Salt a -> IO (Context a) Source #

hashPtr :: forall a. Hash a => Salt a -> Ptr Word8 -> Int -> IO a Source #

hashStorable :: forall a b. Hash a => Storable b => Salt a -> b -> IO a Source #

hashByteString :: forall a. Hash a => Salt a -> ByteString -> a Source #

hashByteStringLazy :: forall a. Hash a => Salt a -> ByteString -> a Source #

hashShortByteString :: forall a. Hash a => Salt a -> ShortByteString -> IO a Source #

hashByteArray :: forall a. Hash a => Salt a -> ByteArray# -> IO a Source #

Incremental Hashing

updateStorable :: forall a b. IncrementalHash a => Storable b => Context a -> b -> IO () Source #