618 lines
22 KiB
Java
618 lines
22 KiB
Java
|
package org.bouncycastle.asn1;
|
||
|
|
||
|
import android.graphics.Color;
|
||
|
import android.media.AudioTrack;
|
||
|
import android.os.Process;
|
||
|
import android.telephony.cdma.CdmaCellLocation;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
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 o.TVH;
|
||
|
import o.xzZ;
|
||
|
import org.bouncycastle.util.Arrays;
|
||
|
import org.bouncycastle.util.Strings;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class ASN1UTCTime extends ASN1Primitive {
|
||
|
private byte[] time;
|
||
|
private static final byte[] $$a = {39, 47, 87, -72};
|
||
|
private static final int $$b = 126;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int a = 0;
|
||
|
private static int d = 1;
|
||
|
private static char[] b = {39955, 39995};
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x002e). 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 e(short r6, int r7, short r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
int r8 = r8 * 2
|
||
|
int r0 = r8 + 1
|
||
|
int r6 = r6 * 4
|
||
|
int r6 = 3 - r6
|
||
|
byte[] r1 = org.bouncycastle.asn1.ASN1UTCTime.$$a
|
||
|
int r7 = r7 * 2
|
||
|
int r7 = r7 + 71
|
||
|
byte[] r0 = new byte[r0]
|
||
|
r2 = 0
|
||
|
if (r1 != 0) goto L16
|
||
|
r3 = r8
|
||
|
r4 = r2
|
||
|
goto L2e
|
||
|
L16:
|
||
|
r3 = r2
|
||
|
L17:
|
||
|
byte r4 = (byte) r7
|
||
|
r0[r3] = r4
|
||
|
if (r3 != r8) goto L24
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r0, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L24:
|
||
|
int r6 = r6 + 1
|
||
|
int r3 = r3 + 1
|
||
|
r4 = r1[r6]
|
||
|
r5 = r3
|
||
|
r3 = r7
|
||
|
r7 = r4
|
||
|
r4 = r5
|
||
|
L2e:
|
||
|
int r7 = -r7
|
||
|
int r7 = r7 + r3
|
||
|
r3 = r4
|
||
|
goto L17
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: org.bouncycastle.asn1.ASN1UTCTime.e(short, int, short, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
private static void c(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
|
||
|
int i;
|
||
|
char[] cArr;
|
||
|
int i2 = 2 % 2;
|
||
|
TVH tvh = new TVH();
|
||
|
int i3 = 0;
|
||
|
int i4 = iArr[0];
|
||
|
int i5 = iArr[1];
|
||
|
int i6 = iArr[2];
|
||
|
int i7 = iArr[3];
|
||
|
char[] cArr2 = b;
|
||
|
float f = BitmapDescriptorFactory.HUE_RED;
|
||
|
if (cArr2 != null) {
|
||
|
int length = cArr2.length;
|
||
|
char[] cArr3 = new char[length];
|
||
|
int i8 = $11 + 63;
|
||
|
$10 = i8 % 128;
|
||
|
int i9 = i8 % 2;
|
||
|
int i10 = 0;
|
||
|
while (i10 < length) {
|
||
|
try {
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
objArr2[i3] = Integer.valueOf(cArr2[i10]);
|
||
|
Object obj = xzZ.y.get(1645349359);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c(224 - (AudioTrack.getMaxVolume() > f ? 1 : (AudioTrack.getMaxVolume() == f ? 0 : -1)), ((Process.getThreadPriority(i3) + 20) >> 6) + 5, (char) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 41976));
|
||
|
byte b2 = (byte) i3;
|
||
|
byte b3 = b2;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
e(b2, b3, b3, objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
||
|
xzZ.y.put(1645349359, obj);
|
||
|
}
|
||
|
cArr3[i10] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
||
|
i10++;
|
||
|
i3 = 0;
|
||
|
f = BitmapDescriptorFactory.HUE_RED;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
cArr2 = cArr3;
|
||
|
}
|
||
|
char[] cArr4 = new char[i5];
|
||
|
System.arraycopy(cArr2, i4, cArr4, 0, i5);
|
||
|
if (bArr != null) {
|
||
|
char[] cArr5 = new char[i5];
|
||
|
tvh.c = 0;
|
||
|
int i11 = $11 + 91;
|
||
|
$10 = i11 % 128;
|
||
|
int i12 = 2;
|
||
|
int i13 = i11 % 2;
|
||
|
char c = 0;
|
||
|
while (tvh.c < i5) {
|
||
|
int i14 = $11 + 85;
|
||
|
$10 = i14 % 128;
|
||
|
int i15 = i14 % i12;
|
||
|
if (bArr[tvh.c] == 1) {
|
||
|
int i16 = $10 + 23;
|
||
|
$11 = i16 % 128;
|
||
|
int i17 = i16 % i12;
|
||
|
int i18 = tvh.c;
|
||
|
char c2 = cArr4[tvh.c];
|
||
|
Object[] objArr4 = new Object[i12];
|
||
|
objArr4[1] = Integer.valueOf(c);
|
||
|
objArr4[0] = Integer.valueOf(c2);
|
||
|
Object obj2 = xzZ.y.get(850398076);
|
||
|
if (obj2 == null) {
|
||
|
obj2 = ((Class) xzZ.c((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 502, View.getDefaultSize(0, 0) + 5, (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 53))).getMethod("F", Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(850398076, obj2);
|
||
|
}
|
||
|
cArr5[i18] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
|
||
|
} else {
|
||
|
int i19 = tvh.c;
|
||
|
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c)};
|
||
|
Object obj3 = xzZ.y.get(1084521042);
|
||
|
if (obj3 == null) {
|
||
|
obj3 = ((Class) xzZ.c((ViewConfiguration.getFadingEdgeLength() >> 16) + 15, 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (Color.blue(0) + 58134))).getMethod("H", Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(1084521042, obj3);
|
||
|
}
|
||
|
cArr5[i19] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
|
||
|
int i20 = $10 + 63;
|
||
|
$11 = i20 % 128;
|
||
|
int i21 = i20 % 2;
|
||
|
}
|
||
|
c = cArr5[tvh.c];
|
||
|
Object[] objArr6 = {tvh, tvh};
|
||
|
Object obj4 = xzZ.y.get(1698744941);
|
||
|
if (obj4 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(401 - TextUtils.lastIndexOf("", '0', 0, 0), (ViewConfiguration.getTouchSlop() >> 8) + 5, (char) ((-16755608) - Color.rgb(0, 0, 0)));
|
||
|
byte b4 = (byte) 0;
|
||
|
byte b5 = (byte) (b4 + 1);
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
e(b4, b5, (byte) (b5 - 1), objArr7);
|
||
|
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1698744941, obj4);
|
||
|
}
|
||
|
((Method) obj4).invoke(null, objArr6);
|
||
|
i12 = 2;
|
||
|
}
|
||
|
cArr4 = cArr5;
|
||
|
}
|
||
|
if (i7 > 0) {
|
||
|
char[] cArr6 = new char[i5];
|
||
|
System.arraycopy(cArr4, 0, cArr6, 0, i5);
|
||
|
int i22 = i5 - i7;
|
||
|
System.arraycopy(cArr6, 0, cArr4, i22, i7);
|
||
|
System.arraycopy(cArr6, i7, cArr4, 0, i22);
|
||
|
}
|
||
|
if (z) {
|
||
|
int i23 = $10 + 87;
|
||
|
$11 = i23 % 128;
|
||
|
if (i23 % 2 == 0) {
|
||
|
cArr = new char[i5];
|
||
|
i = 0;
|
||
|
} else {
|
||
|
i = 0;
|
||
|
cArr = new char[i5];
|
||
|
}
|
||
|
while (true) {
|
||
|
tvh.c = i;
|
||
|
if (tvh.c >= i5) {
|
||
|
break;
|
||
|
}
|
||
|
cArr[tvh.c] = cArr4[(i5 - tvh.c) - 1];
|
||
|
i = tvh.c + 1;
|
||
|
}
|
||
|
cArr4 = cArr;
|
||
|
}
|
||
|
if (i6 > 0) {
|
||
|
int i24 = 0;
|
||
|
while (true) {
|
||
|
tvh.c = i24;
|
||
|
if (tvh.c >= i5) {
|
||
|
break;
|
||
|
}
|
||
|
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
|
||
|
i24 = tvh.c + 1;
|
||
|
}
|
||
|
}
|
||
|
objArr[0] = new String(cArr4);
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a + 101;
|
||
|
d = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
Strings.fromByteArray(this.time);
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
String fromByteArray = Strings.fromByteArray(this.time);
|
||
|
int i3 = d + 91;
|
||
|
a = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
return fromByteArray;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // org.bouncycastle.asn1.ASN1Primitive
|
||
|
public boolean isConstructed() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 61;
|
||
|
int i3 = i2 % 128;
|
||
|
a = i3;
|
||
|
int i4 = i2 % 2;
|
||
|
int i5 = i3 + 29;
|
||
|
d = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
return false;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1Primitive, org.bouncycastle.asn1.ASN1Object
|
||
|
public int hashCode() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a + 75;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
int hashCode = Arrays.hashCode(this.time);
|
||
|
int i4 = d + 55;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return hashCode;
|
||
|
}
|
||
|
|
||
|
public String getTime() {
|
||
|
StringBuilder sb;
|
||
|
String substring;
|
||
|
String str;
|
||
|
StringBuilder sb2;
|
||
|
int i = 2 % 2;
|
||
|
String fromByteArray = Strings.fromByteArray(this.time);
|
||
|
if (fromByteArray.indexOf(45) >= 0 || fromByteArray.indexOf(43) >= 0) {
|
||
|
int indexOf = fromByteArray.indexOf(45);
|
||
|
if (indexOf < 0) {
|
||
|
int i2 = a + 81;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
indexOf = fromByteArray.indexOf(43);
|
||
|
}
|
||
|
if (indexOf == fromByteArray.length() - 3) {
|
||
|
StringBuilder sb3 = new StringBuilder();
|
||
|
sb3.append(fromByteArray);
|
||
|
Object[] objArr = new Object[1];
|
||
|
c(new byte[]{0, 0}, new int[]{0, 2, 0, 1}, false, objArr);
|
||
|
sb3.append(((String) objArr[0]).intern());
|
||
|
fromByteArray = sb3.toString();
|
||
|
}
|
||
|
if (indexOf == 10) {
|
||
|
sb = new StringBuilder();
|
||
|
sb.append(fromByteArray.substring(0, 10));
|
||
|
sb.append("00GMT");
|
||
|
sb.append(fromByteArray.substring(10, 13));
|
||
|
sb.append(":");
|
||
|
substring = fromByteArray.substring(13, 15);
|
||
|
} else {
|
||
|
sb = new StringBuilder();
|
||
|
sb.append(fromByteArray.substring(0, 12));
|
||
|
sb.append("GMT");
|
||
|
sb.append(fromByteArray.substring(12, 15));
|
||
|
sb.append(":");
|
||
|
substring = fromByteArray.substring(15, 17);
|
||
|
}
|
||
|
str = substring;
|
||
|
sb2 = sb;
|
||
|
} else {
|
||
|
int i4 = d + 45;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
if (fromByteArray.length() == 11) {
|
||
|
sb2 = new StringBuilder();
|
||
|
sb2.append(fromByteArray.substring(0, 10));
|
||
|
str = "00GMT+00:00";
|
||
|
} else {
|
||
|
sb2 = new StringBuilder();
|
||
|
sb2.append(fromByteArray.substring(0, 12));
|
||
|
str = "GMT+00:00";
|
||
|
}
|
||
|
}
|
||
|
sb2.append(str);
|
||
|
return sb2.toString();
|
||
|
}
|
||
|
|
||
|
public Date getDate() throws ParseException {
|
||
|
int i = 2 % 2;
|
||
|
Date parse = new SimpleDateFormat("yyMMddHHmmssz").parse(getTime());
|
||
|
int i2 = d + 117;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
return parse;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x0029, code lost:
|
||
|
|
||
|
r0 = new java.lang.StringBuilder("20");
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x0027, code lost:
|
||
|
|
||
|
if (r1.charAt(0) < '5') goto L9;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0019, code lost:
|
||
|
|
||
|
if (r1.charAt(1) < '}') goto L9;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:5:0x0031, code lost:
|
||
|
|
||
|
r2 = new java.lang.StringBuilder("19");
|
||
|
r3 = org.bouncycastle.asn1.ASN1UTCTime.a + 21;
|
||
|
org.bouncycastle.asn1.ASN1UTCTime.d = r3 % 128;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:6:0x0041, code lost:
|
||
|
|
||
|
if ((r3 % 2) != 0) goto L13;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:7:0x0043, code lost:
|
||
|
|
||
|
r0 = 5 / 4;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x0046, code lost:
|
||
|
|
||
|
r0 = r2;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public java.lang.String getAdjustedTime() {
|
||
|
/*
|
||
|
r5 = this;
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = org.bouncycastle.asn1.ASN1UTCTime.d
|
||
|
int r1 = r1 + 25
|
||
|
int r2 = r1 % 128
|
||
|
org.bouncycastle.asn1.ASN1UTCTime.a = r2
|
||
|
int r1 = r1 % r0
|
||
|
if (r1 == 0) goto L1c
|
||
|
java.lang.String r1 = r5.getTime()
|
||
|
r2 = 1
|
||
|
char r2 = r1.charAt(r2)
|
||
|
r3 = 125(0x7d, float:1.75E-43)
|
||
|
if (r2 >= r3) goto L31
|
||
|
goto L29
|
||
|
L1c:
|
||
|
java.lang.String r1 = r5.getTime()
|
||
|
r2 = 0
|
||
|
char r2 = r1.charAt(r2)
|
||
|
r3 = 53
|
||
|
if (r2 >= r3) goto L31
|
||
|
L29:
|
||
|
java.lang.StringBuilder r0 = new java.lang.StringBuilder
|
||
|
java.lang.String r2 = "20"
|
||
|
r0.<init>(r2)
|
||
|
goto L47
|
||
|
L31:
|
||
|
java.lang.StringBuilder r2 = new java.lang.StringBuilder
|
||
|
java.lang.String r3 = "19"
|
||
|
r2.<init>(r3)
|
||
|
int r3 = org.bouncycastle.asn1.ASN1UTCTime.a
|
||
|
int r3 = r3 + 21
|
||
|
int r4 = r3 % 128
|
||
|
org.bouncycastle.asn1.ASN1UTCTime.d = r4
|
||
|
int r3 = r3 % r0
|
||
|
if (r3 != 0) goto L46
|
||
|
r0 = 5
|
||
|
int r0 = r0 / 4
|
||
|
L46:
|
||
|
r0 = r2
|
||
|
L47:
|
||
|
r0.append(r1)
|
||
|
java.lang.String r0 = r0.toString()
|
||
|
return r0
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: org.bouncycastle.asn1.ASN1UTCTime.getAdjustedTime():java.lang.String");
|
||
|
}
|
||
|
|
||
|
public Date getAdjustedDate() throws ParseException {
|
||
|
int i = 2 % 2;
|
||
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmssz");
|
||
|
simpleDateFormat.setTimeZone(new SimpleTimeZone(0, "Z"));
|
||
|
Date parse = simpleDateFormat.parse(getAdjustedTime());
|
||
|
int i2 = d + 47;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
return parse;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // org.bouncycastle.asn1.ASN1Primitive
|
||
|
public int encodedLength() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 75;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
int length = this.time.length;
|
||
|
int calculateBodyLength = StreamUtil.calculateBodyLength(length) + 1 + length;
|
||
|
int i4 = d + 105;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return calculateBodyLength;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // org.bouncycastle.asn1.ASN1Primitive
|
||
|
public void encode(ASN1OutputStream aSN1OutputStream) throws IOException {
|
||
|
int length;
|
||
|
int i;
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = a + 11;
|
||
|
d = i3 % 128;
|
||
|
if (i3 % 2 == 0) {
|
||
|
aSN1OutputStream.write(7);
|
||
|
length = this.time.length;
|
||
|
aSN1OutputStream.writeLength(length);
|
||
|
i = 1;
|
||
|
} else {
|
||
|
aSN1OutputStream.write(23);
|
||
|
length = this.time.length;
|
||
|
aSN1OutputStream.writeLength(length);
|
||
|
i = 0;
|
||
|
}
|
||
|
while (i != length) {
|
||
|
aSN1OutputStream.write(this.time[i]);
|
||
|
i++;
|
||
|
int i4 = d + 39;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1Primitive
|
||
|
boolean asn1Equals(ASN1Primitive aSN1Primitive) {
|
||
|
int i = 2 % 2;
|
||
|
if (!(aSN1Primitive instanceof ASN1UTCTime)) {
|
||
|
int i2 = a + 69;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
return false;
|
||
|
}
|
||
|
boolean areEqual = Arrays.areEqual(this.time, ((ASN1UTCTime) aSN1Primitive).time);
|
||
|
int i4 = d + 17;
|
||
|
a = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
return areEqual;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x003a, code lost:
|
||
|
|
||
|
return new org.bouncycastle.asn1.ASN1UTCTime(((org.bouncycastle.asn1.ASN1OctetString) r3).getOctets());
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x002d, code lost:
|
||
|
|
||
|
if ((r3 instanceof org.bouncycastle.asn1.ASN1UTCTime) == false) goto L14;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x0028, code lost:
|
||
|
|
||
|
if ((r3 instanceof org.bouncycastle.asn1.ASN1UTCTime) == false) goto L14;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static org.bouncycastle.asn1.ASN1UTCTime getInstance(org.bouncycastle.asn1.ASN1TaggedObject r3, boolean r4) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = org.bouncycastle.asn1.ASN1UTCTime.a
|
||
|
int r1 = r1 + 57
|
||
|
int r2 = r1 % 128
|
||
|
org.bouncycastle.asn1.ASN1UTCTime.d = r2
|
||
|
int r1 = r1 % r0
|
||
|
if (r1 == 0) goto L40
|
||
|
org.bouncycastle.asn1.ASN1Primitive r3 = r3.getObject()
|
||
|
r1 = 1
|
||
|
r4 = r4 ^ r1
|
||
|
if (r4 == r1) goto L17
|
||
|
goto L3b
|
||
|
L17:
|
||
|
int r4 = org.bouncycastle.asn1.ASN1UTCTime.a
|
||
|
int r4 = r4 + 117
|
||
|
int r1 = r4 % 128
|
||
|
org.bouncycastle.asn1.ASN1UTCTime.d = r1
|
||
|
int r4 = r4 % r0
|
||
|
if (r4 != 0) goto L2b
|
||
|
boolean r4 = r3 instanceof org.bouncycastle.asn1.ASN1UTCTime
|
||
|
r0 = 83
|
||
|
int r0 = r0 / 0
|
||
|
if (r4 != 0) goto L3b
|
||
|
goto L2f
|
||
|
L2b:
|
||
|
boolean r4 = r3 instanceof org.bouncycastle.asn1.ASN1UTCTime
|
||
|
if (r4 != 0) goto L3b
|
||
|
L2f:
|
||
|
org.bouncycastle.asn1.ASN1UTCTime r4 = new org.bouncycastle.asn1.ASN1UTCTime
|
||
|
org.bouncycastle.asn1.ASN1OctetString r3 = (org.bouncycastle.asn1.ASN1OctetString) r3
|
||
|
byte[] r3 = r3.getOctets()
|
||
|
r4.<init>(r3)
|
||
|
return r4
|
||
|
L3b:
|
||
|
org.bouncycastle.asn1.ASN1UTCTime r3 = getInstance(r3)
|
||
|
return r3
|
||
|
L40:
|
||
|
r3.getObject()
|
||
|
r3 = 0
|
||
|
throw r3
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: org.bouncycastle.asn1.ASN1UTCTime.getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean):org.bouncycastle.asn1.ASN1UTCTime");
|
||
|
}
|
||
|
|
||
|
public static ASN1UTCTime getInstance(Object obj) {
|
||
|
int i = 2 % 2;
|
||
|
if (obj != null) {
|
||
|
int i2 = a + 103;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (!(obj instanceof ASN1UTCTime)) {
|
||
|
if (!(obj instanceof byte[])) {
|
||
|
StringBuilder sb = new StringBuilder("illegal object in getInstance: ");
|
||
|
sb.append(obj.getClass().getName());
|
||
|
throw new IllegalArgumentException(sb.toString());
|
||
|
}
|
||
|
try {
|
||
|
ASN1UTCTime aSN1UTCTime = (ASN1UTCTime) fromByteArray((byte[]) obj);
|
||
|
int i4 = a + 101;
|
||
|
d = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return aSN1UTCTime;
|
||
|
} catch (Exception e) {
|
||
|
StringBuilder sb2 = new StringBuilder("encoding error in getInstance: ");
|
||
|
sb2.append(e.toString());
|
||
|
throw new IllegalArgumentException(sb2.toString());
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return (ASN1UTCTime) obj;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public ASN1UTCTime(byte[] bArr) {
|
||
|
this.time = bArr;
|
||
|
}
|
||
|
|
||
|
public ASN1UTCTime(Date date, Locale locale) {
|
||
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyMMddHHmmss'Z'", locale);
|
||
|
simpleDateFormat.setTimeZone(new SimpleTimeZone(0, "Z"));
|
||
|
this.time = Strings.toByteArray(simpleDateFormat.format(date));
|
||
|
}
|
||
|
|
||
|
public ASN1UTCTime(Date date) {
|
||
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyMMddHHmmss'Z'");
|
||
|
simpleDateFormat.setTimeZone(new SimpleTimeZone(0, "Z"));
|
||
|
this.time = Strings.toByteArray(simpleDateFormat.format(date));
|
||
|
}
|
||
|
|
||
|
public ASN1UTCTime(String str) {
|
||
|
this.time = Strings.toByteArray(str);
|
||
|
try {
|
||
|
getDate();
|
||
|
} catch (ParseException e) {
|
||
|
StringBuilder sb = new StringBuilder("invalid date string: ");
|
||
|
sb.append(e.getMessage());
|
||
|
throw new IllegalArgumentException(sb.toString());
|
||
|
}
|
||
|
}
|
||
|
}
|