MissingH-1.1.0.2: Large utility librarySource codeContentsIndex
Data.Hash.MD5
Portabilityportable
Stabilityprovisional
MaintainerIan Lynagh <igloo@earth.li>
Description

Generation of MD5sums

Written by Ian Lynagh, igloo@earth.li

Synopsis
md5 :: MD5 a => a -> ABCD
md5s :: MD5 a => a -> String
md5i :: MD5 a => a -> Integer
class MD5 a where
get_next :: a -> ([Word32], Int, a)
len_pad :: Zord64 -> a -> a
finished :: a -> Bool
newtype ABCD = ABCD (Word32, Word32, Word32, Word32)
type Zord64 = Word64
newtype Str = Str String
newtype BoolList = BoolList [Bool]
newtype WordList = WordList ([Word32], Zord64)
Documentation
md5 :: MD5 a => a -> ABCDSource
The simplest function, gives you the MD5 of a string as 4-tuple of 32bit words.
md5s :: MD5 a => a -> StringSource
Returns a hex number ala the md5sum program.
md5i :: MD5 a => a -> IntegerSource
Returns an integer equivalent to hex number from md5s.
class MD5 a whereSource
Anything we want to work out the MD5 of must be an instance of class MD5
Methods
get_next :: a -> ([Word32], Int, a)Source
len_pad :: Zord64 -> a -> aSource
finished :: a -> BoolSource
show/hide Instances
newtype ABCD Source
Constructors
ABCD (Word32, Word32, Word32, Word32)
show/hide Instances
type Zord64 = Word64Source
newtype Str Source
Constructors
Str String
show/hide Instances
newtype BoolList Source
Constructors
BoolList [Bool]
show/hide Instances
newtype WordList Source
Constructors
WordList ([Word32], Zord64)
show/hide Instances
Produced by Haddock version 2.6.0