| Portability | Excellent |
|---|---|
| Stability | Stable |
| Maintainer | Vincent Hanquez <[email protected]> |
| Safe Haskell | None |
Crypto.Cipher.Tests
Contents
Description
- testBlockCipher :: BlockCipher a => KATs -> a -> Test
- testStreamCipher :: StreamCipher a => [KAT_Stream] -> a -> Test
- defaultKATs :: KATs
- defaultStreamKATs :: [KAT_Stream]
- data KATs = KATs {}
- data KAT_Stream = KAT_Stream {}
- data KAT_ECB = KAT_ECB {}
- data KAT_CBC = KAT_CBC {}
- data KAT_CTR = KAT_CTR {}
- data KAT_XTS = KAT_XTS {}
- data KAT_AEAD = KAT_AEAD {}
Documentation
testBlockCipher :: BlockCipher a => KATs -> a -> TestSource
Return tests for a specific blockcipher and a list of KATs
testStreamCipher :: StreamCipher a => [KAT_Stream] -> a -> TestSource
Return tests for a specific streamcipher and a list of KATs
KATs
the empty KATs
defaultStreamKATs :: [KAT_Stream]Source
the empty KATs for stream
all the KATs. use defaultKATs to prevent compilation error from future expansion of this data structure
Constructors
| KATs | |
ECB KAT
Constructors
| KAT_ECB | |
Fields
| |
CBC KAT
Constructors
| KAT_CBC | |
Fields
| |
CTR KAT
Constructors
| KAT_CTR | |
Fields
| |
XTS KAT
Constructors
| KAT_XTS | |
Fields
| |
AEAD KAT
Constructors
| KAT_AEAD | |
Fields
| |