package XnFJ5_9;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/* compiled from: CipherSuite.java */
/* loaded from: classes.dex */
public final class EuDEkJe_12 {
    public static final EuDEkJe_12 EuDEkJe_12;

    /* renamed from: FSaI4_7  reason: collision with root package name */
    public static final EuDEkJe_12 f3363FSaI4_7;

    /* renamed from: IFxWkV_5  reason: collision with root package name */
    public static final EuDEkJe_12 f3364IFxWkV_5;

    /* renamed from: IMuAHx_6  reason: collision with root package name */
    public static final EuDEkJe_12 f3365IMuAHx_6;

    /* renamed from: KNBe_11  reason: collision with root package name */
    public static final EuDEkJe_12 f3366KNBe_11;
    public static final EuDEkJe_12 KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public static final Comparator<String> f1443KQgRr5e_0 = QxJ9d_1.KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public static final Map<String, EuDEkJe_12> f1444KQgRr5e_0 = new LinkedHashMap();
    public static final EuDEkJe_12 LGe8pk_15;

    /* renamed from: Mqv2r_3  reason: collision with root package name */
    public static final EuDEkJe_12 f3367Mqv2r_3;

    /* renamed from: Nm6q_10  reason: collision with root package name */
    public static final EuDEkJe_12 f3368Nm6q_10;
    public static final EuDEkJe_12 PGPF6hQ_2;
    public static final EuDEkJe_12 QxJ9d_1;
    public static final EuDEkJe_12 WwEq_13;

    /* renamed from: X6FRs_4  reason: collision with root package name */
    public static final EuDEkJe_12 f3369X6FRs_4;

    /* renamed from: Xgtqvk_8  reason: collision with root package name */
    public static final EuDEkJe_12 f3370Xgtqvk_8;

    /* renamed from: XnFJ5_9  reason: collision with root package name */
    public static final EuDEkJe_12 f3371XnFJ5_9;
    public static final EuDEkJe_12 YghfZG_14;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final String f1445KQgRr5e_0;

