hashing-0.1.0.1: A pure haskell library implements several hash algorithms.

Safe HaskellSafe
LanguageHaskell2010

Crypto.Hash.ADT

Synopsis

Documentation

data Context a Source #

Instances

Functor Context Source # 

Methods

fmap :: (a -> b) -> Context a -> Context b #

(<$) :: a -> Context b -> Context a #

Show a => Show (Context a) Source # 

Methods

showsPrec :: Int -> Context a -> ShowS #

show :: Context a -> String #

showList :: [Context a] -> ShowS #

class HashAlgorithm a where Source #

Hash algorithm interface

provides classic init/update/final API. however, user should call higher level API such as hash or hashLazy.

Instances

HashAlgorithm MD5 Source # 
HashAlgorithm SHA1 Source # 
HashAlgorithm SHA224 Source # 
HashAlgorithm SHA256 Source # 
HashAlgorithm SHA384 Source # 
HashAlgorithm SHA512 Source # 
HashAlgorithm Whirlpool Source # 

newtype Digest a Source #

Constructors

Digest String 

Instances

Show (Digest a) Source # 

Methods

showsPrec :: Int -> Digest a -> ShowS #

show :: Digest a -> String #

showList :: [Digest a] -> ShowS #