package p138.p176.p278.p279.p288;

import java.security.GeneralSecurityException;
import p138.p176.p278.p279.InterfaceC5177;
import p138.p176.p278.p279.InterfaceC5182;
import p138.p176.p278.p279.InterfaceC5192;
import p138.p176.p278.p279.InterfaceC5195;

/* JADX INFO: renamed from: ދ.ހ.ހ.֏.ޜ.ބ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C5485 implements InterfaceC5177<InterfaceC5195> {
    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    @Override // p138.p176.p278.p279.InterfaceC5177
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC5182<InterfaceC5195> mo8649(String str, String str2, int i) throws GeneralSecurityException {
        InterfaceC5182<InterfaceC5195> c5479;
        String lowerCase = str2.toLowerCase();
        byte b = -1;
        if (((lowerCase.hashCode() == 1712166735 && lowerCase.equals("publickeyverify")) ? (byte) 0 : (byte) -1) != 0) {
            throw new GeneralSecurityException(String.format("No support for primitive '%s'.", str2));
        }
        switch (str.hashCode()) {
            case -1146937899:
                if (str.equals("type.googleapis.com/google.crypto.tink.RsaSsaPssPublicKey")) {
                    b = 3;
                }
                break;
            case -1062022209:
                if (str.equals("type.googleapis.com/google.crypto.tink.RsaSsaPkcs1PublicKey")) {
                    b = 2;
                }
                break;
            case 248906128:
                if (str.equals("type.googleapis.com/google.crypto.tink.EcdsaPublicKey")) {
                    b = 0;
                }
                break;
            case 1737079689:
                if (str.equals("type.googleapis.com/google.crypto.tink.Ed25519PublicKey")) {
                    b = 1;
                }
                break;
        }
        if (b == 0) {
            c5479 = new C5479();
        } else if (b == 1) {
            c5479 = new C5481();
        } else if (b == 2) {
            c5479 = new C5489();
        } else {
            if (b != 3) {
                throw new GeneralSecurityException(String.format("No support for primitive 'PublicKeyVerify' with key type '%s'.", str));
            }
            c5479 = new C5491();
        }
        if (c5479.mo8653() >= i) {
            return c5479;
        }
        throw new GeneralSecurityException(String.format("No key manager for key type '%s' with version at least %d.", str, Integer.valueOf(i)));
    }

    @Override // p138.p176.p278.p279.InterfaceC5177
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC5192<InterfaceC5195> mo8650() {
        return new C5486();
    }
}
