Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exposes combinators to compute the SHA224 hash and the associated HMAC for some common types.
Synopsis
- data SHA224
- sha224 :: PureByteSource src => src -> SHA224
- sha224File :: FilePath -> IO SHA224
- sha224Source :: ByteSource src => src -> IO SHA224
- hmacSha224 :: PureByteSource src => Key (HMAC SHA224) -> src -> HMAC SHA224
- hmacSha224File :: Key (HMAC SHA224) -> FilePath -> IO (HMAC SHA224)
- hmacSha224Source :: ByteSource src => Key (HMAC SHA224) -> src -> IO (HMAC SHA224)
The SHA224 cryptographic hash
Sha224 hash value which consist of 7 32bit words.
Instances
Eq SHA224 Source # | |
Show SHA224 Source # | |
IsString SHA224 Source # | |
Defined in Raaz.Hash.Sha224.Internal fromString :: String -> SHA224 # | |
Storable SHA224 Source # | |
Equality SHA224 Source # | |
EndianStore SHA224 Source # | |
Encodable SHA224 Source # | |
Defined in Raaz.Hash.Sha224.Internal toByteString :: SHA224 -> ByteString Source # fromByteString :: ByteString -> Maybe SHA224 Source # | |
Recommendation SHA224 Source # | Recommended implementation for SHA224. |
Defined in Raaz.Hash.Sha224.Recommendation recommended :: SHA224 -> Implementation SHA224 Source # | |
Primitive SHA224 Source # | |
Hash SHA224 Source # | |
Defined in Raaz.Hash.Sha224.Internal | |
type Implementation SHA224 Source # | |
Defined in Raaz.Hash.Sha224.Internal |
sha224 :: PureByteSource src => src -> SHA224 Source #
Compute the sha224 hash of an instance of PureByteSource
. Use
this for computing the sha224 hash of a strict or lazy byte string.
sha224Source :: ByteSource src => src -> IO SHA224 Source #
Compute the sha224 hash of a general byte source.
HMAC computation using SHA224
:: PureByteSource src | |
=> Key (HMAC SHA224) | Key to use |
-> src | pure source whose hmac is to be computed |
-> HMAC SHA224 |
Compute the message authentication code using hmac-sha224.
Compute the message authentication code for a file.
hmacSha224Source :: ByteSource src => Key (HMAC SHA224) -> src -> IO (HMAC SHA224) Source #
Compute the message authetication code for a generic byte source.