SHA2-0.2.4: Fast, incremental SHA hashing for bytestrings

Codec.Digest.SHA.IO

Description

A primitive interface to SHA-2

Synopsis

Documentation

data Length Source

Constructors

SHA256 
SHA384 
SHA512 

unsafeUpdateCtx :: SHACtx -> ByteString -> IO ()Source

Heads up: Calling this function after calling finalizeCtx is likely to result in crashes, therefore unsafe.

unsafeFinalizeCtx :: SHACtx -> IO ByteStringSource

After calling this, you must not call either unsafeUpdateCtx or unsafeFinalizeCtx again. (On the same context)

showBSasHex :: ByteString -> StringSource

Converts a ByteString to hexadeximal string format