Copyright | Copyright © 2021 Lars Kuhtz <lakuhtz@gmail.com> |
---|---|
License | MIT |
Maintainer | Lars Kuhtz <lakuhtz@gmail.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- class IncrementalHash a => Hash a where
- type Salt a :: Type
- initialize :: Salt a -> Context a
- class IncrementalHash a where
- hashPtr :: forall a. Hash a => Salt a -> Ptr Word8 -> Int -> IO a
- hashStorable :: forall a b. Hash a => Storable b => Salt a -> b -> a
- hashByteString :: forall a. Hash a => Salt a -> ByteString -> a
- hashByteStringLazy :: forall a. Hash a => Salt a -> ByteString -> a
- hashShortByteString :: forall a. Hash a => Salt a -> ShortByteString -> a
- hashByteArray :: forall a. Hash a => Salt a -> ByteArray# -> a
- updateByteString :: forall a. IncrementalHash a => Context a -> ByteString -> Context a
- updateByteStringLazy :: forall a. IncrementalHash a => Context a -> ByteString -> Context a
- updateShortByteString :: forall a. IncrementalHash a => Context a -> ShortByteString -> Context a
- updateStorable :: forall a b. IncrementalHash a => Storable b => Context a -> b -> Context a
- updateByteArray :: forall a. IncrementalHash a => Context a -> ByteArray# -> Context a
Documentation
class IncrementalHash a => Hash a where Source #
initialize :: Salt a -> Context a Source #
Instances
Hash Fnv132Hash Source # | |
Defined in Data.Hash.FNV1.Salted type Salt Fnv132Hash Source # initialize :: Salt Fnv132Hash -> Context Fnv132Hash Source # | |
Hash Fnv164Hash Source # | |
Defined in Data.Hash.FNV1.Salted type Salt Fnv164Hash Source # initialize :: Salt Fnv164Hash -> Context Fnv164Hash Source # | |
Hash Fnv1Hash Source # | |
Hash Fnv1a32Hash Source # | |
Defined in Data.Hash.FNV1.Salted type Salt Fnv1a32Hash Source # | |
Hash Fnv1a64Hash Source # | |
Defined in Data.Hash.FNV1.Salted type Salt Fnv1a64Hash Source # | |
Hash Fnv1aHash Source # | |
(SipHashParam c, SipHashParam d) => Hash (SipHash c d) Source # | |
class IncrementalHash a where Source #
Instances
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
updateByteString :: forall a. IncrementalHash a => Context a -> ByteString -> Context a Source #
updateByteStringLazy :: forall a. IncrementalHash a => Context a -> ByteString -> Context a Source #
updateShortByteString :: forall a. IncrementalHash a => Context a -> ShortByteString -> Context a Source #
updateStorable :: forall a b. IncrementalHash a => Storable b => Context a -> b -> Context a Source #
updateByteArray :: forall a. IncrementalHash a => Context a -> ByteArray# -> Context a Source #