cryptohash-0.11.0: collection of crypto hashes, fast, pure and practical

Portabilityunknown
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellTrustworthy

Crypto.Hash.SHA512

Contents

Description

A module containing SHA512 bindings

Synopsis

Documentation

newtype Ctx Source

SHA512 Context

Constructors

Ctx ByteString 

Incremental hashing Functions

init :: CtxSource

init a context

init_t :: Int -> CtxSource

init a context using FIPS 180-4 for truncated SHA512

update :: Ctx -> ByteString -> CtxSource

update a context with a bytestring

updates :: Ctx -> [ByteString] -> CtxSource

updates a context with multiples bytestring

finalize :: Ctx -> ByteStringSource

finalize the context into a digest bytestring

Single Pass hashing

hash :: ByteString -> ByteStringSource

hash a strict bytestring into a digest bytestring

hashlazy :: ByteString -> ByteStringSource

hash a lazy bytestring into a digest bytestring