digest-0.0.2.1: CRC32 and Adler32 hashes for bytestrings

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

Data.Digest.CRC32

Description

CRC32 wrapper

Synopsis

- class CRC32 a
- crc32 :: CRC32 a => a -> Word32
- crc32Update :: CRC32 a => Word32 -> a -> Word32

# Documentation

class CRC32 a Source #

The class of values for which CRC32 may be computed

Minimal complete definition

crc32Update

#### Instances

Instances details

CRC32 ByteString Source # |
Instance details Defined in Data.Digest.CRC32 Methods crc32 :: ByteString -> Word32 Source # crc32Update :: Word32 -> ByteString -> Word32 Source #
CRC32 ByteString Source # |
Instance details Defined in Data.Digest.CRC32 Methods crc32 :: ByteString -> Word32 Source # crc32Update :: Word32 -> ByteString -> Word32 Source #
CRC32 [Word8] Source # |
Instance details Defined in Data.Digest.CRC32 Methods crc32 :: [Word8] -> Word32 Source # crc32Update :: Word32 -> [Word8] -> Word32 Source #

crc32 :: CRC32 a => a -> Word32 Source #

Compute CRC32 checksum

crc32Update :: CRC32 a => Word32 -> a -> Word32 Source #

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