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

72 lines
2.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
/* renamed from: o.eby, reason: case insensitive filesystem */
/* loaded from: classes2.dex */
final class C11262eby {
private static final int[] c;
/* JADX INFO: Access modifiers changed from: package-private */
public static void e(int[] iArr, int[] iArr2) {
int[] iArr3 = c;
System.arraycopy(iArr3, 0, iArr, 0, iArr3.length);
System.arraycopy(iArr2, 0, iArr, iArr3.length, 8);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void c(int[] iArr) {
for (int i = 0; i < 10; i++) {
a(iArr, 0, 4, 8, 12);
a(iArr, 1, 5, 9, 13);
a(iArr, 2, 6, 10, 14);
a(iArr, 3, 7, 11, 15);
a(iArr, 0, 5, 10, 15);
a(iArr, 1, 6, 11, 12);
a(iArr, 2, 7, 8, 13);
a(iArr, 3, 4, 9, 14);
}
}
private static void a(int[] iArr, int i, int i2, int i3, int i4) {
int i5 = iArr[i] + iArr[i2];
iArr[i] = i5;
int i6 = i5 ^ iArr[i4];
int i7 = (i6 << 16) | (i6 >>> (-16));
iArr[i4] = i7;
int i8 = iArr[i3] + i7;
iArr[i3] = i8;
int i9 = iArr[i2] ^ i8;
int i10 = (i9 << 12) | (i9 >>> (-12));
iArr[i2] = i10;
int i11 = iArr[i] + i10;
iArr[i] = i11;
int i12 = iArr[i4] ^ i11;
int i13 = (i12 << 8) | (i12 >>> (-8));
iArr[i4] = i13;
int i14 = iArr[i3] + i13;
iArr[i3] = i14;
int i15 = iArr[i2] ^ i14;
iArr[i2] = (i15 << 7) | (i15 >>> (-7));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int[] d(byte[] bArr) {
IntBuffer asIntBuffer = ByteBuffer.wrap(bArr).order(ByteOrder.LITTLE_ENDIAN).asIntBuffer();
int[] iArr = new int[asIntBuffer.remaining()];
asIntBuffer.get(iArr);
return iArr;
}
static {
IntBuffer asIntBuffer = ByteBuffer.wrap(new byte[]{101, 120, ISO7816.INS_MANAGE_CHANNEL, 97, 110, ISOFileInfo.FMD_BYTE, 32, 51, ISO7816.INS_INCREASE, 45, ISOFileInfo.FCP_BYTE, 121, 116, 101, 32, 107}).order(ByteOrder.LITTLE_ENDIAN).asIntBuffer();
int[] iArr = new int[asIntBuffer.remaining()];
asIntBuffer.get(iArr);
c = iArr;
}
}