cryptohash-0.11.6: collection of crypto hashes, fast, pure and practical

Portabilityunknown
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellTrustworthy

Crypto.MAC.SHA3

Description

provide a simple SHA3 MAC mechanism with

 mac = hash(key|message)

Synopsis

Documentation

data MAC512 Source

SHA3_512 MAC

Constructors

MAC512 

Instances

data MAC384 Source

SHA3_384 MAC

Constructors

MAC384 

Instances

data MAC256 Source

SHA3_256 MAC

Constructors

MAC256 

Instances

data MAC224 Source

SHA3_224 MAC

Constructors

MAC224 

Instances

mac512Source

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC512 

compute a MAC using a simple SHA3_512 key|msg

mac384Source

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC384 

compute a MAC using a simple SHA3_384 key|msg

mac256Source

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC256 

compute a MAC using a simple SHA3_256 key|msg

mac224Source

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC224 

compute a MAC using a simple SHA3_224 key|msg