SHA2-0.2.2: Fast, incremental SHA hashing for bytestrings

Codec.Digest.SHA.Monad

Description

A safe interface to SHA that still lets you digest incrementally

Synopsis

Documentation

type SHA s a = SHAT (ST s) aSource

type SHAT m a = ReaderT SHACtx m aSource

data Length Source

Constructors

SHA256 
SHA384 
SHA512 

runSHA :: Length -> (forall s. SHA s a) -> (a, ByteString)Source

class Hashable a whereSource

Hash some data, combining it with everything already hashed in this context

Methods

update :: MonadUnsafeIO m => a -> SHAT m ()Source

showBSasHex :: ByteString -> StringSource

Converts a ByteString to hexadeximal string format