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

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

Crypto.Hash.SHA384

Contents

Description

A module containing SHA384 bindings

Synopsis

Documentation

newtype Ctx

Constructors

Ctx ByteString 

Instances

data SHA384

Deprecated: Future cryptohash versions will not export crypto-api hash instances here.you can either : - carry using cryptoapi types and definitions by using the cryptohash-cryptoapi package and importing Crypto.Hash.CryptoAPI instead of Crypto.Hash.SHA384. - use cryptohash's centralized API by importing Crypto.Hash

Incremental hashing Functions

init :: Ctx

init a context

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