Skip to content

Commit 33cb104

Browse files
author
Thomas M. DuBuisson
committed
Re-organize the exceptions module wrt documentation.
1 parent 8df1a02 commit 33cb104

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

Crypto/Classes/Exceptions.hs

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,34 @@
55
-- NB This module is experimental and might go away or be re-arranged.
66
{-# LANGUAGE DeriveDataTypeable #-}
77
module Crypto.Classes.Exceptions
8-
( C.Hash(..)
8+
( -- * Classes
9+
C.Hash(..), C.AsymCipher, R.CryptoRandomGen, C.BlockCipher
10+
-- * Hashing Operations
911
, 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
1923
, C.ecb, C.unEcb, C.cbc, C.unCbc, C.ctr, C.unCtr, C.ctrLazy, C.unCtrLazy
2024
, C.cfb, C.unCfb, C.ofb, C.unOfb, C.cbcLazy, C.unCbcLazy, C.sivLazy, C.unSivLazy
2125
, C.siv, C.unSiv, C.ecbLazy, C.unEcbLazy, C.cfbLazy, C.unCfbLazy, C.ofbLazy
2226
, C.unOfbLazy
23-
-- Wrapped functions
24-
, buildKey, getIV, buildKeyGen
25-
, buildKeyPair, encryptAsym, decryptAsym
27+
-- * RNG Operations
2628
, 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
2736
) where
2837

2938
import qualified Crypto.Random as R

crypto-api.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: crypto-api
2-
version: 0.13.2
2+
version: 0.13.3
33
license: BSD3
44
license-file: LICENSE
55
copyright: Thomas DuBuisson <[email protected]>

0 commit comments

Comments
 (0)