|
5 | 5 | -- NB This module is experimental and might go away or be re-arranged.
|
6 | 6 | {-# LANGUAGE DeriveDataTypeable #-}
|
7 | 7 | module Crypto.Classes.Exceptions
|
8 |
| - ( C.Hash(..) |
| 8 | + ( -- * Classes |
| 9 | + C.Hash(..), C.AsymCipher, R.CryptoRandomGen, C.BlockCipher |
| 10 | + -- * Hashing Operations |
9 | 11 | , C.hashFunc', C.hashFunc
|
10 |
| - , C.BlockCipher, C.blockSize, C.encryptBlock, C.decryptBlock |
11 |
| - , C.keyLength |
12 |
| - , C.getIVIO, C.blockSizeBytes, C.keyLengthBytes, C.buildKeyIO |
13 |
| - , C.AsymCipher, C.publicKeyLength, C.privateKeyLength, C.buildKeyPairIO |
14 |
| - , C.Signing, C.signingKeyLength, C.verifyingKeyLength, C.verify |
15 |
| - , C.incIV, C.zeroIV, R.CryptoRandomGen, R.genSeedLength, R.reseedInfo, R.reseedPeriod, R.newGenIO |
16 |
| - -- Types |
17 |
| - , R.GenError(..), R.ReseedInfo(..), CipherError(..) |
18 |
| - -- Modes |
| 12 | + -- * Symmetric Cryptographic Operations |
| 13 | + -- ** Helpers |
| 14 | + , C.blockSize, C.blockSizeBytes |
| 15 | + , C.keyLength, C.keyLengthBytes |
| 16 | + , C.incIV |
| 17 | + -- ** Primitives |
| 18 | + , C.encryptBlock, C.decryptBlock |
| 19 | + -- * Key and IV construction |
| 20 | + , buildKey, C.buildKeyIO, buildKeyGen |
| 21 | + , getIV ,C.getIVIO, C.zeroIV |
| 22 | + -- ** Block Cipher Modes of Operation |
19 | 23 | , C.ecb, C.unEcb, C.cbc, C.unCbc, C.ctr, C.unCtr, C.ctrLazy, C.unCtrLazy
|
20 | 24 | , C.cfb, C.unCfb, C.ofb, C.unOfb, C.cbcLazy, C.unCbcLazy, C.sivLazy, C.unSivLazy
|
21 | 25 | , C.siv, C.unSiv, C.ecbLazy, C.unEcbLazy, C.cfbLazy, C.unCfbLazy, C.ofbLazy
|
22 | 26 | , C.unOfbLazy
|
23 |
| - -- Wrapped functions |
24 |
| - , buildKey, getIV, buildKeyGen |
25 |
| - , buildKeyPair, encryptAsym, decryptAsym |
| 27 | + -- * RNG Operations |
26 | 28 | , newGen, genBytes, genBytesWithEntropy, reseed, splitGen
|
| 29 | + , R.genSeedLength, R.reseedInfo, R.reseedPeriod, R.newGenIO |
| 30 | + -- * Info Types |
| 31 | + , R.GenError(..), R.ReseedInfo(..), CipherError(..) |
| 32 | + -- * Asymmetric cryptographic operations |
| 33 | + , buildKeyPair, encryptAsym, decryptAsym |
| 34 | + , C.Signing, C.signingKeyLength, C.verifyingKeyLength, C.verify |
| 35 | + , C.publicKeyLength, C.privateKeyLength, C.buildKeyPairIO |
27 | 36 | ) where
|
28 | 37 |
|
29 | 38 | import qualified Crypto.Random as R
|
|
0 commit comments