142 lines
5.7 KiB
Java
142 lines
5.7 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.common.base.Ascii;
|
||
|
import com.google.common.primitives.SignedBytes;
|
||
|
import java.io.IOException;
|
||
|
import java.nio.ByteBuffer;
|
||
|
import java.util.UUID;
|
||
|
import net.sf.scuba.smartcards.ISO7816;
|
||
|
import net.sf.scuba.smartcards.ISOFileInfo;
|
||
|
import o.OBC;
|
||
|
import org.jmrtd.lds.CVCAFile;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class TfT extends yXE<SDU> {
|
||
|
private static final OBC<HBt> e;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public enum HBt {
|
||
|
Unknown,
|
||
|
Exif,
|
||
|
PhotoshopImageResources,
|
||
|
IptcIim,
|
||
|
PiffTrackEncryptionBox,
|
||
|
GeoJp2WorldFileBox,
|
||
|
PiffSampleEncryptionBox,
|
||
|
GeoJp2GeoTiffBox,
|
||
|
Xmp,
|
||
|
PiffProtectionSystemSpecificHeaderBox
|
||
|
}
|
||
|
|
||
|
@Override // o.yXE
|
||
|
public final boolean c(String str) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Type inference failed for: r1v0, types: [o.TfT$HBt, T] */
|
||
|
static {
|
||
|
OBC<HBt> obc = new OBC<>();
|
||
|
e = obc;
|
||
|
?? r1 = HBt.Unknown;
|
||
|
OBC.IeS<HBt> ieS = obc.b;
|
||
|
if (ieS.b == null) {
|
||
|
ieS.b = r1;
|
||
|
obc.d(HBt.Exif, new byte[]{5, 55, -51, ISOFileInfo.AB, -99, 12, ISO7816.INS_REHABILITATE_CHV, 49, -89, ISO7816.INS_PSO, -6, 86, Ascii.US, ISO7816.INS_PSO, 17, 62});
|
||
|
obc.d(HBt.PhotoshopImageResources, new byte[]{ISO7816.INS_UNBLOCK_CHV, 76, 1, 0, ISOFileInfo.PROP_INFO, 4, SignedBytes.MAX_POWER_OF_TWO, -71, ISOFileInfo.A0, 62, 86, 33, 72, ISO7816.INS_UPDATE_BINARY, -33, -21});
|
||
|
obc.d(HBt.IptcIim, new byte[]{51, -57, -92, ISO7816.INS_WRITE_RECORD, -72, 29, 71, 35, ISOFileInfo.A0, -70, -15, -93, ISO7816.INS_CREATE_FILE, -105, -83, 56});
|
||
|
obc.d(HBt.PiffTrackEncryptionBox, new byte[]{-119, 116, -37, -50, 123, -25, 76, 81, -124, -7, 113, 72, -7, -120, 37, 84});
|
||
|
obc.d(HBt.GeoJp2WorldFileBox, new byte[]{-106, -87, -15, -15, ISO7816.INS_UPDATE_RECORD, -104, SignedBytes.MAX_POWER_OF_TWO, 45, -89, -82, ISO7816.INS_UPDATE_BINARY, ISOFileInfo.CHANNEL_SECURITY, ISO7816.INS_DECREASE_STAMPED, 69, Ascii.CAN, 9});
|
||
|
obc.d(HBt.PiffSampleEncryptionBox, new byte[]{-94, 57, 79, 82, 90, -101, 79, Ascii.DC4, -94, ISO7816.INS_REHABILITATE_CHV, 108, CVCAFile.CAR_TAG, 124, ISOFileInfo.FMD_BYTE, ISOFileInfo.ENV_TEMP_EF, -12});
|
||
|
obc.d(HBt.GeoJp2GeoTiffBox, new byte[]{ISO7816.INS_READ_BINARY2, 75, -8, -67, 8, 61, 75, 67, ISOFileInfo.A5, -82, ISOFileInfo.SECURITY_ATTR_COMPACT, -41, -43, -90, -50, 3});
|
||
|
obc.d(HBt.Xmp, new byte[]{-66, 122, -49, -53, -105, -87, CVCAFile.CAR_TAG, -24, -100, 113, -103, -108, -111, -29, -81, -84});
|
||
|
obc.d(HBt.PiffProtectionSystemSpecificHeaderBox, new byte[]{ISO7816.INS_WRITE_BINARY, ISOFileInfo.LCS_BYTE, 79, Ascii.CAN, 16, -13, 74, -126, ISO7816.INS_READ_RECORD_STAMPED, -56, ISO7816.INS_INCREASE, ISO7816.INS_LOAD_KEY_FILE, ISOFileInfo.AB, ISOFileInfo.A1, ISOFileInfo.FILE_IDENTIFIER, -45});
|
||
|
return;
|
||
|
}
|
||
|
throw new RuntimeException("Value already set for this trie node");
|
||
|
}
|
||
|
|
||
|
public TfT(C16613piz c16613piz) {
|
||
|
super(c16613piz);
|
||
|
}
|
||
|
|
||
|
@Override // o.yXE
|
||
|
public final boolean e(String str) {
|
||
|
return str.equals("uuid");
|
||
|
}
|
||
|
|
||
|
@Override // o.yXE
|
||
|
public final yXE<?> c(String str, byte[] bArr, long j, ExA exA) throws IOException {
|
||
|
HBt b;
|
||
|
if (bArr == null || bArr.length < 16 || (b = e.b(bArr, 0, bArr.length)) == null) {
|
||
|
return this;
|
||
|
}
|
||
|
int i = AnonymousClass5.b[b.ordinal()];
|
||
|
if (i == 1) {
|
||
|
new C5178boD();
|
||
|
C5178boD.b(new C0925RrQ(bArr, 16), this.a, 0, this.d);
|
||
|
} else if (i == 2) {
|
||
|
new KCy();
|
||
|
C0629LEh c0629LEh = new C0629LEh(bArr, 16);
|
||
|
C16613piz c16613piz = this.a;
|
||
|
long length = bArr.length - 16;
|
||
|
T t = this.d;
|
||
|
KCy.d(c0629LEh, c16613piz, length);
|
||
|
} else if (i == 3) {
|
||
|
new EKY();
|
||
|
C0629LEh c0629LEh2 = new C0629LEh(bArr, 16);
|
||
|
int length2 = bArr.length - 16;
|
||
|
C16613piz c16613piz2 = this.a;
|
||
|
T t2 = this.d;
|
||
|
EKY.b(c0629LEh2, length2, c16613piz2);
|
||
|
} else if (i == 4) {
|
||
|
new RKF();
|
||
|
int length3 = bArr.length - 16;
|
||
|
C16613piz c16613piz3 = this.a;
|
||
|
T t3 = this.d;
|
||
|
RKF.a(bArr, 16, length3, c16613piz3);
|
||
|
} else {
|
||
|
C0629LEh c0629LEh3 = new C0629LEh(bArr);
|
||
|
ByteBuffer wrap = ByteBuffer.wrap(c0629LEh3.a(16));
|
||
|
String obj = new UUID(wrap.getLong(), wrap.getLong()).toString();
|
||
|
byte[] a = c0629LEh3.a(c0629LEh3.d());
|
||
|
((SDU) this.d).e(SDU.e.intValue(), obj);
|
||
|
((SDU) this.d).c(SDU.c.intValue(), a);
|
||
|
}
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* renamed from: o.TfT$5, reason: invalid class name */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static /* synthetic */ class AnonymousClass5 {
|
||
|
static final int[] b;
|
||
|
|
||
|
static {
|
||
|
int[] iArr = new int[HBt.values().length];
|
||
|
b = iArr;
|
||
|
try {
|
||
|
iArr[HBt.Exif.ordinal()] = 1;
|
||
|
} catch (NoSuchFieldError unused) {
|
||
|
}
|
||
|
try {
|
||
|
b[HBt.IptcIim.ordinal()] = 2;
|
||
|
} catch (NoSuchFieldError unused2) {
|
||
|
}
|
||
|
try {
|
||
|
b[HBt.PhotoshopImageResources.ordinal()] = 3;
|
||
|
} catch (NoSuchFieldError unused3) {
|
||
|
}
|
||
|
try {
|
||
|
b[HBt.Xmp.ordinal()] = 4;
|
||
|
} catch (NoSuchFieldError unused4) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.yXE
|
||
|
public final /* synthetic */ SDU d() {
|
||
|
return new SDU();
|
||
|
}
|
||
|
}
|