Commit 5d15f34
committed
Use chacha6 and 16 bytes input
This version is incompatible with previous versions.
- The hash function is now chacha6 instead of chacha4.
- Input to chacha is 16 bytes instead of 8 bytes.
- All inputs for chacha are from the 16th to 31st bytes of WG message.
First byte is used as counter and incremented each time to generate
a new PRN.
Signed-off-by: Wei Chen <weichen302@gmail.com>1 parent 7f7e627 commit 5d15f34
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments