License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unknown |
Safe Haskell | Trustworthy |
Language | Haskell98 |
provide a simple SHA3 MAC mechanism with
mac = hash(key|message)
- data MAC512 = MAC512 {}
- data MAC384 = MAC384 {}
- data MAC256 = MAC256 {}
- data MAC224 = MAC224 {}
- mac512 :: ByteString -> ByteString -> MAC512
- mac384 :: ByteString -> ByteString -> MAC384
- mac256 :: ByteString -> ByteString -> MAC256
- mac224 :: ByteString -> ByteString -> MAC224
Documentation
SHA3_512 MAC
SHA3_384 MAC
SHA3_256 MAC
SHA3_224 MAC
:: ByteString | secret |
-> ByteString | message |
-> MAC512 |
compute a MAC using a simple SHA3_512 key|msg
:: ByteString | secret |
-> ByteString | message |
-> MAC384 |
compute a MAC using a simple SHA3_384 key|msg
:: ByteString | secret |
-> ByteString | message |
-> MAC256 |
compute a MAC using a simple SHA3_256 key|msg
:: ByteString | secret |
-> ByteString | message |
-> MAC224 |
compute a MAC using a simple SHA3_224 key|msg