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

Data.Hash.Class.Pure

Description

Hashes with pure context

Synopsis

Documentation

class IncrementalHash a => Hash a where Source #

Instances

Instances details
Hash Fnv132Hash Source # 
Instance details

Defined in Data.Hash.FNV1

Hash Fnv164Hash Source # 
Instance details

Defined in Data.Hash.FNV1

Hash Fnv1Hash Source # 
Instance details

Defined in Data.Hash.FNV1

Hash Fnv1a32Hash Source # 
Instance details

Defined in Data.Hash.FNV1

Hash Fnv1a64Hash Source # 
Instance details

Defined in Data.Hash.FNV1

Hash Fnv1aHash Source # 
Instance details

Defined in Data.Hash.FNV1

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 => Ptr Word8 -> Int -> IO a Source #

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

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

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

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

Incremental Hashing

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

Utilities

initializeWithSalt :: forall a s. Hash a => Storable s => s -> Context a Source #

Utility function to initialize a hash with a salt