Crypto.Hash.Tiger

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

Contents

- Incremental hashing Functions
- Single Pass hashing

Description

A module containing Tiger bindings

Synopsis

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

# Documentation

data Ctx #

Constructors

Ctx !ByteString |

Instances

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

data Tiger #

Instances

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

# 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