what-the-bank/sources/o/C15367gog.java

70 lines
2.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.io.IOException;
/* renamed from: o.gog, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public class C15367gog extends AbstractC15344gnt {
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
public final boolean d() {
return false;
}
public static C15367gog c(Object obj) {
if (obj == null || (obj instanceof C15367gog)) {
return (C15367gog) obj;
}
if (obj instanceof goO) {
goO goo = (goO) obj;
return new C15367gog(goo.e, goo.c);
}
StringBuilder sb = new StringBuilder("illegal object in getInstance: ");
sb.append(obj.getClass().getName());
throw new IllegalArgumentException(sb.toString());
}
public static C15367gog a(AbstractC15321gnP abstractC15321gnP) {
InterfaceC15342gnr interfaceC15342gnr = abstractC15321gnP.d;
AbstractC15315gnE i = interfaceC15342gnr != null ? interfaceC15342gnr.i() : null;
if (i instanceof C15367gog) {
return c(i);
}
byte[] b = ((gnD) i).b();
if (b.length <= 0) {
throw new IllegalArgumentException("truncated BIT STRING detected");
}
byte b2 = b[0];
int length = b.length - 1;
byte[] bArr = new byte[length];
if (length != 0) {
System.arraycopy(b, 1, bArr, 0, b.length - 1);
}
return new C15367gog(bArr, b2);
}
public C15367gog(byte[] bArr, int i) {
super(bArr, i);
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
public final int c() {
return goV.d(this.e.length + 1) + 1 + this.e.length + 1;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15344gnt, o.AbstractC15315gnE
public final void c(gnG gng) throws IOException {
byte[] c = c(this.e, this.c);
int length = c.length;
int i = length + 1;
byte[] bArr = new byte[i];
bArr[0] = (byte) a();
System.arraycopy(c, 0, bArr, 1, length);
gng.a(3);
gng.d(i);
gng.a.write(bArr);
}
}