769 lines
36 KiB
Java
769 lines
36 KiB
Java
|
package o;
|
|||
|
|
|||
|
import android.graphics.ImageFormat;
|
|||
|
import android.text.TextUtils;
|
|||
|
import android.view.Gravity;
|
|||
|
import android.view.View;
|
|||
|
import android.view.ViewConfiguration;
|
|||
|
import com.google.common.base.Ascii;
|
|||
|
import com.google.common.primitives.UnsignedBytes;
|
|||
|
import java.io.UnsupportedEncodingException;
|
|||
|
import java.nio.ByteBuffer;
|
|||
|
import java.security.SecureRandom;
|
|||
|
import net.sf.scuba.smartcards.ISO7816;
|
|||
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
|||
|
import org.bouncycastle.i18n.LocalizedMessage;
|
|||
|
import org.bouncycastle.pqc.math.linearalgebra.Matrix;
|
|||
|
|
|||
|
/* renamed from: o.gjf, reason: case insensitive filesystem */
|
|||
|
/* loaded from: classes6.dex */
|
|||
|
public final class C15185gjf {
|
|||
|
private static final int[] a;
|
|||
|
private static final int[] b;
|
|||
|
private static final int[] c;
|
|||
|
private static final byte[] d;
|
|||
|
private static final char[] e;
|
|||
|
private static int f;
|
|||
|
private static int g;
|
|||
|
private static int i;
|
|||
|
private static int l;
|
|||
|
private static short[] m;
|
|||
|
|
|||
|
/* renamed from: o, reason: collision with root package name */
|
|||
|
private static byte[] f9140o;
|
|||
|
private int[] h;
|
|||
|
private int[] j;
|
|||
|
private static final byte[] $$a = {104, 69, 71, -100};
|
|||
|
private static final int $$b = CipherSuite.TLS_DH_DSS_WITH_AES_256_GCM_SHA384;
|
|||
|
private static int $10 = 0;
|
|||
|
private static int $11 = 1;
|
|||
|
private static int n = 1;
|
|||
|
|
|||
|
public static /* synthetic */ Object c(Object[] objArr, int i2, int i3, int i4) {
|
|||
|
int i5 = (i2 * 1773) + (i3 * (-885));
|
|||
|
int i6 = ~i2;
|
|||
|
int i7 = ~i3;
|
|||
|
int i8 = (~(i6 | i7)) | (~(i7 | i4));
|
|||
|
int i9 = ~i4;
|
|||
|
int i10 = i9 | i2;
|
|||
|
return ((i5 + ((i8 | (~(i10 | i3))) * 886)) + ((i2 | (~(i3 | i9))) * (-1772))) + ((~i10) * 886) != 1 ? b(objArr) : e(objArr);
|
|||
|
}
|
|||
|
|
|||
|
/* 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:0x0031). 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 p(short r6, int r7, short r8, java.lang.Object[] r9) {
|
|||
|
/*
|
|||
|
int r7 = r7 * 4
|
|||
|
int r0 = 1 - r7
|
|||
|
int r6 = r6 * 2
|
|||
|
int r6 = r6 + 108
|
|||
|
byte[] r1 = o.C15185gjf.$$a
|
|||
|
int r8 = r8 * 2
|
|||
|
int r8 = 3 - r8
|
|||
|
byte[] r0 = new byte[r0]
|
|||
|
r2 = 0
|
|||
|
int r7 = 0 - r7
|
|||
|
if (r1 != 0) goto L19
|
|||
|
r6 = r7
|
|||
|
r3 = r8
|
|||
|
r4 = r2
|
|||
|
goto L31
|
|||
|
L19:
|
|||
|
r3 = r2
|
|||
|
L1a:
|
|||
|
byte r4 = (byte) r6
|
|||
|
r0[r3] = r4
|
|||
|
if (r3 != r7) goto L27
|
|||
|
java.lang.String r6 = new java.lang.String
|
|||
|
r6.<init>(r0, r2)
|
|||
|
r9[r2] = r6
|
|||
|
return
|
|||
|
L27:
|
|||
|
int r8 = r8 + 1
|
|||
|
r4 = r1[r8]
|
|||
|
int r3 = r3 + 1
|
|||
|
r5 = r3
|
|||
|
r3 = r8
|
|||
|
r8 = r4
|
|||
|
r4 = r5
|
|||
|
L31:
|
|||
|
int r6 = r6 + r8
|
|||
|
r8 = r3
|
|||
|
r3 = r4
|
|||
|
goto L1a
|
|||
|
*/
|
|||
|
throw new UnsupportedOperationException("Method not decompiled: o.C15185gjf.p(short, int, short, java.lang.Object[]):void");
|
|||
|
}
|
|||
|
|
|||
|
/* JADX WARN: Removed duplicated region for block: B:35:0x01cd */
|
|||
|
/*
|
|||
|
Code decompiled incorrectly, please refer to instructions dump.
|
|||
|
To view partially-correct add '--show-bad-code' argument
|
|||
|
*/
|
|||
|
private static void k(short r20, byte r21, int r22, int r23, int r24, java.lang.Object[] r25) {
|
|||
|
/*
|
|||
|
Method dump skipped, instructions count: 771
|
|||
|
To view this dump add '--comments-level debug' option
|
|||
|
*/
|
|||
|
throw new UnsupportedOperationException("Method not decompiled: o.C15185gjf.k(short, byte, int, int, int, java.lang.Object[]):void");
|
|||
|
}
|
|||
|
|
|||
|
/* JADX WARN: Removed duplicated region for block: B:12:0x00b0 */
|
|||
|
/* JADX WARN: Removed duplicated region for block: B:44:0x00b7 */
|
|||
|
/*
|
|||
|
Code decompiled incorrectly, please refer to instructions dump.
|
|||
|
To view partially-correct add '--show-bad-code' argument
|
|||
|
*/
|
|||
|
private static /* synthetic */ java.lang.Object e(java.lang.Object[] r16) {
|
|||
|
/*
|
|||
|
Method dump skipped, instructions count: 380
|
|||
|
To view this dump add '--comments-level debug' option
|
|||
|
*/
|
|||
|
throw new UnsupportedOperationException("Method not decompiled: o.C15185gjf.e(java.lang.Object[]):java.lang.Object");
|
|||
|
}
|
|||
|
|
|||
|
private static /* synthetic */ Object b(Object[] objArr) {
|
|||
|
byte b2;
|
|||
|
char charValue = ((Character) objArr[0]).charValue();
|
|||
|
int i2 = 2 % 2;
|
|||
|
int i3 = n;
|
|||
|
int i4 = i3 + 29;
|
|||
|
l = i4 % 128;
|
|||
|
Object obj = null;
|
|||
|
if (i4 % 2 != 0) {
|
|||
|
throw null;
|
|||
|
}
|
|||
|
if (charValue >= 0) {
|
|||
|
byte[] bArr = d;
|
|||
|
if (charValue <= bArr.length) {
|
|||
|
b2 = bArr[charValue];
|
|||
|
return Byte.valueOf(b2);
|
|||
|
}
|
|||
|
}
|
|||
|
int i5 = i3 + 105;
|
|||
|
l = i5 % 128;
|
|||
|
if (i5 % 2 == 0) {
|
|||
|
b2 = -1;
|
|||
|
return Byte.valueOf(b2);
|
|||
|
}
|
|||
|
obj.hashCode();
|
|||
|
throw null;
|
|||
|
}
|
|||
|
|
|||
|
static void e() {
|
|||
|
f = 1140540947;
|
|||
|
g = 1406017065;
|
|||
|
i = -1616832217;
|
|||
|
f9140o = new byte[]{Ascii.NAK};
|
|||
|
}
|
|||
|
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x001e, code lost:
|
|||
|
|
|||
|
if (r7.length != 16) goto L29;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x0020, code lost:
|
|||
|
|
|||
|
r2 = r2 + 57;
|
|||
|
o.C15185gjf.l = r2 % 128;
|
|||
|
r2 = r2 % 2;
|
|||
|
d();
|
|||
|
e(r7, r6);
|
|||
|
r2 = 0;
|
|||
|
r3 = 0;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x0031, code lost:
|
|||
|
|
|||
|
if (r3 == (1 << r8)) goto L33;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x0033, code lost:
|
|||
|
|
|||
|
d(r6);
|
|||
|
d(r7);
|
|||
|
r3 = r3 + 1;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x003c, code lost:
|
|||
|
|
|||
|
r6 = 0;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:19:0x003f, code lost:
|
|||
|
|
|||
|
if (r6 >= 64) goto L34;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:20:0x0041, code lost:
|
|||
|
|
|||
|
r7 = 0;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:22:0x0044, code lost:
|
|||
|
|
|||
|
if (r7 >= (r1 >> 1)) goto L35;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:23:0x0046, code lost:
|
|||
|
|
|||
|
e(r9, r7 << 1);
|
|||
|
r7 = r7 + 1;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:25:0x004e, code lost:
|
|||
|
|
|||
|
r6 = r6 + 1;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:27:0x0051, code lost:
|
|||
|
|
|||
|
r6 = new byte[r1 << 2];
|
|||
|
r7 = 0;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:28:0x0056, code lost:
|
|||
|
|
|||
|
if (r7 >= r1) goto L36;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:29:0x0058, code lost:
|
|||
|
|
|||
|
r8 = o.C15185gjf.l + 41;
|
|||
|
o.C15185gjf.n = r8 % 128;
|
|||
|
r8 = r8 % 2;
|
|||
|
r8 = r9[r7];
|
|||
|
r6[r2] = (byte) (r8 >>> 24);
|
|||
|
r6[r2 + 1] = (byte) (r8 >> 16);
|
|||
|
r6[r2 + 2] = (byte) (r8 >> 8);
|
|||
|
r6[r2 + 3] = (byte) r8;
|
|||
|
r7 = r7 + 1;
|
|||
|
r2 = r2 + 4;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:31:0x0081, code lost:
|
|||
|
|
|||
|
return r6;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:33:0x0089, code lost:
|
|||
|
|
|||
|
throw new java.lang.IllegalArgumentException("Bad salt length");
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:35:0x0015, code lost:
|
|||
|
|
|||
|
if (r8 >= 4) goto L9;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0010, code lost:
|
|||
|
|
|||
|
if (r8 >= 5) goto L9;
|
|||
|
*/
|
|||
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x0019, code lost:
|
|||
|
|
|||
|
if (r8 > 30) goto L31;
|
|||
|
*/
|
|||
|
/*
|
|||
|
Code decompiled incorrectly, please refer to instructions dump.
|
|||
|
To view partially-correct add '--show-bad-code' argument
|
|||
|
*/
|
|||
|
private byte[] a(byte[] r6, byte[] r7, int r8, int[] r9) {
|
|||
|
/*
|
|||
|
r5 = this;
|
|||
|
r0 = 2
|
|||
|
int r1 = r0 % r0
|
|||
|
int r1 = o.C15185gjf.l
|
|||
|
int r1 = r1 + 59
|
|||
|
int r2 = r1 % 128
|
|||
|
o.C15185gjf.n = r2
|
|||
|
int r1 = r1 % r0
|
|||
|
if (r1 != 0) goto L13
|
|||
|
int r1 = r9.length
|
|||
|
r3 = 5
|
|||
|
if (r8 < r3) goto L8a
|
|||
|
goto L17
|
|||
|
L13:
|
|||
|
int r1 = r9.length
|
|||
|
r3 = 4
|
|||
|
if (r8 < r3) goto L8a
|
|||
|
L17:
|
|||
|
r3 = 30
|
|||
|
if (r8 > r3) goto L8a
|
|||
|
int r3 = r7.length
|
|||
|
r4 = 16
|
|||
|
if (r3 != r4) goto L82
|
|||
|
int r2 = r2 + 57
|
|||
|
int r3 = r2 % 128
|
|||
|
o.C15185gjf.l = r3
|
|||
|
int r2 = r2 % r0
|
|||
|
r5.d()
|
|||
|
r5.e(r7, r6)
|
|||
|
r2 = 0
|
|||
|
r3 = r2
|
|||
|
L2f:
|
|||
|
r4 = 1
|
|||
|
int r4 = r4 << r8
|
|||
|
if (r3 == r4) goto L3c
|
|||
|
r5.d(r6)
|
|||
|
r5.d(r7)
|
|||
|
int r3 = r3 + 1
|
|||
|
goto L2f
|
|||
|
L3c:
|
|||
|
r6 = r2
|
|||
|
L3d:
|
|||
|
r7 = 64
|
|||
|
if (r6 >= r7) goto L51
|
|||
|
r7 = r2
|
|||
|
L42:
|
|||
|
int r8 = r1 >> 1
|
|||
|
if (r7 >= r8) goto L4e
|
|||
|
int r8 = r7 << 1
|
|||
|
r5.e(r9, r8)
|
|||
|
int r7 = r7 + 1
|
|||
|
goto L42
|
|||
|
L4e:
|
|||
|
int r6 = r6 + 1
|
|||
|
goto L3d
|
|||
|
L51:
|
|||
|
int r6 = r1 << 2
|
|||
|
byte[] r6 = new byte[r6]
|
|||
|
r7 = r2
|
|||
|
L56:
|
|||
|
if (r7 >= r1) goto L81
|
|||
|
int r8 = o.C15185gjf.l
|
|||
|
int r8 = r8 + 41
|
|||
|
int r3 = r8 % 128
|
|||
|
o.C15185gjf.n = r3
|
|||
|
int r8 = r8 % r0
|
|||
|
r8 = r9[r7]
|
|||
|
int r3 = r8 >>> 24
|
|||
|
byte r3 = (byte) r3
|
|||
|
r6[r2] = r3
|
|||
|
int r3 = r2 + 1
|
|||
|
int r4 = r8 >> 16
|
|||
|
byte r4 = (byte) r4
|
|||
|
r6[r3] = r4
|
|||
|
int r3 = r2 + 2
|
|||
|
int r4 = r8 >> 8
|
|||
|
byte r4 = (byte) r4
|
|||
|
r6[r3] = r4
|
|||
|
int r3 = r2 + 4
|
|||
|
int r2 = r2 + 3
|
|||
|
byte r8 = (byte) r8
|
|||
|
r6[r2] = r8
|
|||
|
int r7 = r7 + 1
|
|||
|
r2 = r3
|
|||
|
goto L56
|
|||
|
L81:
|
|||
|
return r6
|
|||
|
L82:
|
|||
|
java.lang.IllegalArgumentException r6 = new java.lang.IllegalArgumentException
|
|||
|
java.lang.String r7 = "Bad salt length"
|
|||
|
r6.<init>(r7)
|
|||
|
throw r6
|
|||
|
L8a:
|
|||
|
java.lang.IllegalArgumentException r6 = new java.lang.IllegalArgumentException
|
|||
|
java.lang.String r7 = "Bad number of rounds"
|
|||
|
r6.<init>(r7)
|
|||
|
throw r6
|
|||
|
*/
|
|||
|
throw new UnsupportedOperationException("Method not decompiled: o.C15185gjf.a(byte[], byte[], int, int[]):byte[]");
|
|||
|
}
|
|||
|
|
|||
|
private static byte[] e(String str) throws IllegalArgumentException {
|
|||
|
return (byte[]) c(new Object[]{str}, 1027711385, -1027711384, (int) System.currentTimeMillis());
|
|||
|
}
|
|||
|
|
|||
|
private final void e(int[] iArr, int i2) {
|
|||
|
int i3 = 2 % 2;
|
|||
|
int i4 = l + 89;
|
|||
|
int i5 = i4 % 128;
|
|||
|
n = i5;
|
|||
|
int i6 = i4 % 2;
|
|||
|
int i7 = iArr[i2];
|
|||
|
int i8 = i2 + 1;
|
|||
|
int i9 = iArr[i8];
|
|||
|
int i10 = 0;
|
|||
|
int i11 = this.j[0];
|
|||
|
int i12 = i5 + 71;
|
|||
|
l = i12 % 128;
|
|||
|
int i13 = i12 % 2;
|
|||
|
while (true) {
|
|||
|
i7 ^= i11;
|
|||
|
if (i10 > 14) {
|
|||
|
iArr[i2] = this.j[17] ^ i9;
|
|||
|
iArr[i8] = i7;
|
|||
|
return;
|
|||
|
}
|
|||
|
int i14 = n + 89;
|
|||
|
l = i14 % 128;
|
|||
|
int i15 = i14 % 2;
|
|||
|
int[] iArr2 = this.h;
|
|||
|
int i16 = iArr2[i7 >>> 24];
|
|||
|
int i17 = iArr2[((i7 >> 16) & 255) | 256];
|
|||
|
int i18 = iArr2[((i7 >> 8) & 255) | 512];
|
|||
|
int i19 = iArr2[(i7 & 255) | 768];
|
|||
|
int[] iArr3 = this.j;
|
|||
|
i9 ^= (((i16 + i17) ^ i18) + i19) ^ iArr3[i10 + 1];
|
|||
|
int i20 = iArr2[i9 >>> 24];
|
|||
|
int i21 = iArr2[((i9 >> 16) & 255) | 256];
|
|||
|
int i22 = iArr2[((i9 >> 8) & 255) | 512];
|
|||
|
i10 += 2;
|
|||
|
i11 = (((i20 + i21) ^ i22) + iArr2[(i9 & 255) | 768]) ^ iArr3[i10];
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
private void e(byte[] bArr, byte[] bArr2) {
|
|||
|
int[] iArr;
|
|||
|
int[] iArr2;
|
|||
|
int[] iArr3;
|
|||
|
int length;
|
|||
|
int length2;
|
|||
|
int i2 = 2 % 2;
|
|||
|
int i3 = l + 77;
|
|||
|
n = i3 % 128;
|
|||
|
if (i3 % 2 == 0) {
|
|||
|
iArr = new int[]{0};
|
|||
|
iArr2 = new int[0];
|
|||
|
iArr2[0] = 0;
|
|||
|
iArr3 = new int[]{1, 0};
|
|||
|
length = this.j.length;
|
|||
|
length2 = this.h.length;
|
|||
|
} else {
|
|||
|
iArr = new int[]{0};
|
|||
|
iArr2 = new int[]{0};
|
|||
|
iArr3 = new int[]{0, 0};
|
|||
|
length = this.j.length;
|
|||
|
length2 = this.h.length;
|
|||
|
}
|
|||
|
int i4 = 0;
|
|||
|
while (i4 < length) {
|
|||
|
int[] iArr4 = this.j;
|
|||
|
iArr4[i4] = iArr4[i4] ^ b(bArr2, iArr);
|
|||
|
i4++;
|
|||
|
int i5 = l + 87;
|
|||
|
n = i5 % 128;
|
|||
|
int i6 = i5 % 2;
|
|||
|
}
|
|||
|
for (int i7 = 0; i7 < length; i7 += 2) {
|
|||
|
iArr3[0] = iArr3[0] ^ b(bArr, iArr2);
|
|||
|
iArr3[1] = iArr3[1] ^ b(bArr, iArr2);
|
|||
|
e(iArr3, 0);
|
|||
|
int[] iArr5 = this.j;
|
|||
|
iArr5[i7] = iArr3[0];
|
|||
|
iArr5[i7 + 1] = iArr3[1];
|
|||
|
}
|
|||
|
for (int i8 = 0; i8 < length2; i8 += 2) {
|
|||
|
iArr3[0] = iArr3[0] ^ b(bArr, iArr2);
|
|||
|
iArr3[1] = iArr3[1] ^ b(bArr, iArr2);
|
|||
|
e(iArr3, 0);
|
|||
|
int[] iArr6 = this.h;
|
|||
|
iArr6[i8] = iArr3[0];
|
|||
|
iArr6[i8 + 1] = iArr3[1];
|
|||
|
}
|
|||
|
int i9 = n + 85;
|
|||
|
l = i9 % 128;
|
|||
|
if (i9 % 2 != 0) {
|
|||
|
throw null;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
private void d(byte[] bArr) {
|
|||
|
int i2 = 2 % 2;
|
|||
|
int i3 = l + 83;
|
|||
|
n = i3 % 128;
|
|||
|
int i4 = i3 % 2;
|
|||
|
int[] iArr = {0};
|
|||
|
int[] iArr2 = {0, 0};
|
|||
|
int length = this.j.length;
|
|||
|
int length2 = this.h.length;
|
|||
|
for (int i5 = 0; i5 < length; i5++) {
|
|||
|
int[] iArr3 = this.j;
|
|||
|
iArr3[i5] = iArr3[i5] ^ b(bArr, iArr);
|
|||
|
}
|
|||
|
for (int i6 = 0; i6 < length; i6 += 2) {
|
|||
|
int i7 = n + 73;
|
|||
|
l = i7 % 128;
|
|||
|
int i8 = i7 % 2;
|
|||
|
e(iArr2, 0);
|
|||
|
int[] iArr4 = this.j;
|
|||
|
iArr4[i6] = iArr2[0];
|
|||
|
iArr4[i6 + 1] = iArr2[1];
|
|||
|
}
|
|||
|
int i9 = 0;
|
|||
|
while (i9 < length2) {
|
|||
|
int i10 = n + 121;
|
|||
|
l = i10 % 128;
|
|||
|
int i11 = i10 % 2;
|
|||
|
e(iArr2, 0);
|
|||
|
if (i11 != 0) {
|
|||
|
int[] iArr5 = this.h;
|
|||
|
iArr5[i9] = iArr2[0];
|
|||
|
iArr5[i9] = iArr2[1];
|
|||
|
i9 += 114;
|
|||
|
} else {
|
|||
|
int[] iArr6 = this.h;
|
|||
|
iArr6[i9] = iArr2[0];
|
|||
|
iArr6[i9 + 1] = iArr2[1];
|
|||
|
i9 += 2;
|
|||
|
}
|
|||
|
int i12 = l + 97;
|
|||
|
n = i12 % 128;
|
|||
|
int i13 = i12 % 2;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
private void d() {
|
|||
|
int i2 = 2 % 2;
|
|||
|
int i3 = n + 89;
|
|||
|
l = i3 % 128;
|
|||
|
int i4 = i3 % 2;
|
|||
|
this.j = (int[]) b.clone();
|
|||
|
this.h = (int[]) c.clone();
|
|||
|
int i5 = n + 69;
|
|||
|
l = i5 % 128;
|
|||
|
int i6 = i5 % 2;
|
|||
|
}
|
|||
|
|
|||
|
/* JADX WARN: Removed duplicated region for block: B:17:0x0080 A[LOOP:0: B:9:0x001c->B:17:0x0080, LOOP_END] */
|
|||
|
/* JADX WARN: Removed duplicated region for block: B:18:0x006f A[SYNTHETIC] */
|
|||
|
/*
|
|||
|
Code decompiled incorrectly, please refer to instructions dump.
|
|||
|
To view partially-correct add '--show-bad-code' argument
|
|||
|
*/
|
|||
|
private static java.lang.String b(byte[] r9, int r10) throws java.lang.IllegalArgumentException {
|
|||
|
/*
|
|||
|
r0 = 2
|
|||
|
int r1 = r0 % r0
|
|||
|
java.lang.StringBuffer r1 = new java.lang.StringBuffer
|
|||
|
r1.<init>()
|
|||
|
if (r10 <= 0) goto L9f
|
|||
|
int r2 = r9.length
|
|||
|
if (r10 > r2) goto L9f
|
|||
|
int r2 = o.C15185gjf.l
|
|||
|
int r2 = r2 + 13
|
|||
|
int r3 = r2 % 128
|
|||
|
o.C15185gjf.n = r3
|
|||
|
int r2 = r2 % r0
|
|||
|
r3 = 0
|
|||
|
if (r2 != 0) goto L1b
|
|||
|
r2 = 1
|
|||
|
goto L1c
|
|||
|
L1b:
|
|||
|
r2 = r3
|
|||
|
L1c:
|
|||
|
if (r2 >= r10) goto L9a
|
|||
|
int r4 = o.C15185gjf.l
|
|||
|
int r4 = r4 + 7
|
|||
|
int r5 = r4 % 128
|
|||
|
o.C15185gjf.n = r5
|
|||
|
int r4 = r4 % r0
|
|||
|
if (r4 != 0) goto L3b
|
|||
|
r4 = r9[r2]
|
|||
|
char[] r5 = o.C15185gjf.e
|
|||
|
char r6 = r5[r3]
|
|||
|
r1.append(r6)
|
|||
|
r4 = r4 & r0
|
|||
|
int r4 = r4 - r0
|
|||
|
if (r2 < r10) goto L37
|
|||
|
goto L53
|
|||
|
L37:
|
|||
|
r6 = r5
|
|||
|
r5 = r4
|
|||
|
r4 = r2
|
|||
|
goto L58
|
|||
|
L3b:
|
|||
|
int r4 = r2 + 1
|
|||
|
r5 = r9[r2]
|
|||
|
char[] r6 = o.C15185gjf.e
|
|||
|
r7 = r5 & 255(0xff, float:3.57E-43)
|
|||
|
int r7 = r7 >> r0
|
|||
|
r7 = r7 & 63
|
|||
|
char r7 = r6[r7]
|
|||
|
r1.append(r7)
|
|||
|
r5 = r5 & 3
|
|||
|
int r5 = r5 << 4
|
|||
|
if (r4 < r10) goto L58
|
|||
|
r4 = r5
|
|||
|
r5 = r6
|
|||
|
L53:
|
|||
|
r9 = r4 & 63
|
|||
|
char r9 = r5[r9]
|
|||
|
goto L7c
|
|||
|
L58:
|
|||
|
int r7 = r2 + 2
|
|||
|
r4 = r9[r4]
|
|||
|
r8 = r4 & 255(0xff, float:3.57E-43)
|
|||
|
int r8 = r8 >> 4
|
|||
|
r8 = r8 & 15
|
|||
|
r5 = r5 | r8
|
|||
|
r5 = r5 & 63
|
|||
|
char r5 = r6[r5]
|
|||
|
r1.append(r5)
|
|||
|
r4 = r4 & 15
|
|||
|
int r4 = r4 << r0
|
|||
|
if (r7 < r10) goto L80
|
|||
|
int r9 = o.C15185gjf.l
|
|||
|
int r9 = r9 + 59
|
|||
|
int r10 = r9 % 128
|
|||
|
o.C15185gjf.n = r10
|
|||
|
int r9 = r9 % r0
|
|||
|
r9 = r4 & 63
|
|||
|
char r9 = r6[r9]
|
|||
|
L7c:
|
|||
|
r1.append(r9)
|
|||
|
goto L9a
|
|||
|
L80:
|
|||
|
int r2 = r2 + 3
|
|||
|
r5 = r9[r7]
|
|||
|
r7 = r5 & 255(0xff, float:3.57E-43)
|
|||
|
int r7 = r7 >> 6
|
|||
|
r7 = r7 & 3
|
|||
|
r4 = r4 | r7
|
|||
|
r4 = r4 & 63
|
|||
|
char r4 = r6[r4]
|
|||
|
r1.append(r4)
|
|||
|
r4 = r5 & 63
|
|||
|
char r4 = r6[r4]
|
|||
|
r1.append(r4)
|
|||
|
goto L1c
|
|||
|
L9a:
|
|||
|
java.lang.String r9 = r1.toString()
|
|||
|
return r9
|
|||
|
L9f:
|
|||
|
java.lang.IllegalArgumentException r9 = new java.lang.IllegalArgumentException
|
|||
|
java.lang.String r10 = "Invalid len"
|
|||
|
r9.<init>(r10)
|
|||
|
throw r9
|
|||
|
*/
|
|||
|
throw new UnsupportedOperationException("Method not decompiled: o.C15185gjf.b(byte[], int):java.lang.String");
|
|||
|
}
|
|||
|
|
|||
|
public static String c(String str, String str2) {
|
|||
|
char c2;
|
|||
|
int i2 = 2 % 2;
|
|||
|
StringBuffer stringBuffer = new StringBuffer();
|
|||
|
if (str2.charAt(0) == '$') {
|
|||
|
int i3 = n + 107;
|
|||
|
l = i3 % 128;
|
|||
|
if (i3 % 2 == 0 ? str2.charAt(1) == '2' : str2.charAt(0) == 'O') {
|
|||
|
int i4 = 3;
|
|||
|
if (str2.charAt(2) != '$') {
|
|||
|
c2 = str2.charAt(2);
|
|||
|
if (c2 != 'a' || str2.charAt(3) != '$') {
|
|||
|
throw new IllegalArgumentException("Invalid salt revision");
|
|||
|
}
|
|||
|
i4 = 4;
|
|||
|
} else {
|
|||
|
c2 = 0;
|
|||
|
}
|
|||
|
int i5 = i4 + 2;
|
|||
|
if (str2.charAt(i5) > '$') {
|
|||
|
throw new IllegalArgumentException("Missing salt rounds");
|
|||
|
}
|
|||
|
int parseInt = Integer.parseInt(str2.substring(i4, i5));
|
|||
|
String substring = str2.substring(i4 + 3, i4 + 25);
|
|||
|
try {
|
|||
|
StringBuilder sb = new StringBuilder();
|
|||
|
sb.append(str);
|
|||
|
sb.append(c2 >= 'a' ? "\u0000" : "");
|
|||
|
byte[] bytes = sb.toString().getBytes("UTF-8");
|
|||
|
byte[] bArr = (byte[]) c(new Object[]{substring}, 1027711385, -1027711384, (int) System.currentTimeMillis());
|
|||
|
C15185gjf c15185gjf = new C15185gjf();
|
|||
|
int[] iArr = a;
|
|||
|
byte[] a2 = c15185gjf.a(bytes, bArr, parseInt, (int[]) iArr.clone());
|
|||
|
stringBuffer.append("$2");
|
|||
|
if (c2 >= 'a') {
|
|||
|
stringBuffer.append(c2);
|
|||
|
int i6 = n + 75;
|
|||
|
l = i6 % 128;
|
|||
|
int i7 = i6 % 2;
|
|||
|
}
|
|||
|
stringBuffer.append("$");
|
|||
|
if (parseInt < 10) {
|
|||
|
Object[] objArr = new Object[1];
|
|||
|
k((short) ((-120) - TextUtils.lastIndexOf("", '0')), (byte) (ViewConfiguration.getTouchSlop() >> 8), (-59) - (ViewConfiguration.getEdgeSlop() >> 16), (-271931398) - View.MeasureSpec.makeMeasureSpec(0, 0), 865138942 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), objArr);
|
|||
|
stringBuffer.append(((String) objArr[0]).intern());
|
|||
|
}
|
|||
|
if (parseInt > 30) {
|
|||
|
throw new IllegalArgumentException("rounds exceeds maximum (30)");
|
|||
|
}
|
|||
|
stringBuffer.append(Integer.toString(parseInt));
|
|||
|
stringBuffer.append("$");
|
|||
|
stringBuffer.append(b(bArr, bArr.length));
|
|||
|
stringBuffer.append(b(a2, (iArr.length << 2) - 1));
|
|||
|
String obj = stringBuffer.toString();
|
|||
|
int i8 = l + 121;
|
|||
|
n = i8 % 128;
|
|||
|
if (i8 % 2 != 0) {
|
|||
|
return obj;
|
|||
|
}
|
|||
|
Object obj2 = null;
|
|||
|
obj2.hashCode();
|
|||
|
throw null;
|
|||
|
} catch (UnsupportedEncodingException unused) {
|
|||
|
throw new AssertionError("UTF-8 is not supported");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
throw new IllegalArgumentException("Invalid salt version");
|
|||
|
}
|
|||
|
|
|||
|
public static String c(int i2, SecureRandom secureRandom) {
|
|||
|
int i3 = 2 % 2;
|
|||
|
StringBuffer stringBuffer = new StringBuffer("$2a$");
|
|||
|
byte[] bArr = new byte[16];
|
|||
|
secureRandom.nextBytes(bArr);
|
|||
|
if (i2 < 10) {
|
|||
|
int i4 = l + 1;
|
|||
|
n = i4 % 128;
|
|||
|
int i5 = i4 % 2;
|
|||
|
Object[] objArr = new Object[1];
|
|||
|
k((short) (TextUtils.lastIndexOf("", '0', 0, 0) - 118), (byte) (ImageFormat.getBitsPerPixel(0) + 1), (-58) - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (-271931398) - Gravity.getAbsoluteGravity(0, 0), 865138942 + (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), objArr);
|
|||
|
stringBuffer.append(((String) objArr[0]).intern());
|
|||
|
}
|
|||
|
if (i2 > 30) {
|
|||
|
throw new IllegalArgumentException("log_rounds exceeds maximum (30)");
|
|||
|
}
|
|||
|
stringBuffer.append(Integer.toString(i2));
|
|||
|
stringBuffer.append("$");
|
|||
|
stringBuffer.append(b(bArr, 16));
|
|||
|
String obj = stringBuffer.toString();
|
|||
|
int i6 = n + 15;
|
|||
|
l = i6 % 128;
|
|||
|
if (i6 % 2 != 0) {
|
|||
|
int i7 = 74 / 0;
|
|||
|
}
|
|||
|
return obj;
|
|||
|
}
|
|||
|
|
|||
|
private static int b(byte[] bArr, int[] iArr) {
|
|||
|
int i2 = 2 % 2;
|
|||
|
int i3 = n + 61;
|
|||
|
l = i3 % 128;
|
|||
|
int i4 = i3 % 2;
|
|||
|
int i5 = iArr[0];
|
|||
|
int i6 = 0;
|
|||
|
for (int i7 = 0; i7 < 4; i7++) {
|
|||
|
int i8 = l + 59;
|
|||
|
n = i8 % 128;
|
|||
|
int i9 = i8 % 2;
|
|||
|
i6 = (i6 << 8) | (bArr[i5] & UnsignedBytes.MAX_VALUE);
|
|||
|
i5 = (i5 + 1) % bArr.length;
|
|||
|
}
|
|||
|
iArr[0] = i5;
|
|||
|
return i6;
|
|||
|
}
|
|||
|
|
|||
|
private static byte e(char c2) {
|
|||
|
return ((Byte) c(new Object[]{Character.valueOf(c2)}, -1792113877, 1792113877, (int) System.currentTimeMillis())).byteValue();
|
|||
|
}
|
|||
|
|
|||
|
static {
|
|||
|
l = 0;
|
|||
|
e();
|
|||
|
b = new int[]{608135816, -2052912941, 320440878, 57701188, -1542899678, 698298832, 137296536, -330404727, 1160258022, 953160567, -1101764913, 887688300, -1062458953, -914599715, 1065670069, -1253635817, -1843997223, -1988494565};
|
|||
|
int[] iArr = new int[1024];
|
|||
|
ByteBuffer.wrap("Ñ1\u000b¦\u0098ßµ¬/ýrÛÐ\u001aß·¸á¯íj&~\u0096º|\u0090Eñ,\u007f\u0099$¡\u0099G³\u0091l÷\b\u0001òâ\u0085\u008eü\u0016ci ØqWNi¤Xþ£ô\u0093=~\r\u0095t\u008fr\u008e¶Xq\u008bÍX\u0082\u0015Jî{T¤\u001dÂZYµ\u009c0Õ9*ò`\u0013ÅÑ°#(`\u0085ðÊAy\u0018¸Û8ï\u008eyÜ°`:\u0018\u000el\u009e\u000e\u008b°\u001e\u008a>×\u0015wÁ½1K'x¯/ÚU`\\`æU%óªU«\u0094WH\u0098bcè\u0014@UÊ9j*«\u0010¶´Ì\\4\u0011AèΡT\u0086¯|ré\u0093³î\u0014\u0011co¼*+©Å]t\u00181öÎ\\>\u0016\u009b\u0087\u0093\u001e¯Öº3l$Ï\\z2S\u0081(\u0095\u0086w;\u008fH\u0098kK¹¯Ä¿è\u001bf(!\u0093aØ\tÌû!©\u0091H|¬`]ì\u00802ï\u0084]]é\u0085u±Ü&#\u0002ëe\u001b\u0088#\u0089>\u0081Ó\u0096¬Å\u000fmoó\u0083ôB9.\u000bD\u0082¤\u0084 \u0004iÈðJ\u009e\u001f\u009b^!ÆhBöél\u009ag\f\u009ca«Ó\u0088ðjQ ÒØT/h\u0096\u000f§(«Q3£nï\u000bl\u0013z;äº;ðP~û*\u0098¡ñe\u001d9¯\u0001vfÊY>\u0082C\u000e\u0088\u008cî\u0086\u0019Eo\u009f´}\u0084¥Ã;\u008b^¾àouØ\u0085Á s@\u001aD\u009fVÁj¦NÓªb6?w\u0006\u001bþßrB\u009b\u0002=7Ð×$Ð\n\u0012HÛ\u000fêÓIñÀ\u009b\u0007SrÉ\u0080\u0099\u001b{%ÔyØöèÞ÷ãþP\u001a¶yL;\u0097là½\u0004À\u0006ºÁ©O¶@\u009f`Ä^\\\u009eÂ\u0019j$chûo¯>lSµ\u00139²ë;RìomüQ\u001f\u009b0\u0095,Ì\u0081ED¯^½\t¾ãÐ\u0004Þ3Jýf\u000f(\u0007\u0019.K³À˨WEÈt\u000fÒ\u000b_9¹ÓûÛUyÀ½\u001a`2\nÖ¡\u0000Æ@,ryg\u009f%þû\u001f£Ì\u008e¥éøÛ2\"ø<u\u0016ßýak\u0015/P\u001eÈ\u00ad\u0005R«2=µúý#\u0087`S1{H>\u0000ß\u0082\u009e\\W»Êo\u008c \u001a\u0087V.ß\u0017iÛÕB¨ö(~ÿìg2Æ\u008cOUsi['°»ÊXÈáÿ£]¸ð\u0011 \u0010ú=\u0098ý!\u0083¸Jüµl-ÑÓ[\u009aSäy¶øEeÒ\u008eI¼Kû\u0097\u0090áÝòÚ¤Ë~3bû\u0013AÎäÆèï ÊÚ6wL\u0001Ð~\u009eþ+ñ\u001f´\u0095ÛÚM®\u0090\u0091\u0098ê\u00ad\u008eqk\u0093Õ Ð\u008eÑЯÇ%à\u008e<[/\u008eu\u0094·\u008föâûò\u0012+d\u0088\u0088¸\u0012\u0090\rð\u001cO\u00ad^ h\u008fÃ\u001cÑÏñ\u0091³¨Á\u00ad//\"\u0018¾\u000e\u0017wêu-þ\u008b\u0002\u001f¡å Ì\u000fµotè\u0018¬óÖÎ\u0089â\u0099´¨Oàý\u0013à·|Ä;\u0081Ò\u00ad¨Ù\u0016_¢f\u0080\u0095w\u0005\u0093Ìs\u0014!\u001a\u0014wæ\u00ad ewµú\u0086ÇTBõû\u009d5Ïëͯ\f{>\u0089 ÖA\u001bÓ®\u001e~I\u0000%\u000e- q³^\"h\u0000»W¸à¯$d6\u009bð\t¹\u001eUc\u0091\u001dYߦªxÁC\u0089ÙZS\u007f }[¢\u0002å¹Å\u0083&\u0003vb\u0095Ï©\u0011È\u0019hNsJA³G-Ê{\u0014©J\u001bQ\u0000R\u009aS)\u0015Ö\u000fW?¼\u009bÆä+`¤v\u0081æt\u0000\bºoµW\u001bé\u001fò\u0096ìk*\rÙ\u0015¶ce!ç¹ù¶ÿ4\u0005.Å\u0085VdS°-]©\u009f\u008f¡\bºG\u0099n\u0085\u0007jKzpéµ³)DÛu\t.Ä\u0019&#\u00adn¦°I§ß}\u009cî`¸\u008fí²fìª\u008cqi\u009a\u0017ÿVdRl±\u009eá\u00196\u0002¥u\tL) Y\u0013@ä\u0018:>?T\u0098\u009a[B\u009dek\u008fäÖ\u0099÷?Ö¡Ò\u009c\u0007ïè0õM-8æð%]ÁLÝ \u0086\u0084pë&c\u0082éÆ\u0002\u001eÌ^\thk?>ºïÉ<\u0097\u0018\u0014kjp¡h\u007f5\u0084R â\u0086·\u009cS\u0005ªP\u00077>\u0007\u0084\u001c\u007fÞ®\\\u008e}DìW\u0016ò¸°:Ú7ðP\f\rð\u001c\u001f\u0004\u0002\u0000³ÿ®\fõ\u001a<µt²%\u0083zXÜ\t!½Ñ\u0091\u0013ù|©/ö\u00942Gs\"õG\u0001:åå\u00817ÂÚÜȵv4\u009aóݧ©DaF\u000fÐ\u0003\u000eìÈÇ>¤u\u001eAâ8Í\u0099;ê\u000e/2\u0080»¡\u0018>³1NT\u008b8Om¹\boB\r\u0003ö\n\u0004¿,¸\u0012\u0090$\u0097|yVy°r¼¯\u0089¯Þ\u009aw\u001fÙ\u0093\b\u0010³\u008b®\u0012ÜÏ?.U\u0012r\u001f.kq$P\u001aÝæ\u009f\u0084Í\u0087zXG\u0018t\bÚ\u0017¼\u009f\u009a¼éK}\u008cìzì:Û\u0085\u001dúc\tCfÄdÃÒï\u001c\u0018G2\u0015Ù\bÝC;7$º\u0016\u0012¡MC*eÄQP\u0094\u0000\u0002\u0013:äÝqßø\u009e\u00101NU\u0081¬wÖ_\u0011\u0019\u009b\u00045Vñ×£Çk<\u0011\u0018;Y$¥\tò\u008fæí\u0097ñûú\u009eº¿,\u001e\u0015<n\u0086ãEpêéo±\u0086\u000e^\nZ>*³w\u001fç\u001cN=\u0006ú)eܹ\u0099ç\u001d\u000f\u0080>\u0089ÖRfÈ%.LÉx\u009c\u0010³jÆ\u0015\u000eº\u0094âêx¥ü<S\u001e\n-ôò÷N§6\u001d+=\u00199&\u000f\u0019Ây`R#§\b÷\u0013\u0012¶ë\u00adþnêÃ\u001ffã¼E\u0095¦{È\u0083±\u007f7Ñ\u0001\u008
|
|||
|
c = iArr;
|
|||
|
a = new int[]{1332899944, 1700884034, 1701343084, 1684370003, 1668446532, 1869963892};
|
|||
|
e = new char[]{'.', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', Matrix.MATRIX_TYPE_RANDOM_LT, 'M', 'N', 'O', 'P', 'Q', Matrix.MATRIX_TYPE_RANDOM_REGULAR, 'S', 'T', Matrix.MATRIX_TYPE_RANDOM_UT, 'V', 'W', 'X', 'Y', Matrix.MATRIX_TYPE_ZERO, 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
|
|||
|
d = new byte[]{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, Ascii.DC2, 19, Ascii.DC4, Ascii.NAK, Ascii.SYN, Ascii.ETB, Ascii.CAN, Ascii.EM, Ascii.SUB, Ascii.ESC, -1, -1, -1, -1, -1, -1, 28, 29, 30, Ascii.US, 32, 33, ISO7816.INS_MSE, 35, ISO7816.INS_CHANGE_CHV, 37, 38, 39, 40, 41, ISO7816.INS_PSO, 43, ISO7816.INS_UNBLOCK_CHV, 45, 46, 47, ISO7816.INS_DECREASE, 49, ISO7816.INS_INCREASE, 51, ISO7816.INS_DECREASE_STAMPED, 53, -1, -1, -1, -1, -1};
|
|||
|
int i2 = n + 33;
|
|||
|
l = i2 % 128;
|
|||
|
if (i2 % 2 != 0) {
|
|||
|
throw null;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|