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

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellTrustworthy
LanguageHaskell98

Crypto.MAC.SHA3

Description

provide a simple SHA3 MAC mechanism with

mac = hash(key|message)

Synopsis

Documentation

data MAC512 #

SHA3_512 MAC

Constructors

MAC512 

Instances

data MAC384 #

SHA3_384 MAC

Constructors

MAC384 

Instances

data MAC256 #

SHA3_256 MAC

Constructors

MAC256 

Instances

data MAC224 #

SHA3_224 MAC

Constructors

MAC224 

Instances

mac512 #

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC512 

compute a MAC using a simple SHA3_512 key|msg

mac384 #

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC384 

compute a MAC using a simple SHA3_384 key|msg

mac256 #

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC256 

compute a MAC using a simple SHA3_256 key|msg

mac224 #

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC224 

compute a MAC using a simple SHA3_224 key|msg