From bebdb3aacca40d2e0eb46a7f253ff18835749b97 Mon Sep 17 00:00:00 2001 From: zzz Date: Fri, 13 Nov 2026 08:02:19 -0500 Subject: [PATCH] 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. --- core/java/src/net/i2p/crypto/ChaCha20.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/src/net/i2p/crypto/ChaCha20.java b/core/java/src/net/i2p/crypto/ChaCha20.java index bee94c93f3..02252e2901 100644 --- a/core/java/src/net/i2p/crypto/ChaCha20.java +++ b/core/java/src/net/i2p/crypto/ChaCha20.java @@ -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);