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

125 lines
4.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.io.IOException;
import java.util.Collections;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes.dex */
public final class GXv implements yYF {
@Override // o.yYF
public final Iterable<EnumC2874amo> c() {
return Collections.singletonList(EnumC2874amo.APP2);
}
@Override // o.yYF
public final void d(Iterable<byte[]> iterable, C16613piz c16613piz, EnumC2874amo enumC2874amo) {
byte[] bArr = null;
for (byte[] bArr2 : iterable) {
if (bArr2.length >= 11 && "ICC_PROFILE".equalsIgnoreCase(new String(bArr2, 0, 11))) {
if (bArr == null) {
bArr = new byte[bArr2.length - 14];
System.arraycopy(bArr2, 14, bArr, 0, bArr2.length - 14);
} else {
byte[] bArr3 = new byte[(bArr.length + bArr2.length) - 14];
System.arraycopy(bArr, 0, bArr3, 0, bArr.length);
System.arraycopy(bArr2, 14, bArr3, bArr.length, bArr2.length - 14);
bArr = bArr3;
}
}
}
if (bArr != null) {
a(new C0925RrQ(bArr), c16613piz);
}
}
public static void a(Pmg pmg, C16613piz c16613piz) {
YnT ynT = new YnT();
try {
ynT.d(0, pmg.g(0));
int g = pmg.g(4);
if (g != 0) {
ynT.e(4, b(g));
}
int g2 = pmg.g(8);
if (g2 != 0) {
ynT.d(8, g2);
}
int g3 = pmg.g(12);
if (g3 != 0) {
ynT.e(12, b(g3));
}
int g4 = pmg.g(16);
if (g4 != 0) {
ynT.e(16, b(g4));
}
int g5 = pmg.g(20);
if (g5 != 0) {
ynT.e(20, b(g5));
}
a(ynT, pmg);
int g6 = pmg.g(36);
if (g6 != 0) {
ynT.e(36, b(g6));
}
int g7 = pmg.g(40);
if (g7 != 0) {
ynT.e(40, b(g7));
}
int g8 = pmg.g(44);
if (g8 != 0) {
ynT.d(44, g8);
}
int g9 = pmg.g(48);
if (g9 != 0) {
ynT.e(48, b(g9));
}
int g10 = pmg.g(52);
if (g10 != 0) {
if (g10 <= 538976288) {
ynT.d(52, g10);
} else {
ynT.e(52, b(g10));
}
}
int g11 = pmg.g(64);
if (g11 != 0) {
ynT.d(64, g11);
}
long i = pmg.i(56);
if (i != 0) {
ynT.e(56, i);
}
ynT.b(68, new float[]{pmg.h(68), pmg.h(72), pmg.h(76)});
int g12 = pmg.g(128);
ynT.d(128, g12);
for (int i2 = 0; i2 < g12; i2++) {
int i3 = i2 * 12;
ynT.c(pmg.g(i3 + CipherSuite.TLS_RSA_WITH_CAMELLIA_256_CBC_SHA), pmg.c(pmg.g(i3 + 136), pmg.g(i3 + CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA)));
}
} catch (IOException e) {
StringBuilder sb = new StringBuilder("Exception reading ICC profile: ");
sb.append(e.getMessage());
BrP.b(new Object[]{ynT, sb.toString()}, -1786863991, 1786863992, System.identityHashCode(ynT));
}
c16613piz.c.add(ynT);
}
private static void a(YnT ynT, Pmg pmg) throws IOException {
int l = pmg.l(24);
int l2 = pmg.l(26);
int l3 = pmg.l(28);
int l4 = pmg.l(30);
int l5 = pmg.l(32);
int l6 = pmg.l(34);
if (C11453efd.a(l, l2 - 1, l3) && C11453efd.c(l4, l5, l6)) {
ynT.e(24, String.format("%04d:%02d:%02d %02d:%02d:%02d", Integer.valueOf(l), Integer.valueOf(l2), Integer.valueOf(l3), Integer.valueOf(l4), Integer.valueOf(l5), Integer.valueOf(l6)));
} else {
BrP.b(new Object[]{ynT, String.format("ICC data describes an invalid date/time: year=%d month=%d day=%d hour=%d minute=%d second=%d", Integer.valueOf(l), Integer.valueOf(l2), Integer.valueOf(l3), Integer.valueOf(l4), Integer.valueOf(l5), Integer.valueOf(l6))}, -1786863991, 1786863992, System.identityHashCode(ynT));
}
}
public static String b(int i) {
return new String(new byte[]{(byte) (((-16777216) & i) >> 24), (byte) ((16711680 & i) >> 16), (byte) ((65280 & i) >> 8), (byte) i});
}
}