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

Contents

Description

Warning: this implementation is not SHA3 as standardized, but SHA3 as submitted before standardisation (Keccak)

A module containing SHA3 bindings

WARNING: this implementation is not SHA3 as standardize, but SHA3 as submitted before standardisation. also known at the Keccak.

A matching implementation is available as Keccak in cryptonite for people that are using the pre-standard SHA3.

do not use.

Synopsis

Documentation

newtype Ctx Source

SHA3 Context

Constructors

Ctx ByteString 

Incremental hashing Functions

init :: Int -> 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 :: 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