@@ -64,10 +64,10 @@ public static byte[] decrypt(final byte[] key, final byte[] nonce, final byte[]
6464 /**
6565 * Performs the core ChaCha20 processing (XOR with keystream).
6666 *
67- * @param key The 32-byte key.
68- * @param nonce The 12-byte nonce.
69- * @param data Plaintext or Ciphertext.
70- * @param counter The initial block counter.
67+ * @param key The 32-byte key.
68+ * @param nonce The 12-byte nonce.
69+ * @param data Plaintext or Ciphertext.
70+ * @param counter The initial block counter.
7171 * @return The result of XORing data with the generated keystream.
7272 */
7373 private static byte [] process (final byte [] key , final byte [] nonce , final byte [] data , final int counter ) {
@@ -92,10 +92,10 @@ private static byte[] process(final byte[] key, final byte[] nonce, final byte[]
9292 /**
9393 * Generates a 64-byte ChaCha20 keystream block.
9494 *
95- * @param key The 32-byte key.
96- * @param nonce The 12-byte nonce.
97- * @param counter The block counter.
98- * @param output The 64-byte array to store the generated block.
95+ * @param key The 32-byte key.
96+ * @param nonce The 12-byte nonce.
97+ * @param counter The block counter.
98+ * @param output The 64-byte array to store the generated block.
9999 */
100100 private static void generateChaCha20Block (final byte [] key , final byte [] nonce , final int counter , final byte [] output ) {
101101 int [] state = initializeState (key , nonce , counter );
0 commit comments