Crypto-4.2.5.1: Collects together existing Haskell cryptographic functions into a package

Copyright | (c) Dominic Steinitz 2007
License | BSD-style (see the file ReadMe.tex)
Maintainer | dominic.steinitz@blueyonder.co.uk
Stability | experimental
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Data.Digest.SHA1

Description

Take [Word8] and return Word160. See http://www.itl.nist.gov/fipspubs/fip180-1.htm for the specification.

# Documentation

data Word160 Source

Constructors

Word160 !Word32 !Word32 !Word32 !Word32 !Word32 |

Instances

Eq Word160 Source |
Show Word160 Source |

hash :: [Word8] -> Word160 Source

lift2 :: (Word32 -> Word32 -> Word32) -> Word160 -> Word160 -> Word160 Source

toInteger :: Word160 -> Integer Source