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.Pure.Salted

Description

 
Synopsis

Documentation

class IncrementalHash a => Hash a where Source #

Associated Types

type Salt a :: Type Source #

Methods

initialize :: Salt a -> Context a Source #

Instances

Instances details
Hash Fnv132Hash Source # 
Instance details

Defined in Data.Hash.FNV1.Salted

Associated Types

type Salt Fnv132Hash Source #

Hash Fnv164Hash Source # 
Instance details

Defined in Data.Hash.FNV1.Salted

Associated Types

type Salt Fnv164Hash Source #

Hash Fnv1Hash Source # 
Instance details

Defined in Data.Hash.FNV1.Salted

Associated Types

type Salt Fnv1Hash Source #

Hash Fnv1a32Hash Source # 
Instance details

Defined in Data.Hash.FNV1.Salted

Associated Types

type Salt Fnv1a32Hash Source #

Hash Fnv1a64Hash Source # 
Instance details

Defined in Data.Hash.FNV1.Salted

Associated Types

type Salt Fnv1a64Hash Source #

Hash Fnv1aHash Source # 
Instance details

Defined in Data.Hash.FNV1.Salted

Associated Types

type Salt Fnv1aHash Source #

(SipHashParam c, SipHashParam d) => Hash (SipHash c d) Source # 
Instance details

Defined in Data.Hash.SipHash

Associated Types

type Salt (SipHash c d) Source #

Methods

initialize :: Salt (SipHash c d) -> Context (SipHash c d) Source #

class IncrementalHash a where Source #

Associated Types

type Context a :: Type Source #

Methods

update :: Context a -> Ptr Word8 -> Int -> IO (Context a) Source #

finalize :: Context a -> a Source #

Instances

Instances details
IncrementalHash Fnv132Hash Source # 
Instance details

Defined in Data.Hash.FNV1

Associated Types

type Context Fnv132Hash Source #

IncrementalHash Fnv164Hash Source # 
Instance details

Defined in Data.Hash.FNV1

Associated Types

type Context Fnv164Hash Source #

IncrementalHash Fnv1Hash Source # 
Instance details

Defined in Data.Hash.FNV1

Associated Types

type Context Fnv1Hash Source #

IncrementalHash Fnv1a32Hash Source # 
Instance details

Defined in Data.Hash.FNV1

Associated Types

type Context Fnv1a32Hash Source #

IncrementalHash Fnv1a64Hash Source # 
Instance details

Defined in Data.Hash.FNV1

Associated Types

type Context Fnv1a64Hash Source #

IncrementalHash Fnv1aHash Source # 
Instance details

Defined in Data.Hash.FNV1

Associated Types

type Context Fnv1aHash Source #

(SipHashParam c, SipHashParam d) => IncrementalHash (SipHash c d) Source # 
Instance details

Defined in Data.Hash.SipHash

Associated Types

type Context (SipHash c d) Source #

Methods

update :: Context (SipHash c d) -> Ptr Word8 -> Int -> IO (Context (SipHash c d)) Source #

finalize :: Context (SipHash c d) -> SipHash c d 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 -> 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 -> a Source #

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

Incremental Hashing

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