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);