package p138.p176.p278.p279.p282;

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

/* JADX INFO: renamed from: ދ.ހ.ހ.֏.ޗ.ؠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C5218 implements InterfaceC5177<InterfaceC5179> {
    @Override // p138.p176.p278.p279.InterfaceC5177
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC5182<InterfaceC5179> mo8649(String str, String str2, int i) throws GeneralSecurityException {
        String lowerCase = str2.toLowerCase();
        byte b = -1;
        if (((lowerCase.hashCode() == 109397593 && lowerCase.equals("deterministicaead")) ? (byte) 0 : (byte) -1) != 0) {
            throw new GeneralSecurityException(String.format("No support for primitive '%s'.", str2));
        }
        if (str.hashCode() == -2089717248 && str.equals("type.googleapis.com/google.crypto.tink.AesSivKey")) {
            b = 0;
        }
        if (b != 0) {
            throw new GeneralSecurityException(String.format("No support for primitive 'DeterministicAead' with key type '%s'.", str));
        }
        C5217 c5217 = new C5217();
        if (i <= 0) {
            return c5217;
        }
        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<InterfaceC5179> mo8650() {
        return new C5221();
    }
}
