Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exposes combinators to compute the SHA384 hash and the associated HMAC for some common types.
- data SHA384
- sha384 :: PureByteSource src => src -> SHA384
- sha384File :: FilePath -> IO SHA384
- sha384Source :: ByteSource src => src -> IO SHA384
- hmacSha384 :: PureByteSource src => Key (HMAC SHA384) -> src -> HMAC SHA384
- hmacSha384File :: Key (HMAC SHA384) -> FilePath -> IO (HMAC SHA384)
- hmacSha384Source :: ByteSource src => Key (HMAC SHA384) -> src -> IO (HMAC SHA384)
The SHA384 cryptographic hash
The Sha384 hash value.
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.
sha384Source :: ByteSource src => src -> IO SHA384 Source #
Compute the sha384 hash of a general byte source.
HMAC computation using SHA384
:: 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.
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.