365 lines
14 KiB
Java
365 lines
14 KiB
Java
|
package o;
|
||
|
|
||
|
import android.graphics.Color;
|
||
|
import android.os.Process;
|
||
|
import android.os.SystemClock;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.Gravity;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.MotionEvent;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.isprint.e2eea.client.util.E2EEAException;
|
||
|
import java.io.Serializable;
|
||
|
import java.lang.reflect.Method;
|
||
|
import java.util.HashMap;
|
||
|
import java.util.Map;
|
||
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class Luy {
|
||
|
private Sts b;
|
||
|
private static final byte[] $$a = {55, -34, 73, 110};
|
||
|
private static final int $$b = CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA384;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int d = 0;
|
||
|
private static int e = 1;
|
||
|
private static char[] a = {36835, 27237, 36834};
|
||
|
private static long c = -8883332706427797248L;
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX WARN: Type inference failed for: r3v3, types: [byte[], java.io.Serializable] */
|
||
|
/* JADX WARN: Type inference failed for: r3v6, types: [byte[], java.io.Serializable] */
|
||
|
public static /* synthetic */ Object b(Object[] objArr, int i, int i2, int i3) {
|
||
|
Sts sts;
|
||
|
int i4;
|
||
|
Luy luy = (Luy) objArr[0];
|
||
|
String str = (String) objArr[1];
|
||
|
int i5 = 2 % 2;
|
||
|
int i6 = d + 77;
|
||
|
e = i6 % 128;
|
||
|
if (i6 % 2 == 0) {
|
||
|
luy.b.d("CIPHER_PARAM_ENCRYPTION_MODE", Boolean.TRUE);
|
||
|
luy.b.d("CIPHER_PARAM_ENCRYPTION_MODE_BYTES", a(str));
|
||
|
sts = luy.b;
|
||
|
i4 = 124;
|
||
|
} else {
|
||
|
luy.b.d("CIPHER_PARAM_ENCRYPTION_MODE", Boolean.TRUE);
|
||
|
luy.b.d("CIPHER_PARAM_ENCRYPTION_MODE_BYTES", a(str));
|
||
|
sts = luy.b;
|
||
|
i4 = 16;
|
||
|
}
|
||
|
sts.d("CIPHER_PARAM_ENCRYPTION_MODE_KEYLENGTH", Integer.valueOf(i4));
|
||
|
return luy;
|
||
|
}
|
||
|
|
||
|
private static void g(short s, int i, int i2, Object[] objArr) {
|
||
|
int i3 = i2 + 98;
|
||
|
byte[] bArr = $$a;
|
||
|
int i4 = s * 2;
|
||
|
int i5 = (i * 4) + 4;
|
||
|
byte[] bArr2 = new byte[i4 + 1];
|
||
|
int i6 = -1;
|
||
|
if (bArr == null) {
|
||
|
i3 = i5 + i3;
|
||
|
i5++;
|
||
|
}
|
||
|
while (true) {
|
||
|
i6++;
|
||
|
bArr2[i6] = (byte) i3;
|
||
|
if (i6 == i4) {
|
||
|
objArr[0] = new String(bArr2, 0);
|
||
|
return;
|
||
|
}
|
||
|
int i7 = i3;
|
||
|
int i8 = i5 + 1;
|
||
|
i3 = i7 + bArr[i5];
|
||
|
i5 = i8;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX WARN: Type inference failed for: r1v4, types: [byte[], java.io.Serializable] */
|
||
|
private Luy() {
|
||
|
Sts sts = new Sts((byte) 0);
|
||
|
this.b = sts;
|
||
|
Object[] objArr = new Object[1];
|
||
|
f((char) TextUtils.getOffsetAfter("", 0), Color.blue(0), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), objArr);
|
||
|
sts.d("MESSAGE_VERSION", Ymn.d(((String) objArr[0]).intern()));
|
||
|
this.b.d("MASTER_KEY_VERSION", (byte) 1);
|
||
|
this.b.d("MASTER_KEY_USAGE", (byte) 1);
|
||
|
this.b.d("MASTER_KEY_KEYLENGTH", 48);
|
||
|
e("NONE-SHORT");
|
||
|
c(10);
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX WARN: Type inference failed for: r5v1, types: [byte[], java.io.Serializable] */
|
||
|
public final Luy e(String str) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 23;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
this.b.d("CIPHER_PARAM_HASH_MODE", Boolean.TRUE);
|
||
|
this.b.d("CIPHER_PARAM_HASH_MODE_BYTES", c(str));
|
||
|
int i4 = d + 87;
|
||
|
e = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX WARN: Type inference failed for: r5v2, types: [byte[], java.io.Serializable] */
|
||
|
/* JADX WARN: Type inference failed for: r5v5, types: [byte[], java.io.Serializable] */
|
||
|
public final Luy c(int i) {
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = e + 93;
|
||
|
d = i3 % 128;
|
||
|
if (i3 % 2 == 0) {
|
||
|
this.b.d("CIPHER_PARAM_MESSAGE_TYPE", Boolean.TRUE);
|
||
|
this.b.d("CIPHER_PARAM_MESSAGE_TYPE_BYTES", Ymn.d(String.valueOf(i)));
|
||
|
return this;
|
||
|
}
|
||
|
this.b.d("CIPHER_PARAM_MESSAGE_TYPE", Boolean.TRUE);
|
||
|
this.b.d("CIPHER_PARAM_MESSAGE_TYPE_BYTES", Ymn.d(String.valueOf(i)));
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
public static Luy c() {
|
||
|
int i = 2 % 2;
|
||
|
Luy luy = new Luy();
|
||
|
int i2 = e + 13;
|
||
|
d = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
int i3 = 60 / 0;
|
||
|
}
|
||
|
return luy;
|
||
|
}
|
||
|
|
||
|
private static byte[] c(String str) {
|
||
|
byte[] bArr;
|
||
|
int i = 2 % 2;
|
||
|
if ("NONE-SHORT".equals(str)) {
|
||
|
Object[] objArr = new Object[1];
|
||
|
f((char) TextUtils.getOffsetAfter("", 0), (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 1, 1 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), objArr);
|
||
|
bArr = Ymn.d(((String) objArr[0]).intern());
|
||
|
} else {
|
||
|
if ("MD5-CLEAR".equals(str)) {
|
||
|
throw new E2EEAException.NotImplemented();
|
||
|
}
|
||
|
if ("MD5-XOR".equals(str)) {
|
||
|
throw new E2EEAException.NotImplemented();
|
||
|
}
|
||
|
if ("SHA1-XOR".equals(str)) {
|
||
|
throw new E2EEAException.NotImplemented();
|
||
|
}
|
||
|
if (!"NONE-LONG".equals(str)) {
|
||
|
int i2 = e + 53;
|
||
|
d = i2 % 128;
|
||
|
Object obj = null;
|
||
|
if (i2 % 2 != 0) {
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
bArr = null;
|
||
|
} else {
|
||
|
throw new E2EEAException.NotImplemented();
|
||
|
}
|
||
|
}
|
||
|
int i3 = d + 55;
|
||
|
e = i3 % 128;
|
||
|
if (i3 % 2 == 0) {
|
||
|
int i4 = 35 / 0;
|
||
|
}
|
||
|
return bArr;
|
||
|
}
|
||
|
|
||
|
private static byte[] a(String str) {
|
||
|
Object obj;
|
||
|
int i = 2 % 2;
|
||
|
if (!"DES-ECB".equals(str)) {
|
||
|
if (!"DES-CBC".equals(str)) {
|
||
|
return null;
|
||
|
}
|
||
|
int i2 = d + 15;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
Object[] objArr = new Object[1];
|
||
|
f((char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 58756), (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr);
|
||
|
return Ymn.d(((String) objArr[0]).intern());
|
||
|
}
|
||
|
int i4 = e + 115;
|
||
|
d = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
f((char) TextUtils.getTrimmedLength(""), KeyEvent.getMaxKeyCode() >> 8, 1 >> (Process.myTid() >> 108), objArr2);
|
||
|
obj = objArr2[0];
|
||
|
} else {
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
f((char) TextUtils.getTrimmedLength(""), KeyEvent.getMaxKeyCode() >> 16, 1 - (Process.myTid() >> 22), objArr3);
|
||
|
obj = objArr3[0];
|
||
|
}
|
||
|
return Ymn.d(((String) obj).intern());
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static class Sts {
|
||
|
Map<String, Serializable> c;
|
||
|
|
||
|
/* synthetic */ Sts(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
|
||
|
private Sts() {
|
||
|
this.c = new HashMap();
|
||
|
}
|
||
|
|
||
|
final void d(String str, Serializable serializable) {
|
||
|
if (serializable == null && this.c.containsKey(str)) {
|
||
|
this.c.remove(str);
|
||
|
} else {
|
||
|
this.c.put(str, serializable);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static void f(char c2, int i, int i2, Object[] objArr) {
|
||
|
char c3;
|
||
|
int i3 = 2 % 2;
|
||
|
dQY dqy = new dQY();
|
||
|
long[] jArr = new long[i2];
|
||
|
dqy.a = 0;
|
||
|
int i4 = $11 + 33;
|
||
|
$10 = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
while (true) {
|
||
|
c3 = '0';
|
||
|
if (dqy.a >= i2) {
|
||
|
break;
|
||
|
}
|
||
|
int i6 = $11 + 79;
|
||
|
$10 = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
int i8 = dqy.a;
|
||
|
try {
|
||
|
Object[] objArr2 = {Integer.valueOf(a[i + dqy.a])};
|
||
|
Object obj = xzZ.y.get(1095064095);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c(309 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), 5 - (KeyEvent.getMaxKeyCode() >> 16), (char) (32796 - TextUtils.indexOf((CharSequence) "", '0', 0, 0)));
|
||
|
byte b = (byte) 0;
|
||
|
byte b2 = b;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
g(b, b2, b2, objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
||
|
xzZ.y.put(1095064095, obj);
|
||
|
}
|
||
|
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(c), Integer.valueOf(c2)};
|
||
|
Object obj2 = xzZ.y.get(-548438098);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(411 - MotionEvent.axisFromString(""), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16));
|
||
|
byte b3 = (byte) 0;
|
||
|
byte b4 = b3;
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
g(b3, b4, (byte) (b4 + 1), objArr5);
|
||
|
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(-548438098, obj2);
|
||
|
}
|
||
|
jArr[i8] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
|
||
|
Object[] objArr6 = {dqy, dqy};
|
||
|
Object obj3 = xzZ.y.get(1071125919);
|
||
|
if (obj3 == null) {
|
||
|
Class cls3 = (Class) xzZ.c(408 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), 5 - Color.green(0), (char) (29235 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1))));
|
||
|
byte b5 = (byte) 0;
|
||
|
byte b6 = b5;
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
g(b5, b6, (byte) (b6 | 8), objArr7);
|
||
|
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1071125919, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(null, objArr6);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
char[] cArr = new char[i2];
|
||
|
dqy.a = 0;
|
||
|
while (dqy.a < i2) {
|
||
|
int i9 = $10 + 109;
|
||
|
$11 = i9 % 128;
|
||
|
if (i9 % 2 == 0) {
|
||
|
cArr[dqy.a] = (char) jArr[dqy.a];
|
||
|
try {
|
||
|
Object[] objArr8 = {dqy, dqy};
|
||
|
Object obj4 = xzZ.y.get(1071125919);
|
||
|
if (obj4 == null) {
|
||
|
Class cls4 = (Class) xzZ.c(407 - TextUtils.getCapsMode("", 0, 0), 5 - Gravity.getAbsoluteGravity(0, 0), (char) (29234 - (ViewConfiguration.getScrollBarSize() >> 8)));
|
||
|
byte b7 = (byte) 0;
|
||
|
byte b8 = b7;
|
||
|
Object[] objArr9 = new Object[1];
|
||
|
g(b7, b8, (byte) (b8 | 8), objArr9);
|
||
|
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1071125919, obj4);
|
||
|
}
|
||
|
((Method) obj4).invoke(null, objArr8);
|
||
|
int i10 = 7 / 0;
|
||
|
} catch (Throwable th2) {
|
||
|
Throwable cause2 = th2.getCause();
|
||
|
if (cause2 == null) {
|
||
|
throw th2;
|
||
|
}
|
||
|
throw cause2;
|
||
|
}
|
||
|
} else {
|
||
|
cArr[dqy.a] = (char) jArr[dqy.a];
|
||
|
try {
|
||
|
Object[] objArr10 = {dqy, dqy};
|
||
|
Object obj5 = xzZ.y.get(1071125919);
|
||
|
if (obj5 == null) {
|
||
|
Class cls5 = (Class) xzZ.c((ViewConfiguration.getKeyRepeatTimeout() >> 16) + 407, TextUtils.indexOf("", c3, 0) + 6, (char) (29234 - ExpandableListView.getPackedPositionType(0L)));
|
||
|
byte b9 = (byte) 0;
|
||
|
byte b10 = b9;
|
||
|
Object[] objArr11 = new Object[1];
|
||
|
g(b9, b10, (byte) (b10 | 8), objArr11);
|
||
|
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1071125919, obj5);
|
||
|
}
|
||
|
((Method) obj5).invoke(null, objArr10);
|
||
|
} catch (Throwable th3) {
|
||
|
Throwable cause3 = th3.getCause();
|
||
|
if (cause3 == null) {
|
||
|
throw th3;
|
||
|
}
|
||
|
throw cause3;
|
||
|
}
|
||
|
}
|
||
|
c3 = '0';
|
||
|
}
|
||
|
objArr[0] = new String(cArr);
|
||
|
}
|
||
|
|
||
|
public final Luy b(String str) {
|
||
|
return (Luy) b(new Object[]{this, str}, -322528280, 322528280, System.identityHashCode(this));
|
||
|
}
|
||
|
|
||
|
public final Sts a() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 51;
|
||
|
int i3 = i2 % 128;
|
||
|
d = i3;
|
||
|
int i4 = i2 % 2;
|
||
|
Sts sts = this.b;
|
||
|
int i5 = i3 + 11;
|
||
|
e = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
return sts;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
}
|