683 lines
26 KiB
Java
683 lines
26 KiB
Java
|
package org.bouncycastle.asn1;
|
||
|
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
import android.media.AudioTrack;
|
||
|
import android.os.Process;
|
||
|
import android.telephony.cdma.CdmaCellLocation;
|
||
|
import android.text.TextUtils;
|
||
|
import android.util.TypedValue;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.pingan.ai.p;
|
||
|
import java.io.IOException;
|
||
|
import java.lang.reflect.Method;
|
||
|
import java.text.ParseException;
|
||
|
import java.text.SimpleDateFormat;
|
||
|
import java.util.Date;
|
||
|
import java.util.Locale;
|
||
|
import java.util.SimpleTimeZone;
|
||
|
import java.util.TimeZone;
|
||
|
import o.Nhs;
|
||
|
import o.xzZ;
|
||
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
||
|
import org.bouncycastle.util.Arrays;
|
||
|
import org.bouncycastle.util.Strings;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class ASN1GeneralizedTime extends ASN1Primitive {
|
||
|
private byte[] time;
|
||
|
private static final byte[] $$a = {46, -23, 1, -23};
|
||
|
private static final int $$b = CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int b = 0;
|
||
|
private static int d = 1;
|
||
|
private static long e = 9051040786702654117L;
|
||
|
private static int a = 452713125;
|
||
|
private static char c = 17540;
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002d). 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 g(short r6, int r7, short r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
byte[] r0 = org.bouncycastle.asn1.ASN1GeneralizedTime.$$a
|
||
|
int r6 = r6 * 4
|
||
|
int r6 = 4 - r6
|
||
|
int r7 = 115 - r7
|
||
|
int r8 = r8 * 3
|
||
|
int r1 = r8 + 1
|
||
|
byte[] r1 = new byte[r1]
|
||
|
r2 = 0
|
||
|
if (r0 != 0) goto L15
|
||
|
r3 = r7
|
||
|
r4 = r2
|
||
|
r7 = r6
|
||
|
goto L2d
|
||
|
L15:
|
||
|
r3 = r2
|
||
|
L16:
|
||
|
r5 = r7
|
||
|
r7 = r6
|
||
|
r6 = r5
|
||
|
byte r4 = (byte) r6
|
||
|
r1[r3] = r4
|
||
|
int r4 = r3 + 1
|
||
|
if (r3 != r8) goto L28
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r1, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L28:
|
||
|
r3 = r0[r7]
|
||
|
r5 = r7
|
||
|
r7 = r6
|
||
|
r6 = r5
|
||
|
L2d:
|
||
|
int r6 = r6 + 1
|
||
|
int r7 = r7 + r3
|
||
|
r3 = r4
|
||
|
goto L16
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: org.bouncycastle.asn1.ASN1GeneralizedTime.g(short, int, short, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
private static void f(char c2, int i, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) {
|
||
|
int i2 = 2;
|
||
|
int i3 = 2 % 2;
|
||
|
Nhs nhs = new Nhs();
|
||
|
int length = cArr.length;
|
||
|
char[] cArr4 = new char[length];
|
||
|
int length2 = cArr3.length;
|
||
|
char[] cArr5 = new char[length2];
|
||
|
System.arraycopy(cArr, 0, cArr4, 0, length);
|
||
|
System.arraycopy(cArr3, 0, cArr5, 0, length2);
|
||
|
cArr4[0] = (char) (cArr4[0] ^ c2);
|
||
|
cArr5[2] = (char) (cArr5[2] + ((char) i));
|
||
|
int length3 = cArr2.length;
|
||
|
char[] cArr6 = new char[length3];
|
||
|
nhs.a = 0;
|
||
|
while (nhs.a < length3) {
|
||
|
int i4 = $10 + 7;
|
||
|
$11 = i4 % 128;
|
||
|
int i5 = i4 % i2;
|
||
|
try {
|
||
|
Object[] objArr2 = {nhs};
|
||
|
Object obj = xzZ.y.get(263693715);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c(45 - ExpandableListView.getPackedPositionType(0L), (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0', 0) + 1))).getMethod("t", Object.class);
|
||
|
xzZ.y.put(263693715, obj);
|
||
|
}
|
||
|
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
|
||
|
try {
|
||
|
Object[] objArr3 = {nhs};
|
||
|
Object obj2 = xzZ.y.get(-484664112);
|
||
|
if (obj2 == null) {
|
||
|
Class cls = (Class) xzZ.c((KeyEvent.getMaxKeyCode() >> 16) + 352, 5 - Drawable.resolveOpacity(0, 0), (char) (TextUtils.indexOf("", "", 0, 0) + 52128));
|
||
|
byte b2 = (byte) ($$a[i2] - 1);
|
||
|
byte b3 = b2;
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
g(b2, b3, b3, objArr4);
|
||
|
obj2 = cls.getMethod((String) objArr4[0], Object.class);
|
||
|
xzZ.y.put(-484664112, obj2);
|
||
|
}
|
||
|
int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
|
||
|
try {
|
||
|
Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])};
|
||
|
Object obj3 = xzZ.y.get(430099516);
|
||
|
if (obj3 == null) {
|
||
|
obj3 = ((Class) xzZ.c((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 747, Process.getGidForName("") + 6, (char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod(p.a, Object.class, Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(430099516, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(null, objArr5);
|
||
|
try {
|
||
|
Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])};
|
||
|
Object obj4 = xzZ.y.get(1019894806);
|
||
|
if (obj4 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(402 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) (Process.getGidForName("") + 21609));
|
||
|
byte b4 = $$a[2];
|
||
|
byte b5 = (byte) (b4 - 1);
|
||
|
byte b6 = b4;
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
g(b5, b6, (byte) (b6 - 1), objArr7);
|
||
|
obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(1019894806, obj4);
|
||
|
}
|
||
|
cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
|
||
|
cArr4[intValue2] = nhs.c;
|
||
|
cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr2[nhs.a]) ^ (e ^ 9051040786702654117L)) ^ ((int) (a ^ 9051040786702654117L))) ^ ((char) (c ^ 9051040786702654117L)));
|
||
|
nhs.a++;
|
||
|
i2 = 2;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
} catch (Throwable th2) {
|
||
|
Throwable cause2 = th2.getCause();
|
||
|
if (cause2 == null) {
|
||
|
throw th2;
|
||
|
}
|
||
|
throw cause2;
|
||
|
}
|
||
|
} catch (Throwable th3) {
|
||
|
Throwable cause3 = th3.getCause();
|
||
|
if (cause3 == null) {
|
||
|
throw th3;
|
||
|
}
|
||
|
throw cause3;
|
||
|
}
|
||
|
} catch (Throwable th4) {
|
||
|
Throwable cause4 = th4.getCause();
|
||
|
if (cause4 == null) {
|
||
|
throw th4;
|
||
|
}
|
||
|
throw cause4;
|
||
|
}
|
||
|
}
|
||
|
String str = new String(cArr6);
|
||
|
int i6 = $10 + 33;
|
||
|
$11 = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
objArr[0] = str;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // org.bouncycastle.asn1.ASN1Primitive
|
||
|
public boolean isConstructed() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 59;
|
||
|
int i3 = i2 % 128;
|
||
|
b = i3;
|
||
|
int i4 = i2 % 2;
|
||
|
int i5 = i3 + 107;
|
||
|
d = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1Primitive, org.bouncycastle.asn1.ASN1Object
|
||
|
public int hashCode() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 71;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
int hashCode = Arrays.hashCode(this.time);
|
||
|
int i4 = d + 69;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
return hashCode;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
public String getTimeString() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 69;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
byte[] bArr = this.time;
|
||
|
if (i3 == 0) {
|
||
|
return Strings.fromByteArray(bArr);
|
||
|
}
|
||
|
int i4 = 17 / 0;
|
||
|
return Strings.fromByteArray(bArr);
|
||
|
}
|
||
|
|
||
|
public String getTime() {
|
||
|
StringBuilder sb;
|
||
|
String str;
|
||
|
int i = 2 % 2;
|
||
|
String fromByteArray = Strings.fromByteArray(this.time);
|
||
|
if (fromByteArray.charAt(fromByteArray.length() - 1) != 'Z') {
|
||
|
int length = fromByteArray.length();
|
||
|
int i2 = length - 5;
|
||
|
char charAt = fromByteArray.charAt(i2);
|
||
|
if (charAt != '-') {
|
||
|
int i3 = b + 51;
|
||
|
int i4 = i3 % 128;
|
||
|
d = i4;
|
||
|
int i5 = i3 % 2;
|
||
|
if (charAt != '+') {
|
||
|
int i6 = i4 + 95;
|
||
|
b = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
int length2 = fromByteArray.length() - 3;
|
||
|
char charAt2 = fromByteArray.charAt(length2);
|
||
|
if (charAt2 == '-' || charAt2 == '+') {
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append(fromByteArray.substring(0, length2));
|
||
|
sb2.append("GMT");
|
||
|
sb2.append(fromByteArray.substring(length2));
|
||
|
int i8 = d + 55;
|
||
|
b = i8 % 128;
|
||
|
if (i8 % 2 != 0) {
|
||
|
int i9 = 3 / 2;
|
||
|
}
|
||
|
str = ":00";
|
||
|
sb = sb2;
|
||
|
} else {
|
||
|
sb = new StringBuilder();
|
||
|
sb.append(fromByteArray);
|
||
|
str = calculateGMTOffset();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
StringBuilder sb3 = new StringBuilder();
|
||
|
sb3.append(fromByteArray.substring(0, i2));
|
||
|
sb3.append("GMT");
|
||
|
int i10 = length - 2;
|
||
|
sb3.append(fromByteArray.substring(i2, i10));
|
||
|
sb3.append(":");
|
||
|
sb3.append(fromByteArray.substring(i10));
|
||
|
sb = sb3;
|
||
|
return sb.toString();
|
||
|
}
|
||
|
sb = new StringBuilder();
|
||
|
sb.append(fromByteArray.substring(0, fromByteArray.length() - 1));
|
||
|
int i11 = d + 81;
|
||
|
b = i11 % 128;
|
||
|
if (i11 % 2 != 0) {
|
||
|
int i12 = 4 % 2;
|
||
|
}
|
||
|
str = "GMT+00:00";
|
||
|
sb.append(str);
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x008f */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:38:0x01cf A[RETURN] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:40:0x01d0 */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public java.util.Date getDate() throws java.text.ParseException {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 504
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: org.bouncycastle.asn1.ASN1GeneralizedTime.getDate():java.util.Date");
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // org.bouncycastle.asn1.ASN1Primitive
|
||
|
public int encodedLength() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 41;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
byte[] bArr = this.time;
|
||
|
if (i3 != 0) {
|
||
|
int length = bArr.length;
|
||
|
return (StreamUtil.calculateBodyLength(length) % 0) * length;
|
||
|
}
|
||
|
int length2 = bArr.length;
|
||
|
return StreamUtil.calculateBodyLength(length2) + 1 + length2;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // org.bouncycastle.asn1.ASN1Primitive
|
||
|
public void encode(ASN1OutputStream aSN1OutputStream) throws IOException {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 15;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
aSN1OutputStream.writeEncoded(24, this.time);
|
||
|
int i4 = d + 99;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1Primitive
|
||
|
boolean asn1Equals(ASN1Primitive aSN1Primitive) {
|
||
|
int i = 2 % 2;
|
||
|
if (aSN1Primitive instanceof ASN1GeneralizedTime) {
|
||
|
return Arrays.areEqual(this.time, ((ASN1GeneralizedTime) aSN1Primitive).time);
|
||
|
}
|
||
|
int i2 = d + 113;
|
||
|
int i3 = i2 % 128;
|
||
|
b = i3;
|
||
|
int i4 = i2 % 2;
|
||
|
int i5 = i3 + 39;
|
||
|
d = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
return false;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x003b */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0040 */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private boolean hasFractionalSeconds() {
|
||
|
/*
|
||
|
r6 = this;
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = org.bouncycastle.asn1.ASN1GeneralizedTime.b
|
||
|
int r1 = r1 + 67
|
||
|
int r2 = r1 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.d = r2
|
||
|
int r1 = r1 % r0
|
||
|
int r2 = r2 + 121
|
||
|
int r1 = r2 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.b = r1
|
||
|
int r2 = r2 % r0
|
||
|
r1 = 0
|
||
|
r2 = r1
|
||
|
L15:
|
||
|
byte[] r3 = r6.time
|
||
|
int r4 = r3.length
|
||
|
if (r2 == r4) goto L5c
|
||
|
int r4 = org.bouncycastle.asn1.ASN1GeneralizedTime.d
|
||
|
int r4 = r4 + 103
|
||
|
int r5 = r4 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.b = r5
|
||
|
int r4 = r4 % r0
|
||
|
if (r4 == 0) goto L2c
|
||
|
r3 = r3[r2]
|
||
|
r4 = 118(0x76, float:1.65E-43)
|
||
|
if (r3 != r4) goto L59
|
||
|
goto L32
|
||
|
L2c:
|
||
|
r3 = r3[r2]
|
||
|
r4 = 46
|
||
|
if (r3 != r4) goto L59
|
||
|
L32:
|
||
|
int r5 = r5 + 41
|
||
|
int r3 = r5 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.d = r3
|
||
|
int r5 = r5 % r0
|
||
|
if (r5 != 0) goto L40
|
||
|
r4 = 89
|
||
|
if (r2 != r4) goto L59
|
||
|
goto L44
|
||
|
L40:
|
||
|
r4 = 14
|
||
|
if (r2 != r4) goto L59
|
||
|
L44:
|
||
|
int r2 = r3 + 77
|
||
|
int r4 = r2 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.b = r4
|
||
|
int r2 = r2 % r0
|
||
|
int r3 = r3 + 91
|
||
|
int r2 = r3 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.b = r2
|
||
|
int r3 = r3 % r0
|
||
|
r0 = 1
|
||
|
if (r3 == 0) goto L58
|
||
|
r2 = 76
|
||
|
int r2 = r2 / r1
|
||
|
L58:
|
||
|
return r0
|
||
|
L59:
|
||
|
int r2 = r2 + 1
|
||
|
goto L15
|
||
|
L5c:
|
||
|
return r1
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: org.bouncycastle.asn1.ASN1GeneralizedTime.hasFractionalSeconds():boolean");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x002b, code lost:
|
||
|
|
||
|
if ((r3 instanceof org.bouncycastle.asn1.ASN1GeneralizedTime) == false) goto L12;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:6:0x0026, code lost:
|
||
|
|
||
|
if ((r3 instanceof org.bouncycastle.asn1.ASN1GeneralizedTime) == false) goto L12;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x0038, code lost:
|
||
|
|
||
|
return new org.bouncycastle.asn1.ASN1GeneralizedTime(((org.bouncycastle.asn1.ASN1OctetString) r3).getOctets());
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static org.bouncycastle.asn1.ASN1GeneralizedTime getInstance(org.bouncycastle.asn1.ASN1TaggedObject r3, boolean r4) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = org.bouncycastle.asn1.ASN1GeneralizedTime.d
|
||
|
int r1 = r1 + 9
|
||
|
int r2 = r1 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.b = r2
|
||
|
int r1 = r1 % r0
|
||
|
org.bouncycastle.asn1.ASN1Primitive r3 = r3.getObject()
|
||
|
r1 = 1
|
||
|
r4 = r4 ^ r1
|
||
|
if (r4 == r1) goto L15
|
||
|
goto L39
|
||
|
L15:
|
||
|
int r4 = org.bouncycastle.asn1.ASN1GeneralizedTime.b
|
||
|
int r4 = r4 + 53
|
||
|
int r1 = r4 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.d = r1
|
||
|
int r4 = r4 % r0
|
||
|
if (r4 != 0) goto L29
|
||
|
boolean r4 = r3 instanceof org.bouncycastle.asn1.ASN1GeneralizedTime
|
||
|
r0 = 91
|
||
|
int r0 = r0 / 0
|
||
|
if (r4 != 0) goto L39
|
||
|
goto L2d
|
||
|
L29:
|
||
|
boolean r4 = r3 instanceof org.bouncycastle.asn1.ASN1GeneralizedTime
|
||
|
if (r4 != 0) goto L39
|
||
|
L2d:
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime r4 = new org.bouncycastle.asn1.ASN1GeneralizedTime
|
||
|
org.bouncycastle.asn1.ASN1OctetString r3 = (org.bouncycastle.asn1.ASN1OctetString) r3
|
||
|
byte[] r3 = r3.getOctets()
|
||
|
r4.<init>(r3)
|
||
|
return r4
|
||
|
L39:
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime r3 = getInstance(r3)
|
||
|
return r3
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: org.bouncycastle.asn1.ASN1GeneralizedTime.getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean):org.bouncycastle.asn1.ASN1GeneralizedTime");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x0051, code lost:
|
||
|
|
||
|
r1 = new java.lang.StringBuilder("illegal object in getInstance: ");
|
||
|
r1.append(r3.getClass().getName());
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x006c, code lost:
|
||
|
|
||
|
throw new java.lang.IllegalArgumentException(r1.toString());
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x0037, code lost:
|
||
|
|
||
|
return (org.bouncycastle.asn1.ASN1GeneralizedTime) fromByteArray((byte[]) r3);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x0038, code lost:
|
||
|
|
||
|
r3 = move-exception;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:18:0x0039, code lost:
|
||
|
|
||
|
r1 = new java.lang.StringBuilder("encoding error in getInstance: ");
|
||
|
r1.append(r3.toString());
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:19:0x0050, code lost:
|
||
|
|
||
|
throw new java.lang.IllegalArgumentException(r1.toString());
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:20:0x002d, code lost:
|
||
|
|
||
|
if (r0 != false) goto L24;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x002a, code lost:
|
||
|
|
||
|
if (r0 != false) goto L24;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static org.bouncycastle.asn1.ASN1GeneralizedTime getInstance(java.lang.Object r3) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = org.bouncycastle.asn1.ASN1GeneralizedTime.b
|
||
|
int r1 = r1 + 55
|
||
|
int r2 = r1 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.d = r2
|
||
|
int r1 = r1 % r0
|
||
|
if (r1 == 0) goto L70
|
||
|
if (r3 == 0) goto L6d
|
||
|
int r2 = r2 + 17
|
||
|
int r1 = r2 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.b = r1
|
||
|
int r2 = r2 % r0
|
||
|
boolean r2 = r3 instanceof org.bouncycastle.asn1.ASN1GeneralizedTime
|
||
|
if (r2 != 0) goto L6d
|
||
|
int r1 = r1 + 109
|
||
|
int r2 = r1 % 128
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime.d = r2
|
||
|
int r1 = r1 % r0
|
||
|
boolean r0 = r3 instanceof byte[]
|
||
|
if (r1 != 0) goto L2d
|
||
|
r1 = 95
|
||
|
int r1 = r1 / 0
|
||
|
if (r0 == 0) goto L51
|
||
|
goto L2f
|
||
|
L2d:
|
||
|
if (r0 == 0) goto L51
|
||
|
L2f:
|
||
|
byte[] r3 = (byte[]) r3 // Catch: java.lang.Exception -> L38
|
||
|
org.bouncycastle.asn1.ASN1Primitive r3 = fromByteArray(r3) // Catch: java.lang.Exception -> L38
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime r3 = (org.bouncycastle.asn1.ASN1GeneralizedTime) r3 // Catch: java.lang.Exception -> L38
|
||
|
return r3
|
||
|
L38:
|
||
|
r3 = move-exception
|
||
|
java.lang.IllegalArgumentException r0 = new java.lang.IllegalArgumentException
|
||
|
java.lang.StringBuilder r1 = new java.lang.StringBuilder
|
||
|
java.lang.String r2 = "encoding error in getInstance: "
|
||
|
r1.<init>(r2)
|
||
|
java.lang.String r3 = r3.toString()
|
||
|
r1.append(r3)
|
||
|
java.lang.String r3 = r1.toString()
|
||
|
r0.<init>(r3)
|
||
|
throw r0
|
||
|
L51:
|
||
|
java.lang.IllegalArgumentException r0 = new java.lang.IllegalArgumentException
|
||
|
java.lang.StringBuilder r1 = new java.lang.StringBuilder
|
||
|
java.lang.String r2 = "illegal object in getInstance: "
|
||
|
r1.<init>(r2)
|
||
|
java.lang.Class r3 = r3.getClass()
|
||
|
java.lang.String r3 = r3.getName()
|
||
|
r1.append(r3)
|
||
|
java.lang.String r3 = r1.toString()
|
||
|
r0.<init>(r3)
|
||
|
throw r0
|
||
|
L6d:
|
||
|
org.bouncycastle.asn1.ASN1GeneralizedTime r3 = (org.bouncycastle.asn1.ASN1GeneralizedTime) r3
|
||
|
return r3
|
||
|
L70:
|
||
|
r3 = 0
|
||
|
r3.hashCode()
|
||
|
throw r3
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: org.bouncycastle.asn1.ASN1GeneralizedTime.getInstance(java.lang.Object):org.bouncycastle.asn1.ASN1GeneralizedTime");
|
||
|
}
|
||
|
|
||
|
private String convert(int i) {
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = d + 57;
|
||
|
b = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
if (i >= 10) {
|
||
|
return Integer.toString(i);
|
||
|
}
|
||
|
Object[] objArr = new Object[1];
|
||
|
f((char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 50557), 1482471078 - TextUtils.getTrimmedLength(""), new char[]{42634, 23734, 32344, 36293}, new char[]{64756}, new char[]{0, 0, 0, 0}, objArr);
|
||
|
StringBuilder sb = new StringBuilder(((String) objArr[0]).intern());
|
||
|
sb.append(i);
|
||
|
String obj = sb.toString();
|
||
|
int i5 = d + 75;
|
||
|
b = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
return obj;
|
||
|
}
|
||
|
|
||
|
private String calculateGMTOffset() {
|
||
|
String str;
|
||
|
int i = 2 % 2;
|
||
|
TimeZone timeZone = TimeZone.getDefault();
|
||
|
int rawOffset = timeZone.getRawOffset();
|
||
|
if (rawOffset < 0) {
|
||
|
rawOffset = -rawOffset;
|
||
|
int i2 = d + 33;
|
||
|
b = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
int i3 = 4 % 3;
|
||
|
}
|
||
|
str = "-";
|
||
|
} else {
|
||
|
str = "+";
|
||
|
}
|
||
|
int i4 = rawOffset / 3600000;
|
||
|
int i5 = (rawOffset - (3600000 * i4)) / 60000;
|
||
|
try {
|
||
|
if (timeZone.useDaylightTime() && timeZone.inDaylightTime(getDate())) {
|
||
|
int i6 = d + 125;
|
||
|
b = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
i4 += str.equals("+") ? 1 : -1;
|
||
|
}
|
||
|
} catch (ParseException unused) {
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder("GMT");
|
||
|
sb.append(str);
|
||
|
sb.append(convert(i4));
|
||
|
sb.append(":");
|
||
|
sb.append(convert(i5));
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public ASN1GeneralizedTime(byte[] bArr) {
|
||
|
this.time = bArr;
|
||
|
}
|
||
|
|
||
|
public ASN1GeneralizedTime(Date date, Locale locale) {
|
||
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss'Z'", locale);
|
||
|
simpleDateFormat.setTimeZone(new SimpleTimeZone(0, "Z"));
|
||
|
this.time = Strings.toByteArray(simpleDateFormat.format(date));
|
||
|
}
|
||
|
|
||
|
public ASN1GeneralizedTime(Date date) {
|
||
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss'Z'");
|
||
|
simpleDateFormat.setTimeZone(new SimpleTimeZone(0, "Z"));
|
||
|
this.time = Strings.toByteArray(simpleDateFormat.format(date));
|
||
|
}
|
||
|
|
||
|
public ASN1GeneralizedTime(String str) {
|
||
|
this.time = Strings.toByteArray(str);
|
||
|
try {
|
||
|
getDate();
|
||
|
} catch (ParseException e2) {
|
||
|
StringBuilder sb = new StringBuilder("invalid date string: ");
|
||
|
sb.append(e2.getMessage());
|
||
|
throw new IllegalArgumentException(sb.toString());
|
||
|
}
|
||
|
}
|
||
|
}
|