468 lines
16 KiB
Java
468 lines
16 KiB
Java
|
package o;
|
||
|
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import java.lang.reflect.Method;
|
||
|
import java.text.DecimalFormat;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.Locale;
|
||
|
import javax.crypto.Cipher;
|
||
|
import javax.crypto.spec.IvParameterSpec;
|
||
|
import javax.crypto.spec.SecretKeySpec;
|
||
|
import net.sf.scuba.smartcards.ISOFileInfo;
|
||
|
import org.bouncycastle.pqc.jcajce.spec.McElieceCCA2KeyGenParameterSpec;
|
||
|
|
||
|
/* renamed from: o.guO, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class C15573guO {
|
||
|
private static boolean a;
|
||
|
private static char[] b;
|
||
|
private static int c;
|
||
|
public static final C15573guO d;
|
||
|
private static boolean e;
|
||
|
private static int f;
|
||
|
private static final byte[] $$a = {74, -120, -98, -119};
|
||
|
private static final int $$b = 62;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int i = 0;
|
||
|
|
||
|
public static /* synthetic */ Object c(Object[] objArr, int i2, int i3, int i4) {
|
||
|
int i5 = 0;
|
||
|
byte[] bArr = (byte[]) objArr[0];
|
||
|
int i6 = 2 % 2;
|
||
|
C14957gcv.e(bArr, "");
|
||
|
StringBuffer stringBuffer = new StringBuffer();
|
||
|
int length = bArr.length;
|
||
|
while (i5 < length) {
|
||
|
int i7 = f + 17;
|
||
|
i = i7 % 128;
|
||
|
int i8 = i7 % 2;
|
||
|
byte b2 = bArr[i5];
|
||
|
gcH gch = gcH.d;
|
||
|
String format = String.format("%02x", Arrays.copyOf(new Object[]{Byte.valueOf(b2)}, 1));
|
||
|
C14957gcv.c((Object) format, "");
|
||
|
stringBuffer.append(format);
|
||
|
i5++;
|
||
|
int i9 = f + 101;
|
||
|
i = i9 % 128;
|
||
|
int i10 = i9 % 2;
|
||
|
}
|
||
|
String obj = stringBuffer.toString();
|
||
|
C14957gcv.c((Object) obj, "");
|
||
|
String upperCase = obj.toUpperCase(Locale.ROOT);
|
||
|
C14957gcv.c((Object) upperCase, "");
|
||
|
return upperCase;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x0030). Please report as a decompilation issue!!! */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static void h(byte r6, byte r7, int r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
int r8 = r8 * 57
|
||
|
int r8 = r8 + 65
|
||
|
int r7 = r7 * 3
|
||
|
int r7 = 3 - r7
|
||
|
int r6 = r6 * 4
|
||
|
int r0 = r6 + 1
|
||
|
byte[] r1 = o.C15573guO.$$a
|
||
|
byte[] r0 = new byte[r0]
|
||
|
r2 = 0
|
||
|
if (r1 != 0) goto L17
|
||
|
r3 = r8
|
||
|
r4 = r2
|
||
|
r8 = r7
|
||
|
goto L30
|
||
|
L17:
|
||
|
r3 = r2
|
||
|
L18:
|
||
|
byte r4 = (byte) r8
|
||
|
int r7 = r7 + 1
|
||
|
r0[r3] = r4
|
||
|
if (r3 != r6) goto L27
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r0, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L27:
|
||
|
r4 = r1[r7]
|
||
|
int r3 = r3 + 1
|
||
|
r5 = r8
|
||
|
r8 = r7
|
||
|
r7 = r4
|
||
|
r4 = r3
|
||
|
r3 = r5
|
||
|
L30:
|
||
|
int r7 = -r7
|
||
|
int r7 = r7 + r3
|
||
|
r3 = r4
|
||
|
r5 = r8
|
||
|
r8 = r7
|
||
|
r7 = r5
|
||
|
goto L18
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.C15573guO.h(byte, byte, int, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
private C15573guO() {
|
||
|
}
|
||
|
|
||
|
public static int e(int i2, int i3) {
|
||
|
int i4 = 2 % 2;
|
||
|
int e2 = C14977gdi.e(new C14973gde(i2, i3), AbstractC14971gdc.e);
|
||
|
int i5 = f + 73;
|
||
|
i = i5 % 128;
|
||
|
if (i5 % 2 == 0) {
|
||
|
return e2;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x005d A[RETURN] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:12:0x005e */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static java.lang.String c(java.lang.String r5, java.lang.String r6) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
java.lang.String r1 = ""
|
||
|
o.C14957gcv.e(r5, r1)
|
||
|
r2 = 0
|
||
|
if (r6 == 0) goto L51
|
||
|
int r3 = o.C15573guO.f
|
||
|
int r3 = r3 + 69
|
||
|
int r4 = r3 % 128
|
||
|
o.C15573guO.i = r4
|
||
|
int r3 = r3 % r0
|
||
|
r4 = 0
|
||
|
if (r3 == 0) goto L34
|
||
|
java.security.MessageDigest r6 = java.security.MessageDigest.getInstance(r6) // Catch: java.lang.Throwable -> L51
|
||
|
java.nio.charset.Charset r3 = o.gdP.a // Catch: java.lang.Throwable -> L51
|
||
|
byte[] r5 = r5.getBytes(r3) // Catch: java.lang.Throwable -> L51
|
||
|
o.C14957gcv.c(r5, r1) // Catch: java.lang.Throwable -> L51
|
||
|
int r3 = r5.length // Catch: java.lang.Throwable -> L51
|
||
|
r6.update(r5, r4, r3) // Catch: java.lang.Throwable -> L51
|
||
|
byte[] r5 = r6.digest() // Catch: java.lang.Throwable -> L51
|
||
|
o.C14957gcv.c(r5, r1) // Catch: java.lang.Throwable -> L51
|
||
|
java.lang.String r5 = a(r5) // Catch: java.lang.Throwable -> L51
|
||
|
goto L52
|
||
|
L34:
|
||
|
java.security.MessageDigest r6 = java.security.MessageDigest.getInstance(r6) // Catch: java.lang.Throwable -> L51
|
||
|
java.nio.charset.Charset r3 = o.gdP.a // Catch: java.lang.Throwable -> L51
|
||
|
byte[] r5 = r5.getBytes(r3) // Catch: java.lang.Throwable -> L51
|
||
|
o.C14957gcv.c(r5, r1) // Catch: java.lang.Throwable -> L51
|
||
|
int r3 = r5.length // Catch: java.lang.Throwable -> L51
|
||
|
r6.update(r5, r4, r3) // Catch: java.lang.Throwable -> L51
|
||
|
byte[] r5 = r6.digest() // Catch: java.lang.Throwable -> L51
|
||
|
o.C14957gcv.c(r5, r1) // Catch: java.lang.Throwable -> L51
|
||
|
java.lang.String r5 = a(r5) // Catch: java.lang.Throwable -> L51
|
||
|
goto L52
|
||
|
L51:
|
||
|
r5 = r2
|
||
|
L52:
|
||
|
int r6 = o.C15573guO.f
|
||
|
int r6 = r6 + 59
|
||
|
int r1 = r6 % 128
|
||
|
o.C15573guO.i = r1
|
||
|
int r6 = r6 % r0
|
||
|
if (r6 != 0) goto L5e
|
||
|
return r5
|
||
|
L5e:
|
||
|
throw r2
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.C15573guO.c(java.lang.String, java.lang.String):java.lang.String");
|
||
|
}
|
||
|
|
||
|
private static String b(byte[] bArr) {
|
||
|
int i2 = 2 % 2;
|
||
|
C14957gcv.e(bArr, "");
|
||
|
StringBuffer stringBuffer = new StringBuffer();
|
||
|
for (byte b2 : bArr) {
|
||
|
int i3 = i + 59;
|
||
|
f = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
gcH gch = gcH.d;
|
||
|
String format = String.format("%02x", Arrays.copyOf(new Object[]{Byte.valueOf(b2)}, 1));
|
||
|
C14957gcv.c((Object) format, "");
|
||
|
stringBuffer.append(format);
|
||
|
}
|
||
|
String obj = stringBuffer.toString();
|
||
|
C14957gcv.c((Object) obj, "");
|
||
|
String upperCase = obj.toUpperCase(Locale.ROOT);
|
||
|
C14957gcv.c((Object) upperCase, "");
|
||
|
int i5 = f + 99;
|
||
|
i = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
return upperCase;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* renamed from: o.guO$RVV */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Byte, CharSequence> {
|
||
|
public static final RVV c = new RVV();
|
||
|
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ CharSequence invoke(Byte b) {
|
||
|
String format = String.format("%02x", Byte.valueOf(b.byteValue()));
|
||
|
C14957gcv.c((Object) format, "");
|
||
|
return format;
|
||
|
}
|
||
|
|
||
|
RVV() {
|
||
|
super(1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static String a(byte[] bArr) {
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = i + 125;
|
||
|
f = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
C14957gcv.e(bArr, "");
|
||
|
String a2 = C14875gap.a(bArr, "", RVV.c);
|
||
|
int i5 = f + 15;
|
||
|
i = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
return a2;
|
||
|
}
|
||
|
|
||
|
public static String d(String str, String str2, byte[] bArr) {
|
||
|
int i2 = 2 % 2;
|
||
|
C14957gcv.e(str, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
C14957gcv.e(bArr, "");
|
||
|
byte[] bytes = str.getBytes(gdP.a);
|
||
|
C14957gcv.c(bytes, "");
|
||
|
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING");
|
||
|
SecretKeySpec secretKeySpec = new SecretKeySpec(bArr, 0, bArr.length, "AES");
|
||
|
byte[] bytes2 = str2.getBytes(gdP.a);
|
||
|
C14957gcv.c(bytes2, "");
|
||
|
cipher.init(1, secretKeySpec, new IvParameterSpec(bytes2));
|
||
|
byte[] doFinal = cipher.doFinal(bytes);
|
||
|
C14957gcv.c(doFinal, "");
|
||
|
String b2 = b(doFinal);
|
||
|
int i3 = i + 47;
|
||
|
f = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
return b2;
|
||
|
}
|
||
|
|
||
|
public static String e(int i2) {
|
||
|
int i3 = 2 % 2;
|
||
|
if (i2 > 0) {
|
||
|
int i4 = f + 99;
|
||
|
i = i4 % 128;
|
||
|
if (i4 % 2 == 0 ? i2 < 10 : i2 < 30) {
|
||
|
Object[] objArr = new Object[1];
|
||
|
g(null, new byte[]{ISOFileInfo.DATA_BYTES2, ISOFileInfo.DATA_BYTES2}, null, 127 - (ViewConfiguration.getTapTimeout() >> 16), objArr);
|
||
|
String format = new DecimalFormat(((String) objArr[0]).intern()).format(Integer.valueOf(i2));
|
||
|
C14957gcv.c((Object) format, "");
|
||
|
return format;
|
||
|
}
|
||
|
}
|
||
|
String valueOf = String.valueOf(i2);
|
||
|
int i5 = f + 95;
|
||
|
i = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
return valueOf;
|
||
|
}
|
||
|
|
||
|
private static void g(char[] cArr, byte[] bArr, int[] iArr, int i2, Object[] objArr) {
|
||
|
char[] cArr2;
|
||
|
int i3 = 2;
|
||
|
int i4 = 2 % 2;
|
||
|
C3614bBe c3614bBe = new C3614bBe();
|
||
|
char[] cArr3 = b;
|
||
|
long j = 0;
|
||
|
int i5 = 0;
|
||
|
if (cArr3 != null) {
|
||
|
int length = cArr3.length;
|
||
|
char[] cArr4 = new char[length];
|
||
|
int i6 = 0;
|
||
|
while (i6 < length) {
|
||
|
int i7 = $10 + 97;
|
||
|
$11 = i7 % 128;
|
||
|
int i8 = i7 % i3;
|
||
|
try {
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
objArr2[i5] = Integer.valueOf(cArr3[i6]);
|
||
|
Object obj = xzZ.y.get(-950481649);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c(View.MeasureSpec.getSize(i5) + 337, 5 - ExpandableListView.getPackedPositionGroup(j), (char) (TextUtils.lastIndexOf("", '0') + 1));
|
||
|
byte b2 = (byte) i5;
|
||
|
byte b3 = b2;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
h(b2, b3, b3, objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
||
|
xzZ.y.put(-950481649, obj);
|
||
|
}
|
||
|
cArr4[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
||
|
i6++;
|
||
|
i3 = 2;
|
||
|
j = 0;
|
||
|
i5 = 0;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
int i9 = $11 + 119;
|
||
|
$10 = i9 % 128;
|
||
|
int i10 = i9 % 2;
|
||
|
cArr3 = cArr4;
|
||
|
}
|
||
|
Object[] objArr4 = {Integer.valueOf(c)};
|
||
|
Object obj2 = xzZ.y.get(-1521625011);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 284, 5 - View.MeasureSpec.getSize(0), (char) (39813 - (ViewConfiguration.getMaximumFlingVelocity() >> 16)));
|
||
|
byte b4 = (byte) 0;
|
||
|
byte b5 = b4;
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
h(b4, b5, (byte) (b5 + 1), objArr5);
|
||
|
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
|
||
|
xzZ.y.put(-1521625011, obj2);
|
||
|
}
|
||
|
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
|
||
|
if (e) {
|
||
|
c3614bBe.c = bArr.length;
|
||
|
char[] cArr5 = new char[c3614bBe.c];
|
||
|
c3614bBe.a = 0;
|
||
|
while (c3614bBe.a < c3614bBe.c) {
|
||
|
cArr5[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i2] - intValue);
|
||
|
try {
|
||
|
Object[] objArr6 = {c3614bBe, c3614bBe};
|
||
|
Object obj3 = xzZ.y.get(1779759091);
|
||
|
if (obj3 == null) {
|
||
|
obj3 = ((Class) xzZ.c(40 - TextUtils.getOffsetAfter("", 0), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) Drawable.resolveOpacity(0, 0))).getMethod("D", Object.class, Object.class);
|
||
|
xzZ.y.put(1779759091, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(null, objArr6);
|
||
|
} catch (Throwable th2) {
|
||
|
Throwable cause2 = th2.getCause();
|
||
|
if (cause2 == null) {
|
||
|
throw th2;
|
||
|
}
|
||
|
throw cause2;
|
||
|
}
|
||
|
}
|
||
|
objArr[0] = new String(cArr5);
|
||
|
return;
|
||
|
}
|
||
|
if (a) {
|
||
|
int i11 = $10 + 49;
|
||
|
$11 = i11 % 128;
|
||
|
if (i11 % 2 == 0) {
|
||
|
c3614bBe.c = cArr.length;
|
||
|
cArr2 = new char[c3614bBe.c];
|
||
|
c3614bBe.a = 1;
|
||
|
} else {
|
||
|
c3614bBe.c = cArr.length;
|
||
|
cArr2 = new char[c3614bBe.c];
|
||
|
c3614bBe.a = 0;
|
||
|
}
|
||
|
while (c3614bBe.a < c3614bBe.c) {
|
||
|
cArr2[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
|
||
|
Object[] objArr7 = {c3614bBe, c3614bBe};
|
||
|
Object obj4 = xzZ.y.get(1779759091);
|
||
|
if (obj4 == null) {
|
||
|
obj4 = ((Class) xzZ.c((ViewConfiguration.getWindowTouchSlop() >> 8) + 40, 5 - (ViewConfiguration.getScrollDefaultDelay() >> 16), (char) ExpandableListView.getPackedPositionGroup(0L))).getMethod("D", Object.class, Object.class);
|
||
|
xzZ.y.put(1779759091, obj4);
|
||
|
}
|
||
|
((Method) obj4).invoke(null, objArr7);
|
||
|
int i12 = $10 + 21;
|
||
|
$11 = i12 % 128;
|
||
|
int i13 = i12 % 2;
|
||
|
}
|
||
|
objArr[0] = new String(cArr2);
|
||
|
return;
|
||
|
}
|
||
|
int i14 = 0;
|
||
|
c3614bBe.c = iArr.length;
|
||
|
char[] cArr6 = new char[c3614bBe.c];
|
||
|
while (true) {
|
||
|
c3614bBe.a = i14;
|
||
|
if (c3614bBe.a >= c3614bBe.c) {
|
||
|
objArr[0] = new String(cArr6);
|
||
|
return;
|
||
|
} else {
|
||
|
cArr6[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
|
||
|
i14 = c3614bBe.a + 1;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static void d() {
|
||
|
b = new char[]{15956};
|
||
|
c = 1934310916;
|
||
|
a = true;
|
||
|
e = true;
|
||
|
}
|
||
|
|
||
|
public static String e(byte[] bArr) {
|
||
|
return (String) c(new Object[]{bArr}, -738091658, 738091658, (int) System.currentTimeMillis());
|
||
|
}
|
||
|
|
||
|
public static String a(int i2) {
|
||
|
int i3 = 2 % 2;
|
||
|
if (i2 == 1) {
|
||
|
int i4 = i + 11;
|
||
|
f = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
int i5 = 4 / 3;
|
||
|
}
|
||
|
return "MD5";
|
||
|
}
|
||
|
int i6 = i + 15;
|
||
|
int i7 = i6 % 128;
|
||
|
f = i7;
|
||
|
if (i6 % 2 != 0 ? i2 == 2 : i2 == 2) {
|
||
|
return McElieceCCA2KeyGenParameterSpec.SHA1;
|
||
|
}
|
||
|
if (i2 == 3) {
|
||
|
int i8 = i7 + 105;
|
||
|
i = i8 % 128;
|
||
|
int i9 = i8 % 2;
|
||
|
return McElieceCCA2KeyGenParameterSpec.SHA256;
|
||
|
}
|
||
|
if (i2 == 4) {
|
||
|
return McElieceCCA2KeyGenParameterSpec.SHA384;
|
||
|
}
|
||
|
if (i2 == 5) {
|
||
|
return McElieceCCA2KeyGenParameterSpec.SHA512;
|
||
|
}
|
||
|
int i10 = i7 + 83;
|
||
|
i = i10 % 128;
|
||
|
int i11 = i10 % 2;
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
f = 1;
|
||
|
d();
|
||
|
d = new C15573guO();
|
||
|
int i2 = i + 93;
|
||
|
f = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
int i3 = 67 / 0;
|
||
|
}
|
||
|
}
|
||
|
}
|