package com.google.android.gms.internal.ads;

import java.math.BigInteger;
import java.security.GeneralSecurityException;
import java.util.Collections;
import java.util.HashMap;

/* JADX INFO: loaded from: classes2.dex */
public abstract class a82 {
    static {
        int i10 = o52.zza;
        try {
            a();
        } catch (GeneralSecurityException e10) {
            throw new ExceptionInInitializerError(e10);
        }
    }

    public static void a() {
        f72 f72Var = f72.f11091a;
        s02 s02Var = s02.f16272b;
        s02Var.b(f72.f11091a);
        s02Var.a(f72.f11092b);
        s02Var.b(i72.f12404a);
        s02Var.a(i72.f12405b);
        int i10 = w62.f17883f;
        if (!ih1.z(i10)) {
            throw new GeneralSecurityException("Can not use ECDSA in FIPS-mode, as BoringCrypto module is not available.");
        }
        x02 x02Var = d82.f10318a;
        t02 t02Var = t02.f16664b;
        t02Var.c(d82.f10318a);
        t02Var.d(d82.f10319b);
        t02Var.a(d82.f10320c);
        t02Var.b(d82.f10321d);
        t02Var.a(d82.f10322e);
        t02Var.b(d82.f10323f);
        r02 r02Var = r02.f15944b;
        HashMap map = new HashMap();
        map.put("ECDSA_P256", e72.f10652a);
        map.put("ECDSA_P256_IEEE_P1363", e72.f10655d);
        int i11 = 21;
        int i12 = 0;
        eb ebVar = new eb(i11, i12);
        ebVar.f10743d = p62.f15279b;
        ebVar.f10741b = o62.f14878c;
        ebVar.f10742c = q62.f15602b;
        ebVar.f10744e = r62.f16009e;
        map.put("ECDSA_P256_RAW", ebVar.x());
        map.put("ECDSA_P256_IEEE_P1363_WITHOUT_PREFIX", e72.f10657f);
        map.put("ECDSA_P384", e72.f10653b);
        map.put("ECDSA_P384_IEEE_P1363", e72.f10656e);
        eb ebVar2 = new eb(i11, i12);
        ebVar2.f10743d = p62.f15281d;
        o62 o62Var = o62.f14879d;
        ebVar2.f10741b = o62Var;
        q62 q62Var = q62.f15603c;
        ebVar2.f10742c = q62Var;
        r62 r62Var = r62.f16006b;
        ebVar2.f10744e = r62Var;
        map.put("ECDSA_P384_SHA512", ebVar2.x());
        eb ebVar3 = new eb(i11, i12);
        ebVar3.f10743d = p62.f15280c;
        ebVar3.f10741b = o62Var;
        ebVar3.f10742c = q62Var;
        ebVar3.f10744e = r62Var;
        map.put("ECDSA_P384_SHA384", ebVar3.x());
        map.put("ECDSA_P521", e72.f10654c);
        map.put("ECDSA_P521_IEEE_P1363", e72.f10658g);
        r02Var.b(Collections.unmodifiableMap(map));
        s02Var.a(w62.f17878a);
        s02Var.a(w62.f17879b);
        l02 l02Var = l02.f13453b;
        l02Var.a(w62.f17882e, s62.class);
        yz1 yz1Var = yz1.f19020d;
        yz1Var.c(w62.f17880c, i10, true);
        yz1Var.c(w62.f17881d, i10, false);
        int i13 = r72.f16022f;
        if (!ih1.z(i13)) {
            throw new GeneralSecurityException("Can not use RSA SSA PKCS1 in FIPS-mode, as BoringCrypto module is not available.");
        }
        t02Var.c(j82.f12774a);
        t02Var.d(j82.f12775b);
        t02Var.a(j82.f12776c);
        t02Var.b(j82.f12777d);
        t02Var.a(j82.f12778e);
        t02Var.b(j82.f12779f);
        HashMap map2 = new HashMap();
        map2.put("RSA_SSA_PKCS1_3072_SHA256_F4", e72.f10659h);
        BigInteger bigInteger = m72.f13996e;
        j72 j72Var = new j72();
        j72Var.f12759c = k72.f13149b;
        j72Var.a(3072);
        BigInteger bigInteger2 = m72.f13996e;
        j72Var.f12758b = bigInteger2;
        l72 l72Var = l72.f13522e;
        j72Var.f12760d = l72Var;
        map2.put("RSA_SSA_PKCS1_3072_SHA256_F4_RAW", j72Var.b());
        map2.put("RSA_SSA_PKCS1_3072_SHA256_F4_WITHOUT_PREFIX", e72.f10660i);
        map2.put("RSA_SSA_PKCS1_4096_SHA512_F4", e72.f10661j);
        j72 j72Var2 = new j72();
        j72Var2.f12759c = k72.f13151d;
        j72Var2.a(4096);
        j72Var2.f12758b = bigInteger2;
        j72Var2.f12760d = l72Var;
        map2.put("RSA_SSA_PKCS1_4096_SHA512_F4_RAW", j72Var2.b());
        r02Var.b(map2);
        s02Var.a(r72.f16017a);
        s02Var.a(r72.f16018b);
        l02Var.a(r72.f16021e, m72.class);
        yz1Var.c(r72.f16019c, i13, true);
        yz1Var.c(r72.f16020d, i13, false);
        int i14 = z72.f19122f;
        if (!ih1.z(i14)) {
            throw new GeneralSecurityException("Can not use RSA SSA PSS in FIPS-mode, as BoringCrypto module is not available.");
        }
        t02Var.c(m82.f14021a);
        t02Var.d(m82.f14022b);
        t02Var.a(m82.f14023c);
        t02Var.b(m82.f14024d);
        t02Var.a(m82.f14025e);
        t02Var.b(m82.f14026f);
        HashMap map3 = new HashMap();
        BigInteger bigInteger3 = v72.f17532g;
        s72 s72Var = new s72();
        t72 t72Var = t72.f16751b;
        s72Var.f16341c = t72Var;
        s72Var.f16342d = t72Var;
        s72Var.b(32);
        s72Var.a(3072);
        BigInteger bigInteger4 = v72.f17532g;
        s72Var.f16340b = bigInteger4;
        u72 u72Var = u72.f17118b;
        s72Var.f16344f = u72Var;
        map3.put("RSA_SSA_PSS_3072_SHA256_F4", s72Var.c());
        s72 s72Var2 = new s72();
        s72Var2.f16341c = t72Var;
        s72Var2.f16342d = t72Var;
        s72Var2.b(32);
        s72Var2.a(3072);
        s72Var2.f16340b = bigInteger4;
        u72 u72Var2 = u72.f17121e;
        s72Var2.f16344f = u72Var2;
        map3.put("RSA_SSA_PSS_3072_SHA256_F4_RAW", s72Var2.c());
        map3.put("RSA_SSA_PSS_3072_SHA256_SHA256_32_F4", e72.f10662k);
        s72 s72Var3 = new s72();
        t72 t72Var2 = t72.f16753d;
        s72Var3.f16341c = t72Var2;
        s72Var3.f16342d = t72Var2;
        s72Var3.b(64);
        s72Var3.a(4096);
        s72Var3.f16340b = bigInteger4;
        s72Var3.f16344f = u72Var;
        map3.put("RSA_SSA_PSS_4096_SHA512_F4", s72Var3.c());
        s72 s72Var4 = new s72();
        s72Var4.f16341c = t72Var2;
        s72Var4.f16342d = t72Var2;
        s72Var4.b(64);
        s72Var4.a(4096);
        s72Var4.f16340b = bigInteger4;
        s72Var4.f16344f = u72Var2;
        map3.put("RSA_SSA_PSS_4096_SHA512_F4_RAW", s72Var4.c());
        map3.put("RSA_SSA_PSS_4096_SHA512_SHA512_64_F4", e72.f10663l);
        r02Var.b(Collections.unmodifiableMap(map3));
        s02Var.a(z72.f19117a);
        s02Var.a(z72.f19118b);
        l02Var.a(z72.f19121e, v72.class);
        yz1Var.c(z72.f19119c, i14, true);
        yz1Var.c(z72.f19120d, i14, false);
        if (mz1.a()) {
            return;
        }
        b12 b12Var = b72.f9418a;
        if (!ih1.z(1)) {
            throw new GeneralSecurityException("Registering AES GCM SIV is not supported in FIPS mode");
        }
        t02Var.c(f82.f11107a);
        t02Var.d(f82.f11108b);
        t02Var.a(f82.f11109c);
        t02Var.b(f82.f11110d);
        t02Var.a(f82.f11111e);
        t02Var.b(f82.f11112f);
        HashMap map4 = new HashMap();
        map4.put("ED25519", new y62(x62.f18327b));
        x62 x62Var = x62.f18330e;
        map4.put("ED25519_RAW", new y62(x62Var));
        map4.put("ED25519WithRawOutput", new y62(x62Var));
        r02Var.b(Collections.unmodifiableMap(map4));
        l02Var.a(b72.f9423f, y62.class);
        n02.f14395b.a(b72.f9422e, y62.class);
        s02Var.a(b72.f9418a);
        s02Var.a(b72.f9419b);
        yz1Var.a(b72.f9420c, true);
        yz1Var.a(b72.f9421d, false);
    }
}
