142 lines
5.4 KiB
Java
142 lines
5.4 KiB
Java
|
package o;
|
||
|
|
||
|
import java.io.ByteArrayOutputStream;
|
||
|
import java.io.IOException;
|
||
|
import org.bouncycastle.asn1.ASN1Encoding;
|
||
|
import org.spongycastle.asn1.ASN1Integer;
|
||
|
|
||
|
/* renamed from: o.gok, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class C15371gok extends AbstractC15315gnE {
|
||
|
public ASN1Integer a;
|
||
|
public AbstractC15315gnE b;
|
||
|
public AbstractC15315gnE c;
|
||
|
public int d;
|
||
|
public C15314gnC e;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // o.AbstractC15315gnE
|
||
|
public final boolean d() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public C15371gok(C15343gns c15343gns) {
|
||
|
if (c15343gns.a.size() <= 0) {
|
||
|
throw new IllegalArgumentException("too few objects in input vector");
|
||
|
}
|
||
|
int i = 0;
|
||
|
AbstractC15315gnE i2 = ((InterfaceC15342gnr) c15343gns.a.elementAt(0)).i();
|
||
|
if (i2 instanceof C15314gnC) {
|
||
|
this.e = (C15314gnC) i2;
|
||
|
if (c15343gns.a.size() <= 1) {
|
||
|
throw new IllegalArgumentException("too few objects in input vector");
|
||
|
}
|
||
|
i2 = ((InterfaceC15342gnr) c15343gns.a.elementAt(1)).i();
|
||
|
i = 1;
|
||
|
}
|
||
|
if (i2 instanceof ASN1Integer) {
|
||
|
this.a = (ASN1Integer) i2;
|
||
|
i++;
|
||
|
if (c15343gns.a.size() <= i) {
|
||
|
throw new IllegalArgumentException("too few objects in input vector");
|
||
|
}
|
||
|
i2 = ((InterfaceC15342gnr) c15343gns.a.elementAt(i)).i();
|
||
|
}
|
||
|
if (!(i2 instanceof AbstractC15321gnP)) {
|
||
|
this.c = i2;
|
||
|
i++;
|
||
|
if (c15343gns.a.size() <= i) {
|
||
|
throw new IllegalArgumentException("too few objects in input vector");
|
||
|
}
|
||
|
i2 = ((InterfaceC15342gnr) c15343gns.a.elementAt(i)).i();
|
||
|
}
|
||
|
if (c15343gns.a.size() != i + 1) {
|
||
|
throw new IllegalArgumentException("input vector too large");
|
||
|
}
|
||
|
if (!(i2 instanceof AbstractC15321gnP)) {
|
||
|
throw new IllegalArgumentException("No tagged object found in vector. Structure doesn't seem to be of type External");
|
||
|
}
|
||
|
AbstractC15321gnP abstractC15321gnP = (AbstractC15321gnP) i2;
|
||
|
int i3 = abstractC15321gnP.e;
|
||
|
if (i3 >= 0 && i3 <= 2) {
|
||
|
this.d = i3;
|
||
|
InterfaceC15342gnr interfaceC15342gnr = abstractC15321gnP.d;
|
||
|
this.b = interfaceC15342gnr != null ? interfaceC15342gnr.i() : null;
|
||
|
return;
|
||
|
}
|
||
|
throw new IllegalArgumentException("invalid encoding value: ".concat(String.valueOf(i3)));
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC15346gnv
|
||
|
public final int hashCode() {
|
||
|
C15314gnC c15314gnC = this.e;
|
||
|
int hashCode = c15314gnC != null ? c15314gnC.hashCode() : 0;
|
||
|
ASN1Integer aSN1Integer = this.a;
|
||
|
if (aSN1Integer != null) {
|
||
|
hashCode ^= aSN1Integer.hashCode();
|
||
|
}
|
||
|
AbstractC15315gnE abstractC15315gnE = this.c;
|
||
|
if (abstractC15315gnE != null) {
|
||
|
hashCode ^= abstractC15315gnE.hashCode();
|
||
|
}
|
||
|
return hashCode ^ this.b.hashCode();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // o.AbstractC15315gnE
|
||
|
public final int c() throws IOException {
|
||
|
return l().length;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // o.AbstractC15315gnE
|
||
|
public final void c(gnG gng) throws IOException {
|
||
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
||
|
C15314gnC c15314gnC = this.e;
|
||
|
if (c15314gnC != null) {
|
||
|
byteArrayOutputStream.write(c15314gnC.c(ASN1Encoding.DER));
|
||
|
}
|
||
|
ASN1Integer aSN1Integer = this.a;
|
||
|
if (aSN1Integer != null) {
|
||
|
byteArrayOutputStream.write(aSN1Integer.c(ASN1Encoding.DER));
|
||
|
}
|
||
|
AbstractC15315gnE abstractC15315gnE = this.c;
|
||
|
if (abstractC15315gnE != null) {
|
||
|
byteArrayOutputStream.write(abstractC15315gnE.c(ASN1Encoding.DER));
|
||
|
}
|
||
|
byteArrayOutputStream.write(new C15355goI(true, this.d, this.b).c(ASN1Encoding.DER));
|
||
|
byte[] byteArray = byteArrayOutputStream.toByteArray();
|
||
|
gng.b(32, 8);
|
||
|
gng.d(byteArray.length);
|
||
|
gng.a.write(byteArray);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // o.AbstractC15315gnE
|
||
|
protected final boolean e(AbstractC15315gnE abstractC15315gnE) {
|
||
|
AbstractC15315gnE abstractC15315gnE2;
|
||
|
ASN1Integer aSN1Integer;
|
||
|
C15314gnC c15314gnC;
|
||
|
if (!(abstractC15315gnE instanceof C15371gok)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (this == abstractC15315gnE) {
|
||
|
return true;
|
||
|
}
|
||
|
C15371gok c15371gok = (C15371gok) abstractC15315gnE;
|
||
|
C15314gnC c15314gnC2 = this.e;
|
||
|
if (c15314gnC2 != null && ((c15314gnC = c15371gok.e) == null || !c15314gnC.equals(c15314gnC2))) {
|
||
|
return false;
|
||
|
}
|
||
|
ASN1Integer aSN1Integer2 = this.a;
|
||
|
if (aSN1Integer2 != null && ((aSN1Integer = c15371gok.a) == null || !aSN1Integer.equals(aSN1Integer2))) {
|
||
|
return false;
|
||
|
}
|
||
|
AbstractC15315gnE abstractC15315gnE3 = this.c;
|
||
|
if (abstractC15315gnE3 == null || ((abstractC15315gnE2 = c15371gok.c) != null && abstractC15315gnE2.equals(abstractC15315gnE3))) {
|
||
|
return this.b.equals(c15371gok.b);
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
}
|