Crypto.Hash.Skein512

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

Contents

- Incremental hashing Functions
- Single Pass hashing

Description

A module containing Skein512 bindings

Synopsis

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

# Documentation

data Ctx #

Constructors

Ctx !ByteString |

Instances

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

data Skein512 #

Instances

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

# Incremental hashing Functions

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

hash a strict bytestring into a digest bytestring

hashlazy :: Int -> ByteString -> ByteString #

hash a lazy bytestring into a digest bytestring