Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | Trustworthy |
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
:: 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