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 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; } }