Crypto.Hash.Whirlpool

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

License | BSD-style
Maintainer | Vincent Hanquez <vincent@snarc.org>
Stability | experimental
Portability | unknown
Safe Haskell | Trustworthy
Language | Haskell98

Crypto.Hash.Whirlpool

Contents

- Incremental hashing Functions
- Single Pass hashing

Description

A module containing Whirlpool bindings

Synopsis

- data Ctx = Ctx !ByteString
- data Whirlpool
- init :: Ctx
- update :: Ctx -> ByteString -> Ctx
- finalize :: Ctx -> ByteString
- hash :: ByteString -> ByteString
- hashlazy :: ByteString -> ByteString

# Documentation

data Ctx #

Constructors

Ctx !ByteString |

Instances

Hash Ctx Whirlpool # |
Methods outputLength :: Tagged * Whirlpool BitLength # blockLength :: Tagged * Whirlpool BitLength # initialCtx :: Ctx # updateCtx :: Ctx -> ByteString -> Ctx # finalize :: Ctx -> ByteString -> Whirlpool # hash :: ByteString -> Whirlpool # hash' :: ByteString -> Whirlpool #

data Whirlpool #

Instances

Eq Whirlpool # |
Methods (==) :: Whirlpool -> Whirlpool -> Bool # (/=) :: Whirlpool -> Whirlpool -> Bool #
Ord Whirlpool # |
Methods compare :: Whirlpool -> Whirlpool -> Ordering # (<) :: Whirlpool -> Whirlpool -> Bool # (<=) :: Whirlpool -> Whirlpool -> Bool # (>) :: Whirlpool -> Whirlpool -> Bool # (>=) :: Whirlpool -> Whirlpool -> Bool # max :: Whirlpool -> Whirlpool -> Whirlpool # min :: Whirlpool -> Whirlpool -> Whirlpool #
Show Whirlpool # |
Methods showsPrec :: Int -> Whirlpool -> ShowS # show :: Whirlpool -> String # showList :: [Whirlpool] -> ShowS #
Serialize Whirlpool # |
Methods put :: Putter Whirlpool # get :: Get Whirlpool #
Hash Ctx Whirlpool # |
Methods outputLength :: Tagged * Whirlpool BitLength # blockLength :: Tagged * Whirlpool BitLength # initialCtx :: Ctx # updateCtx :: Ctx -> ByteString -> Ctx # finalize :: Ctx -> ByteString -> Whirlpool # hash :: ByteString -> Whirlpool # hash' :: ByteString -> Whirlpool #

# Incremental hashing Functions

init :: Ctx #

init a context

update :: Ctx -> ByteString -> Ctx #

update a context with a 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