Copyright | (c) Russell O'Connor 2006 |
---|---|
License | BSD-style (see the file ReadMe.tex) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Implements SHA-256, SHA-384, SHA-512, and SHA-224 as defined in FIPS 180-2 http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf.
Synopsis
- sha224 :: (Bits a, Integral a) => [a] -> Hash224
- sha224Ascii :: String -> Hash224
- data Hash224
- sha256 :: (Bits a, Integral a) => [a] -> Hash256
- sha256Ascii :: String -> Hash256
- type Hash256 = Hash8 Word32
- sha384 :: (Bits a, Integral a) => [a] -> Hash384
- sha384Ascii :: String -> Hash384
- data Hash384
- sha512 :: (Bits a, Integral a) => [a] -> Hash512
- sha512Ascii :: String -> Hash512
- type Hash512 = Hash8 Word64
- toOctets :: Hash h => h -> [Word8]
SHA-224
sha224Ascii :: String -> Hash224 Source #
sha224Ascii
assumes that all characters of the strings are
ISO-latin-1 characters. ie. each characters fits in one octet.
SHA-256
sha256Ascii :: String -> Hash256 Source #
sha256Ascii
assumes that all characters of the strings are
ISO-latin-1 characters. ie. each characters fits in one octet.
SHA-384
sha384Ascii :: String -> Hash384 Source #
sha384Ascii
assumes that all characters of the strings are
ISO-latin-1 characters. ie. each characters fits in one octet.
SHA-512
sha512Ascii :: String -> Hash512 Source #
sha512Ascii
assumes that all characters of the strings are
ISO-latin-1 characters. ie. each characters fits in one octet.