Crypto.Hash.RIPEMD160

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

Contents

- Incremental hashing Functions
- Single Pass hashing

Description

A module containing RIPEMD160 bindings

Synopsis

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

# Documentation

data Ctx #

Constructors

Ctx !ByteString |

Instances

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

data RIPEMD160 #

Instances

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

# 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