digest-0.0.1.2: Various cryptographic hashes for bytestrings; CRC32 and Adler32 for now.

Copyright | (c) 2008 Eugene Kirpichov
License | BSD-style
Maintainer | ekirpichov@gmail.com
Stability | experimental
Portability | portable (H98 + FFI)
Safe Haskell | None
Language | Haskell98

Data.Digest.Adler32

Description

Adler32 wrapper

Synopsis

- class Adler32 a
- adler32 :: Adler32 a => a -> Word32
- adler32Update :: Adler32 a => Word32 -> a -> Word32

# Documentation

class Adler32 a Source #

The class of values for which Adler32 may be computed

Minimal complete definition

adler32Update

#### Instances

Instances details

Adler32 ByteString Source # |
Instance details Defined in Data.Digest.Adler32 Methods adler32 :: ByteString -> Word32 Source # adler32Update :: Word32 -> ByteString -> Word32 Source #
Adler32 ByteString Source # |
Instance details Defined in Data.Digest.Adler32 Methods adler32 :: ByteString -> Word32 Source # adler32Update :: Word32 -> ByteString -> Word32 Source #
Adler32 [Word8] Source # |
Instance details Defined in Data.Digest.Adler32 Methods adler32 :: [Word8] -> Word32 Source # adler32Update :: Word32 -> [Word8] -> Word32 Source #

adler32 :: Adler32 a => a -> Word32 Source #

Compute Adler32 checksum

adler32Update :: Adler32 a => Word32 -> a -> Word32 Source #

Given the Adler32 checksum of a string, compute Adler32 of its concatenation with another string (t.i., incrementally update the Adler32 hash value).