80 lines
2.9 KiB
Java
80 lines
2.9 KiB
Java
package o;
|
|
|
|
import java.math.BigInteger;
|
|
import org.spongycastle.asn1.ASN1Integer;
|
|
|
|
/* renamed from: o.gpR, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C15397gpR extends AbstractC15346gnv {
|
|
private static final BigInteger d = BigInteger.valueOf(0);
|
|
private ASN1Integer a;
|
|
private ASN1Integer b;
|
|
public gpO e;
|
|
|
|
private C15397gpR(AbstractC15317gnH abstractC15317gnH) {
|
|
this.e = gpO.a(abstractC15317gnH.d(0));
|
|
int e = abstractC15317gnH.e();
|
|
if (e != 1) {
|
|
if (e == 2) {
|
|
AbstractC15321gnP d2 = AbstractC15321gnP.d(abstractC15317gnH.d(1));
|
|
int i = d2.e;
|
|
if (i == 0) {
|
|
this.a = ASN1Integer.d(d2, false);
|
|
return;
|
|
} else if (i == 1) {
|
|
this.b = ASN1Integer.d(d2, false);
|
|
return;
|
|
} else {
|
|
StringBuilder sb = new StringBuilder("Bad tag number: ");
|
|
sb.append(d2.e);
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
}
|
|
if (e == 3) {
|
|
AbstractC15321gnP d3 = AbstractC15321gnP.d(abstractC15317gnH.d(1));
|
|
if (d3.e != 0) {
|
|
StringBuilder sb2 = new StringBuilder("Bad tag number for 'minimum': ");
|
|
sb2.append(d3.e);
|
|
throw new IllegalArgumentException(sb2.toString());
|
|
}
|
|
this.a = ASN1Integer.d(d3, false);
|
|
AbstractC15321gnP d4 = AbstractC15321gnP.d(abstractC15317gnH.d(2));
|
|
if (d4.e != 1) {
|
|
StringBuilder sb3 = new StringBuilder("Bad tag number for 'maximum': ");
|
|
sb3.append(d4.e);
|
|
throw new IllegalArgumentException(sb3.toString());
|
|
}
|
|
this.b = ASN1Integer.d(d4, false);
|
|
return;
|
|
}
|
|
StringBuilder sb4 = new StringBuilder("Bad sequence size: ");
|
|
sb4.append(abstractC15317gnH.e());
|
|
throw new IllegalArgumentException(sb4.toString());
|
|
}
|
|
}
|
|
|
|
public static C15397gpR c(Object obj) {
|
|
if (obj == null) {
|
|
return null;
|
|
}
|
|
if (obj instanceof C15397gpR) {
|
|
return (C15397gpR) obj;
|
|
}
|
|
return new C15397gpR(AbstractC15317gnH.a(obj));
|
|
}
|
|
|
|
@Override // o.AbstractC15346gnv, o.InterfaceC15342gnr
|
|
public final AbstractC15315gnE i() {
|
|
C15343gns c15343gns = new C15343gns();
|
|
c15343gns.a.addElement(this.e);
|
|
ASN1Integer aSN1Integer = this.a;
|
|
if (aSN1Integer != null && !new BigInteger(aSN1Integer.b).equals(d)) {
|
|
c15343gns.a.addElement(new C15355goI(false, 0, this.a));
|
|
}
|
|
if (this.b != null) {
|
|
c15343gns.a.addElement(new C15355goI(false, 1, this.b));
|
|
}
|
|
return new C15385goy(c15343gns);
|
|
}
|
|
}
|