I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit a3939122 authored by Retkam's avatar Retkam
Browse files

Fix ChaCha20::encrypt

parent 20f414c7
No related branches found
No related tags found
1 merge request!72Fix wrong arguments order in ChaCha20 encrypt
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment