Fix ChaCha20::encrypt

This commit is contained in:
天空Blond
2022-12-14 00:53:52 +08:00
parent 20f414c7fa
commit a393912213

View File

@@ -47,7 +47,7 @@ public final class ChaCha20 {
public static void encrypt(byte[] key, byte[] iv,
byte[] plaintext, int plaintextOffset,
byte[] ciphertext, int ciphertextOffset, int length) {
encrypt(key, iv, 0, ciphertext, ciphertextOffset, plaintext, plaintextOffset, length);
encrypt(key, iv, 0, plaintext, plaintextOffset, ciphertext, ciphertextOffset, length);
}
/**