From d51da9e22513a73aee8f9815fbeaa7dbfc43141f Mon Sep 17 00:00:00 2001 From: zzz Date: Fri, 10 Jan 2025 15:13:32 -0500 Subject: [PATCH] Crypto: Remove unused Chacha method --- .../noise/crypto/chacha20/ChaChaCore.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/core/java/src/com/southernstorm/noise/crypto/chacha20/ChaChaCore.java b/core/java/src/com/southernstorm/noise/crypto/chacha20/ChaChaCore.java index aca2a3d9c..53bd58567 100644 --- a/core/java/src/com/southernstorm/noise/crypto/chacha20/ChaChaCore.java +++ b/core/java/src/com/southernstorm/noise/crypto/chacha20/ChaChaCore.java @@ -126,23 +126,6 @@ public final class ChaChaCore { output[15] = (int)(iv >> 32); } - /** - * Initializes the 64-bit initialization vector and counter in a ChaCha20 block. - * - * @param output The output block, which must consist of at - * least 16 words and must have been initialized by initKey256() - * or initKey128(). - * @param iv The 64-bit initialization vector value. - * @param counter The 64-bit counter value. - */ - public static void initIV(int[] output, long iv, long counter) - { - output[12] = (int)counter; - output[13] = (int)(counter >> 32); - output[14] = (int)iv; - output[15] = (int)(iv >> 32); - } - private static int leftRotate16(int v) { return v << 16 | (v >>> 16);