    static {
        KQgRr5e_0("SSL_RSA_WITH_NULL_MD5", 1);
        KQgRr5e_0("SSL_RSA_WITH_NULL_SHA", 2);
        KQgRr5e_0("SSL_RSA_EXPORT_WITH_RC4_40_MD5", 3);
        KQgRr5e_0("SSL_RSA_WITH_RC4_128_MD5", 4);
        KQgRr5e_0("SSL_RSA_WITH_RC4_128_SHA", 5);
        KQgRr5e_0("SSL_RSA_EXPORT_WITH_DES40_CBC_SHA", 8);
        KQgRr5e_0("SSL_RSA_WITH_DES_CBC_SHA", 9);
        KQgRr5e_0 = KQgRr5e_0("SSL_RSA_WITH_3DES_EDE_CBC_SHA", 10);
        KQgRr5e_0("SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA", 17);
        KQgRr5e_0("SSL_DHE_DSS_WITH_DES_CBC_SHA", 18);
        KQgRr5e_0("SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA", 19);
        KQgRr5e_0("SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA", 20);
        KQgRr5e_0("SSL_DHE_RSA_WITH_DES_CBC_SHA", 21);
        KQgRr5e_0("SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA", 22);
        KQgRr5e_0("SSL_DH_anon_EXPORT_WITH_RC4_40_MD5", 23);
        KQgRr5e_0("SSL_DH_anon_WITH_RC4_128_MD5", 24);
        KQgRr5e_0("SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA", 25);
        KQgRr5e_0("SSL_DH_anon_WITH_DES_CBC_SHA", 26);
        KQgRr5e_0("SSL_DH_anon_WITH_3DES_EDE_CBC_SHA", 27);
        KQgRr5e_0("TLS_KRB5_WITH_DES_CBC_SHA", 30);
        KQgRr5e_0("TLS_KRB5_WITH_3DES_EDE_CBC_SHA", 31);
        KQgRr5e_0("TLS_KRB5_WITH_RC4_128_SHA", 32);
        KQgRr5e_0("TLS_KRB5_WITH_DES_CBC_MD5", 34);
        KQgRr5e_0("TLS_KRB5_WITH_3DES_EDE_CBC_MD5", 35);
        KQgRr5e_0("TLS_KRB5_WITH_RC4_128_MD5", 36);
        KQgRr5e_0("TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA", 38);
        KQgRr5e_0("TLS_KRB5_EXPORT_WITH_RC4_40_SHA", 40);
        KQgRr5e_0("TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5", 41);
        KQgRr5e_0("TLS_KRB5_EXPORT_WITH_RC4_40_MD5", 43);
        QxJ9d_1 = KQgRr5e_0("TLS_RSA_WITH_AES_128_CBC_SHA", 47);
        KQgRr5e_0("TLS_DHE_DSS_WITH_AES_128_CBC_SHA", 50);
        KQgRr5e_0("TLS_DHE_RSA_WITH_AES_128_CBC_SHA", 51);
        KQgRr5e_0("TLS_DH_anon_WITH_AES_128_CBC_SHA", 52);
        PGPF6hQ_2 = KQgRr5e_0("TLS_RSA_WITH_AES_256_CBC_SHA", 53);
        KQgRr5e_0("TLS_DHE_DSS_WITH_AES_256_CBC_SHA", 56);
        KQgRr5e_0("TLS_DHE_RSA_WITH_AES_256_CBC_SHA", 57);
        KQgRr5e_0("TLS_DH_anon_WITH_AES_256_CBC_SHA", 58);
        KQgRr5e_0("TLS_RSA_WITH_NULL_SHA256", 59);
        KQgRr5e_0("TLS_RSA_WITH_AES_128_CBC_SHA256", 60);
        KQgRr5e_0("TLS_RSA_WITH_AES_256_CBC_SHA256", 61);
        KQgRr5e_0("TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", 64);
        KQgRr5e_0("TLS_RSA_WITH_CAMELLIA_128_CBC_SHA", 65);
        KQgRr5e_0("TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA", 68);
        KQgRr5e_0("TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA", 69);
        KQgRr5e_0("TLS_DHE_RSA_WITH_AES_128_CBC_SHA256", 103);
        KQgRr5e_0("TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", 106);
        KQgRr5e_0("TLS_DHE_RSA_WITH_AES_256_CBC_SHA256", 107);
        KQgRr5e_0("TLS_DH_anon_WITH_AES_128_CBC_SHA256", 108);
        KQgRr5e_0("TLS_DH_anon_WITH_AES_256_CBC_SHA256", 109);
        KQgRr5e_0("TLS_RSA_WITH_CAMELLIA_256_CBC_SHA", 132);
        KQgRr5e_0("TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA", 135);
        KQgRr5e_0("TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA", 136);
        KQgRr5e_0("TLS_PSK_WITH_RC4_128_SHA", 138);
        KQgRr5e_0("TLS_PSK_WITH_3DES_EDE_CBC_SHA", 139);
        KQgRr5e_0("TLS_PSK_WITH_AES_128_CBC_SHA", 140);
        KQgRr5e_0("TLS_PSK_WITH_AES_256_CBC_SHA", 141);
        KQgRr5e_0("TLS_RSA_WITH_SEED_CBC_SHA", 150);
        f3367Mqv2r_3 = KQgRr5e_0("TLS_RSA_WITH_AES_128_GCM_SHA256", 156);
        f3369X6FRs_4 = KQgRr5e_0("TLS_RSA_WITH_AES_256_GCM_SHA384", 157);
        KQgRr5e_0("TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", 158);
        KQgRr5e_0("TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", 159);
        KQgRr5e_0("TLS_DHE_DSS_WITH_AES_128_GCM_SHA256", 162);
        KQgRr5e_0("TLS_DHE_DSS_WITH_AES_256_GCM_SHA384", 163);
        KQgRr5e_0("TLS_DH_anon_WITH_AES_128_GCM_SHA256", 166);
        KQgRr5e_0("TLS_DH_anon_WITH_AES_256_GCM_SHA384", 167);
        KQgRr5e_0("TLS_EMPTY_RENEGOTIATION_INFO_SCSV", 255);
        KQgRr5e_0("TLS_FALLBACK_SCSV", 22016);
        KQgRr5e_0("TLS_ECDH_ECDSA_WITH_NULL_SHA", 49153);
        KQgRr5e_0("TLS_ECDH_ECDSA_WITH_RC4_128_SHA", 49154);
        KQgRr5e_0("TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA", 49155);
        KQgRr5e_0("TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA", 49156);
        KQgRr5e_0("TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA", 49157);
        KQgRr5e_0("TLS_ECDHE_ECDSA_WITH_NULL_SHA", 49158);
        KQgRr5e_0("TLS_ECDHE_ECDSA_WITH_RC4_128_SHA", 49159);
        KQgRr5e_0("TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA", 49160);
        KQgRr5e_0("TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", 49161);
        KQgRr5e_0("TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", 49162);
        KQgRr5e_0("TLS_ECDH_RSA_WITH_NULL_SHA", 49163);
        KQgRr5e_0("TLS_ECDH_RSA_WITH_RC4_128_SHA", 49164);
        KQgRr5e_0("TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA", 49165);
        KQgRr5e_0("TLS_ECDH_RSA_WITH_AES_128_CBC_SHA", 49166);
        KQgRr5e_0("TLS_ECDH_RSA_WITH_AES_256_CBC_SHA", 49167);
        KQgRr5e_0("TLS_ECDHE_RSA_WITH_NULL_SHA", 49168);
        KQgRr5e_0("TLS_ECDHE_RSA_WITH_RC4_128_SHA", 49169);
        KQgRr5e_0("TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA", 49170);
        f3364IFxWkV_5 = KQgRr5e_0("TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", 49171);
        f3365IMuAHx_6 = KQgRr5e_0("TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", 49172);
        KQgRr5e_0("TLS_ECDH_anon_WITH_NULL_SHA", 49173);
        KQgRr5e_0("TLS_ECDH_anon_WITH_RC4_128_SHA", 49174);
        KQgRr5e_0("TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA", 49175);
        KQgRr5e_0("TLS_ECDH_anon_WITH_AES_128_CBC_SHA", 49176);
        KQgRr5e_0("TLS_ECDH_anon_WITH_AES_256_CBC_SHA", 49177);
        KQgRr5e_0("TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", 49187);
        KQgRr5e_0("TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", 49188);
        KQgRr5e_0("TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256", 49189);
        KQgRr5e_0("TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384", 49190);
        KQgRr5e_0("TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", 49191);
        KQgRr5e_0("TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", 49192);
        KQgRr5e_0("TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256", 49193);
        KQgRr5e_0("TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384", 49194);
        f3363FSaI4_7 = KQgRr5e_0("TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", 49195);
        f3370Xgtqvk_8 = KQgRr5e_0("TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", 49196);
        KQgRr5e_0("TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256", 49197);
        KQgRr5e_0("TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384", 49198);
        f3371XnFJ5_9 = KQgRr5e_0("TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", 49199);
        f3368Nm6q_10 = KQgRr5e_0("TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", 49200);
        KQgRr5e_0("TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256", 49201);
        KQgRr5e_0("TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384", 49202);
        KQgRr5e_0("TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA", 49205);
        KQgRr5e_0("TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA", 49206);
        f3366KNBe_11 = KQgRr5e_0("TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256", 52392);
        EuDEkJe_12 = KQgRr5e_0("TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256", 52393);
        KQgRr5e_0("TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256", 52394);
        KQgRr5e_0("TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256", 52396);
        WwEq_13 = KQgRr5e_0("TLS_AES_128_GCM_SHA256", 4865);
        YghfZG_14 = KQgRr5e_0("TLS_AES_256_GCM_SHA384", 4866);
        LGe8pk_15 = KQgRr5e_0("TLS_CHACHA20_POLY1305_SHA256", 4867);
        KQgRr5e_0("TLS_AES_128_CCM_SHA256", 4868);
        KQgRr5e_0("TLS_AES_128_CCM_8_SHA256", 4869);
    }

