what-the-bank/sources/org/bouncycastle/pqc/crypto/newhope/ChaCha20.java

19 lines
649 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.pqc.crypto.newhope;
import org.bouncycastle.crypto.engines.ChaChaEngine;
import org.bouncycastle.crypto.params.KeyParameter;
import org.bouncycastle.crypto.params.ParametersWithIV;
/* loaded from: classes6.dex */
class ChaCha20 {
/* JADX INFO: Access modifiers changed from: package-private */
public static void process(byte[] bArr, byte[] bArr2, byte[] bArr3, int i, int i2) {
ChaChaEngine chaChaEngine = new ChaChaEngine(20);
chaChaEngine.init(true, new ParametersWithIV(new KeyParameter(bArr), bArr2));
chaChaEngine.processBytes(bArr3, i, i2, bArr3, i);
}
ChaCha20() {
}
}