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:
zzz committed 2026-11-13 08:02:19 -05:00
1 parent a1a444c960
commit bebdb3aacc
1 file changed
+1 -1
+1 -1
View File
@@ -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);