cryptohash-0.8.2: 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

Constructors

Ctx ByteString 

data SHA512

Instances

Incremental hashing Functions

init :: Ctx

init a context

init_t :: Int -> Ctx

init a context using FIPS 180-4 for truncated SHA512

update :: Ctx -> ByteString -> Ctx

update a context with a bytestring

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

updates a context with multiples bytestring

finalize :: Ctx -> ByteString

finalize the context into a digest bytestring

Single Pass hashing

hash :: ByteString -> ByteString

hash a strict bytestring into a digest bytestring

hashlazy :: ByteString -> ByteString

hash a lazy bytestring into a digest bytestring