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.InterfaceC5194;

/* JADX INFO: renamed from: ދ.ހ.ހ.֏.ޜ.ނ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C5482 implements InterfaceC5177<InterfaceC5194> {
    /* 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<InterfaceC5194> mo8649(String str, String str2, int i) throws GeneralSecurityException {
        InterfaceC5182<InterfaceC5194> c5478;
        String lowerCase = str2.toLowerCase();
        byte b = -1;
        if (((lowerCase.hashCode() == -1213945325 && lowerCase.equals("publickeysign")) ? (byte) 0 : (byte) -1) != 0) {
            throw new GeneralSecurityException(String.format("No support for primitive '%s'.", str2));
        }
        switch (str.hashCode()) {
            case -1470419991:
                if (str.equals("type.googleapis.com/google.crypto.tink.Ed25519PrivateKey")) {
                    b = 1;
                }
                break;
            case -680652003:
                if (str.equals("type.googleapis.com/google.crypto.tink.RsaSsaPssPrivateKey")) {
                    b = 3;
                }
                break;
            case -359160126:
                if (str.equals("type.googleapis.com/google.crypto.tink.EcdsaPrivateKey")) {
                    b = 0;
                }
                break;
            case 1951734387:
                if (str.equals("type.googleapis.com/google.crypto.tink.RsaSsaPkcs1PrivateKey")) {
                    b = 2;
                }
                break;
        }
        if (b == 0) {
            c5478 = new C5478();
        } else if (b == 1) {
            c5478 = new C5480();
        } else if (b == 2) {
            c5478 = new C5488();
        } else {
            if (b != 3) {
                throw new GeneralSecurityException(String.format("No support for primitive 'PublicKeySign' with key type '%s'.", str));
            }
            c5478 = new C5490();
        }
        if (c5478.mo8653() >= i) {
            return c5478;
        }
        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<InterfaceC5194> mo8650() {
        return new C5483();
    }
}
