raaz-0.2.2: The raaz cryptographic library.
Safe HaskellNone
LanguageHaskell2010

Raaz.Hash.Sha384

Description

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

Synopsis

The SHA384 cryptographic hash

data SHA384 Source #

The Sha384 hash value.

Instances

Instances details
Eq SHA384 Source # 
Instance details

Defined in Raaz.Hash.Sha384.Internal

Methods

(==) :: SHA384 -> SHA384 -> Bool #

(/=) :: SHA384 -> SHA384 -> Bool #

Show SHA384 Source # 
Instance details

Defined in Raaz.Hash.Sha384.Internal

IsString SHA384 Source # 
Instance details

Defined in Raaz.Hash.Sha384.Internal

Methods

fromString :: String -> SHA384 #

Storable SHA384 Source # 
Instance details

Defined in Raaz.Hash.Sha384.Internal

Equality SHA384 Source # 
Instance details

Defined in Raaz.Hash.Sha384.Internal

Methods

eq :: SHA384 -> SHA384 -> Result Source #

EndianStore SHA384 Source # 
Instance details

Defined in Raaz.Hash.Sha384.Internal

Encodable SHA384 Source # 
Instance details

Defined in Raaz.Hash.Sha384.Internal

Recommendation SHA384 Source #

Recommended implementation for SHA384.

Instance details

Defined in Raaz.Hash.Sha384.Recommendation

Primitive SHA384 Source # 
Instance details

Defined in Raaz.Hash.Sha384.Internal

Associated Types

type Implementation SHA384 Source #

Hash SHA384 Source # 
Instance details

Defined in Raaz.Hash.Sha384.Internal

type Implementation SHA384 Source # 
Instance details

Defined in Raaz.Hash.Sha384.Internal

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.