Copyright | Copyright © 2021-2024 Lars Kuhtz <lakuhtz@gmail.com> |
---|---|
License | MIT |
Maintainer | Lars Kuhtz <lakuhtz@gmail.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Data.Hash.Class.Mutable
Description
Class of Salted Pure Hashes
Synopsis
- class IncrementalHash a => Hash a where
- initialize :: IO (Context a)
- class IncrementalHash a where
- hashPtr :: forall a. Hash a => Ptr Word8 -> Int -> IO a
- hashStorable :: forall a b. Hash a => Storable b => b -> IO a
- hashByteString :: forall a. Hash a => ByteString -> IO a
- hashByteStringLazy :: forall a. Hash a => ByteString -> IO a
- hashShortByteString :: forall a. Hash a => ShortByteString -> IO a
- hashByteArray :: forall a. Hash a => ByteArray# -> IO a
- hashPtr_ :: forall a. Hash a => Ptr Word8 -> Int -> a
- hashStorable_ :: forall a b. Hash a => Storable b => b -> a
- hashByteString_ :: forall a. Hash a => ByteString -> a
- hashByteStringLazy_ :: forall a. Hash a => ByteString -> a
- hashShortByteString_ :: forall a. Hash a => ShortByteString -> a
- hashByteArray_ :: forall a. Hash a => ByteArray# -> a
- updateByteString :: forall a. IncrementalHash a => Context a -> ByteString -> IO ()
- updateByteStringLazy :: forall a. IncrementalHash a => Context a -> ByteString -> IO ()
- updateShortByteString :: forall a. IncrementalHash a => Context a -> ShortByteString -> IO ()
- updateStorable :: forall a b. IncrementalHash a => Storable b => Context a -> b -> IO ()
- updateByteArray :: forall a. IncrementalHash a => Context a -> ByteArray# -> IO ()
- class IncrementalHash a => ResetableHash a where
Documentation
class IncrementalHash a => Hash a where Source #
Methods
initialize :: IO (Context a) Source #
Instances
class IncrementalHash a where Source #
Instances
Hash functions
hashByteString :: forall a. Hash a => ByteString -> IO a Source #
hashByteStringLazy :: forall a. Hash a => ByteString -> IO a Source #
hashShortByteString :: forall a. Hash a => ShortByteString -> IO a Source #
hashByteArray :: forall a. Hash a => ByteArray# -> IO a Source #
Pure variants of hash functions
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 #
hashShortByteString_ :: forall a. Hash a => ShortByteString -> a Source #
hashByteArray_ :: forall a. Hash a => ByteArray# -> a Source #
Incremental Hashing
updateByteString :: forall a. IncrementalHash a => Context a -> ByteString -> IO () Source #
updateByteStringLazy :: forall a. IncrementalHash a => Context a -> ByteString -> IO () Source #
updateShortByteString :: forall a. IncrementalHash a => Context a -> ShortByteString -> IO () Source #
updateStorable :: forall a b. IncrementalHash a => Storable b => Context a -> b -> IO () Source #
updateByteArray :: forall a. IncrementalHash a => Context a -> ByteArray# -> IO () Source #
Resetable Hashes
class IncrementalHash a => ResetableHash a where Source #