| License | BSD-style |
|---|---|
| Maintainer | Vincent Hanquez <vincent@snarc.org> |
| Stability | experimental |
| Portability | unknown |
| Safe Haskell | Trustworthy |
| Language | Haskell98 |
Crypto.MAC.SHA3
Description
provide a simple SHA3 MAC mechanism with
mac = hash(key|message)
Documentation
SHA3_512 MAC
Constructors
| MAC512 | |
Fields | |
Instances
| Byteable MAC512 Source # | |
Defined in Crypto.MAC.SHA3 Methods toBytes :: MAC512 -> ByteString byteableLength :: MAC512 -> Int withBytePtr :: MAC512 -> (Ptr Word8 -> IO b) -> IO b | |
| Eq MAC512 Source # | |
SHA3_384 MAC
Constructors
| MAC384 | |
Fields | |
Instances
| Byteable MAC384 Source # | |
Defined in Crypto.MAC.SHA3 Methods toBytes :: MAC384 -> ByteString byteableLength :: MAC384 -> Int withBytePtr :: MAC384 -> (Ptr Word8 -> IO b) -> IO b | |
| Eq MAC384 Source # | |
SHA3_256 MAC
Constructors
| MAC256 | |
Fields | |
Instances
| Byteable MAC256 Source # | |
Defined in Crypto.MAC.SHA3 Methods toBytes :: MAC256 -> ByteString byteableLength :: MAC256 -> Int withBytePtr :: MAC256 -> (Ptr Word8 -> IO b) -> IO b | |
| Eq MAC256 Source # | |
SHA3_224 MAC
Constructors
| MAC224 | |
Fields | |
Instances
| Byteable MAC224 Source # | |
Defined in Crypto.MAC.SHA3 Methods toBytes :: MAC224 -> ByteString byteableLength :: MAC224 -> Int withBytePtr :: MAC224 -> (Ptr Word8 -> IO b) -> IO b | |
| Eq MAC224 Source # | |
Arguments
| :: ByteString | secret |
| -> ByteString | message |
| -> MAC512 |
compute a MAC using a simple SHA3_512 key|msg
Arguments
| :: ByteString | secret |
| -> ByteString | message |
| -> MAC384 |
compute a MAC using a simple SHA3_384 key|msg
Arguments
| :: ByteString | secret |
| -> ByteString | message |
| -> MAC256 |
compute a MAC using a simple SHA3_256 key|msg