File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,9 @@ type BufferAlignment = 32
41
41
#endif
42
42
43
43
-- | The primitive for which the implementation is given
44
-
45
44
type Prim = ChaCha20
45
+
46
+ -- | The Internal memory associated with the ChaCha20 implementation.
46
47
data Internals
47
48
instance Memory Internals
48
49
Original file line number Diff line number Diff line change @@ -9,16 +9,24 @@ import Raaz.Primitive.ChaCha20.Internal
9
9
10
10
import qualified Implementation as Base
11
11
12
+ -- | Name of the implementation
12
13
name :: String
13
14
name = Base. name
14
15
16
+ -- | Then name of the primitive.
15
17
primName :: String
16
18
primName = " xchacha20"
17
19
20
+ -- | A description of what this implementation is about.
18
21
description :: String
19
22
description = Base. description ++ " This is the XChaCha variant."
20
23
24
+ -- | The underlying cryptographic primitive is the XChaCha20 cipher.
21
25
type Prim = XChaCha20
26
+
27
+ -- | The internal memory used by XChaCha20 implementation. It consists
28
+ -- of a copy of the key and the internals of the associated chaca20
29
+ -- implementation.
22
30
data Internals = XChaCha20Mem
23
31
{ copyOfKey :: MemoryCell (Key ChaCha20 )
24
32
, chacha20Internals :: Base. Internals
You can’t perform that action at this time.
0 commit comments