cryptohash-0.11.9: collection of crypto hashes, fast, pure and practical
LicenseBSD-style
MaintainerVincent Hanquez <[email protected]>
Stabilityexperimental
Portabilityunknown
Safe HaskellTrustworthy
LanguageHaskell98

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

Instances details
Byteable MAC512 Source # 
Instance details

Defined in Crypto.MAC.SHA3

Eq MAC512 Source # 
Instance details

Defined in Crypto.MAC.SHA3

Methods

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

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

data MAC384 Source #

SHA3_384 MAC

Constructors

MAC384 

Instances

Instances details
Byteable MAC384 Source # 
Instance details

Defined in Crypto.MAC.SHA3

Eq MAC384 Source # 
Instance details

Defined in Crypto.MAC.SHA3

Methods

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

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

data MAC256 Source #

SHA3_256 MAC

Constructors

MAC256 

Instances

Instances details
Byteable MAC256 Source # 
Instance details

Defined in Crypto.MAC.SHA3

Eq MAC256 Source # 
Instance details

Defined in Crypto.MAC.SHA3

Methods

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

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

data MAC224 Source #

SHA3_224 MAC

Constructors

MAC224 

Instances

Instances details
Byteable MAC224 Source # 
Instance details

Defined in Crypto.MAC.SHA3

Eq MAC224 Source # 
Instance details

Defined in Crypto.MAC.SHA3

Methods

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

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

mac512 Source #

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC512 

compute a MAC using a simple SHA3_512 key|msg

mac384 Source #

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC384 

compute a MAC using a simple SHA3_384 key|msg

mac256 Source #

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC256 

compute a MAC using a simple SHA3_256 key|msg

mac224 Source #

Arguments

:: ByteString

secret

-> ByteString

message

-> MAC224 

compute a MAC using a simple SHA3_224 key|msg