raaz-0.0.2: The raaz cryptographic library.

Safe HaskellNone

Raaz.Hash.Sha224

Contents

Description

This module exposes combinators to compute the SHA224 hash and the associated HMAC for some common types.

Synopsis

The SHA224 cryptographic hash

sha224 :: PureByteSource src => src -> SHA224Source

Compute the sha224 hash of an instance of PureByteSource. Use this for computing the sha224 hash of a strict or lazy byte string.

sha224File :: FilePath -> IO SHA224Source

Compute the sha224 hash of a file.

sha224Source :: ByteSource src => src -> IO SHA224Source

Compute the sha224 hash of a general byte source.

HMAC computation using SHA224

hmacSha224Source

Arguments

:: 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.

hmacSha224FileSource

Arguments

:: Key (HMAC SHA224)

Key to use

-> FilePath

File whose hmac is to be computed

-> IO (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.