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

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellTrustworthy
LanguageHaskell98

Crypto.Hash.SHA512t

Contents

Description

A module containing SHA512/t

Synopsis

Documentation

data Ctx Source

SHA512 Context with variable size output

Constructors

Ctx !Int !Ctx 

Incremental hashing Functions

init :: Int -> Ctx Source

init a context

update :: Ctx -> ByteString -> Ctx Source

update a context with a bytestring

finalize :: Ctx -> ByteString Source

finalize the context into a digest bytestring

Single Pass hashing

hash :: Int -> ByteString -> ByteString Source

hash a strict bytestring into a digest bytestring

hashlazy :: Int -> ByteString -> ByteString Source

hash a lazy bytestring into a digest bytestring