19 lines
649 B
Java
19 lines
649 B
Java
|
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() {
|
||
|
}
|
||
|
}
|