Copyright | Copyright © 2021 Lars Kuhtz <lakuhtz@gmail.com> |
---|---|
License | MIT |
Maintainer | Lars Kuhtz <lakuhtz@gmail.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 -> a
- hashByteStringLazy :: forall a. Hash a => ByteString -> a
- hashShortByteString :: forall a. Hash a => ShortByteString -> IO a
- hashByteArray :: forall a. Hash a => ByteArray# -> IO 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 #
initialize :: IO (Context a) Source #
Instances
class IncrementalHash a where Source #
Instances
hashByteString :: forall a. Hash a => ByteString -> a Source #
hashByteStringLazy :: forall a. Hash a => ByteString -> a Source #
hashShortByteString :: forall a. Hash a => ShortByteString -> IO a Source #
hashByteArray :: forall a. Hash a => ByteArray# -> IO 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 #