    public EuDEkJe_12(String str) {
        if (str != null) {
            this.f1445KQgRr5e_0 = str;
            return;
        }
        throw null;
    }

    public static /* synthetic */ int KQgRr5e_0(String str, String str2) {
        int min = Math.min(str.length(), str2.length());
        for (int i = 4; i < min; i++) {
            char charAt = str.charAt(i);
            char charAt2 = str2.charAt(i);
            if (charAt != charAt2) {
                return charAt < charAt2 ? -1 : 1;
            }
        }
        int length = str.length();
        int length2 = str2.length();
        if (length != length2) {
            return length < length2 ? -1 : 1;
        }
        return 0;
    }

    public String toString() {
        return this.f1445KQgRr5e_0;
    }

    public static synchronized EuDEkJe_12 KQgRr5e_0(String str) {
        EuDEkJe_12 euDEkJe_12;
        synchronized (EuDEkJe_12.class) {
            euDEkJe_12 = f1444KQgRr5e_0.get(str);
            if (euDEkJe_12 == null) {
                euDEkJe_12 = f1444KQgRr5e_0.get(m668KQgRr5e_0(str));
                if (euDEkJe_12 == null) {
                    euDEkJe_12 = new EuDEkJe_12(str);
                }
                f1444KQgRr5e_0.put(str, euDEkJe_12);
            }
        }
        return euDEkJe_12;
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public static String m668KQgRr5e_0(String str) {
        if (str.startsWith("TLS_")) {
            return "SSL_" + str.substring(4);
        } else if (str.startsWith("SSL_")) {
            return "TLS_" + str.substring(4);
        } else {
            return str;
        }
    }

    public static List<EuDEkJe_12> KQgRr5e_0(String... strArr) {
        ArrayList arrayList = new ArrayList(strArr.length);
        for (String str : strArr) {
            arrayList.add(KQgRr5e_0(str));
        }
        return Collections.unmodifiableList(arrayList);
    }

    public static EuDEkJe_12 KQgRr5e_0(String str, int i) {
        EuDEkJe_12 euDEkJe_12 = new EuDEkJe_12(str);
        f1444KQgRr5e_0.put(str, euDEkJe_12);
        return euDEkJe_12;
    }
}
