mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-11-23 15:32:11 +00:00
Crypto: Remove redundant hash in ChaCha20 wrapper (GH #220)
was already found and fixed in i2p+ This was in our wrapper code, not the core noise lib. The hash was there for debug logging, the log was commented out but not the hash. See GH PR for performance improvement table.
This commit is contained in:
1 file changed
+1
-1
@@ -115,7 +115,7 @@ public final class ChaCha20 {
|
||||
input[15] = (int) DataHelper.fromLongLE(iv, ivOffset + 8, 4);
|
||||
//System.out.println("initIV");
|
||||
//dumpBlock(input);
|
||||
ChaChaCore.hash(output, input);
|
||||
//ChaChaCore.hash(output, input);
|
||||
//int ctr = 1;
|
||||
//System.out.println("hash " + ctr);
|
||||
//dumpBlock(output);
|
||||
|
||||
Reference in new issue
Block a user