package p138.p176.p278.p279.p289;

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

/* JADX INFO: renamed from: ދ.ހ.ހ.֏.ޝ.ހ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C5495 implements InterfaceC5177<InterfaceC5199> {
    @Override // p138.p176.p278.p279.InterfaceC5177
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC5182<InterfaceC5199> mo8649(String str, String str2, int i) throws GeneralSecurityException {
        InterfaceC5182<InterfaceC5199> c5493;
        String lowerCase = str2.toLowerCase();
        byte b = -1;
        if (((lowerCase.hashCode() == 754366121 && lowerCase.equals("streamingaead")) ? (byte) 0 : (byte) -1) != 0) {
            throw new GeneralSecurityException(String.format("No support for primitive '%s'.", str2));
        }
        int iHashCode = str.hashCode();
        if (iHashCode != -2002307740) {
            if (iHashCode == -608502222 && str.equals("type.googleapis.com/google.crypto.tink.AesGcmHkdfStreamingKey")) {
                b = 1;
            }
        } else if (str.equals("type.googleapis.com/google.crypto.tink.AesCtrHmacStreamingKey")) {
            b = 0;
        }
        if (b == 0) {
            c5493 = new C5493();
        } else {
            if (b != 1) {
                throw new GeneralSecurityException(String.format("No support for primitive 'StreamingAead' with key type '%s'.", str));
            }
            c5493 = new C5494();
        }
        if (c5493.mo8653() >= i) {
            return c5493;
        }
        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<InterfaceC5199> mo8650() {
        return new C5498();
    }
}
