hashing-0.1.0.0: Initial project template from stack

Safe HaskellNone
LanguageHaskell2010

Crypto.Hash

Description

pure hash interface, supported hash algorithms:

  • SHA1
  • SHA224/SHA256
  • SHA384/SHA512
  • MD5
  • Whirlpool

NOTE: performance is just about 1 / 5 - 1 / 15 of C/ASM implementations.

Synopsis

Documentation

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 SHA1 Source # 
HashAlgorithm SHA224 Source # 
HashAlgorithm SHA256 Source # 
HashAlgorithm SHA384 Source # 
HashAlgorithm SHA512 Source # 
HashAlgorithm MD5 Source # 
HashAlgorithm Whirlpool Source # 

hash :: HashAlgorithm a => ByteString -> a Source #

Hash strict byte string

hashLazy :: HashAlgorithm a => ByteString -> a Source #

Hash lazy byte string