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

41 lines
1.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.crypto.tink.internal.TinkBugException;
import java.security.GeneralSecurityException;
import java.util.concurrent.atomic.AtomicReference;
import o.rDx;
/* renamed from: o.wsg, reason: case insensitive filesystem */
/* loaded from: classes2.dex */
public final class C17456wsg {
private static final C17456wsg a = new C17456wsg();
public final AtomicReference<rDx> b = new AtomicReference<>(new rDx(new rDx.HBt(), (byte) 0));
public final rMq b(QKJ qkj, QNr qNr) {
if (qNr == null) {
throw new NullPointerException("access cannot be null");
}
try {
try {
rDx rdx = this.b.get();
rDx.LWm lWm = new rDx.LWm(qkj.getClass(), qkj.a(), (byte) 0);
if (!rdx.e.containsKey(lWm)) {
StringBuilder sb = new StringBuilder("No Key Parser for requested key type ");
sb.append(lWm);
sb.append(" available");
throw new GeneralSecurityException(sb.toString());
}
return rdx.e.get(lWm).b(qkj, qNr);
} catch (GeneralSecurityException unused) {
return new xbL(qkj, qNr);
}
} catch (GeneralSecurityException e) {
throw new TinkBugException("Creating a LegacyProtoKey failed", e);
}
}
public static C17456wsg b() {
return a;
}
}