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.MD2

Contents

Description

A module containing MD2 bindings

Synopsis

Documentation

newtype Ctx Source

Constructors

Ctx ByteString 

Instances

data MD2 Source

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.MD2. - use cryptohash's centralized API by importing Crypto.Hash

Incremental hashing Functions

init :: Ctx Source

init a context

update :: Ctx -> ByteString -> Ctx Source

update a context with a bytestring

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

updates a context with multiples bytestring

finalize :: Ctx -> ByteString Source

finalize the context into a digest bytestring

Single Pass hashing

hash :: ByteString -> ByteString Source

hash a strict bytestring into a digest bytestring

hashlazy :: ByteString -> ByteString Source

hash a lazy bytestring into a digest bytestring