A Sink that hashes a stream of ByteStrings and
creates a digest d.
Modulecryptonite-conduit-0.2.2Haskell98
Crypto.Hash.Conduit
A module containing Conduit facilities for hash based functions.
this module is vaguely similar to the crypto-conduit part related to hash on purpose, as to provide an upgrade path. The api documentation is pulled directly from this package and adapted, and thus are originally copyright Felipe Lessa.
- 2 values
- Packagecryptonite-conduit-0.2.2
- Exports2
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceConduit.hs
Cryptographic hash functions
2 declarationsHashes the whole contents of the given file in constant memory. This function is just a convenient wrapper around sinkHash defined as:
hashFile fp = liftIO $ runResourceT (sourceFile fp $$ sinkHash)