what-the-bank/sources/o/Vnw.java

40 lines
1.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.nio.ByteBuffer;
import java.security.GeneralSecurityException;
import java.security.InvalidKeyException;
/* loaded from: classes2.dex */
public final class Vnw extends AbstractC5396bsJ {
@Override // o.AbstractC5396bsJ
public final int b() {
return 12;
}
@Override // o.AbstractC5396bsJ
public final /* bridge */ /* synthetic */ byte[] c(byte[] bArr, ByteBuffer byteBuffer) throws GeneralSecurityException {
return super.c(bArr, byteBuffer);
}
@Override // o.AbstractC5396bsJ
public final /* bridge */ /* synthetic */ void e(ByteBuffer byteBuffer, byte[] bArr, byte[] bArr2) throws GeneralSecurityException {
super.e(byteBuffer, bArr, bArr2);
}
public Vnw(byte[] bArr, int i) throws InvalidKeyException {
super(bArr, i);
}
@Override // o.AbstractC5396bsJ
public final int[] e(int[] iArr, int i) {
if (iArr.length != 3) {
throw new IllegalArgumentException(String.format("ChaCha20 uses 96-bit nonces, but got a %d-bit nonce", Integer.valueOf(iArr.length << 5)));
}
int[] iArr2 = new int[16];
C11262eby.e(iArr2, this.c);
iArr2[12] = i;
System.arraycopy(iArr, 0, iArr2, 13, iArr.length);
return iArr2;
}
}