SHA2-0.1.1: Fast, incremental SHA hashing for bytestringsSource codeContentsIndex
Codec.Digest.SHA.IO
Description
A primitive interface to SHA-2
Synopsis
data Length
= SHA256
| SHA384
| SHA512
data SHACtx
newCtx :: Length -> IO SHACtx
unsafeUpdateCtx :: SHACtx -> ByteString -> IO ()
unsafeFinalizeCtx :: SHACtx -> IO ByteString
showBSasHex :: ByteString -> String
Documentation
data Length Source
Constructors
SHA256
SHA384
SHA512
data SHACtx Source
newCtx :: Length -> IO SHACtxSource
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
Produced by Haddock version 2.6.0