Crypto.Hash.SHA224

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

Contents

- Incremental hashing Functions
- Single Pass hashing

Description

A module containing SHA224 bindings

Synopsis

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

# Documentation

data Ctx #

Constructors

Ctx !ByteString |

Instances

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

data SHA224 #

Instances

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

# 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