raaz-0.2.0: The raaz cryptographic library.

Safe HaskellNone
LanguageHaskell2010

Raaz.Hash.Sha384

Contents

Description

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

Synopsis

The SHA384 cryptographic hash

sha384 :: PureByteSource src => src -> SHA384 Source #

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

sha384File :: FilePath -> IO SHA384 Source #

Compute the sha384 hash of a file.

sha384Source :: ByteSource src => src -> IO SHA384 Source #

Compute the sha384 hash of a general byte source.

HMAC computation using SHA384

hmacSha384 Source #

Arguments

:: PureByteSource src 
=> Key (HMAC SHA384)

Key to use

-> src

pure source whose hmac is to be computed

-> HMAC SHA384 

Compute the message authentication code using hmac-sha384.

hmacSha384File Source #

Arguments

:: Key (HMAC SHA384)

Key to use

-> FilePath

File whose hmac is to be computed

-> IO (HMAC SHA384) 

Compute the message authentication code for a file.

hmacSha384Source :: ByteSource src => Key (HMAC SHA384) -> src -> IO (HMAC SHA384) Source #

Compute the message authetication code for a generic byte source.