Crypto-4.2.5.2: Common Cryptographic Algorithms in Pure Haskell
Copyright(c) Russell O'Connor 2006
LicenseBSD-style (see the file ReadMe.tex)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Digest.SHA256

Description

Takes the SHA2 module supplied and wraps it so it takes [Octet] and returns [Octet] where the length of the result is always 32. and http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf.

Synopsis

Function Types

hash :: [Octet] -> [Octet] Source #

Take [Octet] and return [Octet] according to the standard. The length of the result is always 32 octets or 256 bits as required by the standard.