hashing-0.1.1.0: A pure haskell library implements several hash algorithms.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.Hash.ADT

Synopsis

Documentation

data Context a Source #

Instances

Instances details
Functor Context Source # 
Instance details

Defined in Crypto.Hash.ADT

Methods

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

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

Show a => Show (Context a) Source # 
Instance details

Defined in Crypto.Hash.ADT

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

Instances details
HashAlgorithm MD5 Source # 
Instance details

Defined in Crypto.Hash.MD5

HashAlgorithm SHA1 Source # 
Instance details

Defined in Crypto.Hash.SHA1

HashAlgorithm SHA224 Source # 
Instance details

Defined in Crypto.Hash.SHA256

HashAlgorithm SHA256 Source # 
Instance details

Defined in Crypto.Hash.SHA256

HashAlgorithm SHA384 Source # 
Instance details

Defined in Crypto.Hash.SHA512

HashAlgorithm SHA512 Source # 
Instance details

Defined in Crypto.Hash.SHA512

HashAlgorithm Whirlpool Source # 
Instance details

Defined in Crypto.Hash.Whirlpool

newtype Digest a Source #

Constructors

Digest String 

Instances

Instances details
Show (Digest a) Source # 
Instance details

Defined in Crypto.Hash.ADT

Methods

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

show :: Digest a -> String #

showList :: [Digest a] -> ShowS #