package ja;

import com.google.crypto.tink.config.internal.TinkFipsUtil$AlgorithmFipsCompatibility;
import java.security.GeneralSecurityException;
import java.util.Collections;
import java.util.HashMap;
import ma.c0;
import ma.m;
import ma.o;
import ma.r;
import ma.s;
import ma.t;
import ma.x;
import ra.q1;

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

    public static void a() throws GeneralSecurityException {
        s sVar = s.f30553b;
        sVar.b(h.f28743a);
        sVar.a(h.f28744b);
        if (ia.a.f26591b.get()) {
            return;
        }
        c0 c0Var = b.f28728a;
        if (!TinkFipsUtil$AlgorithmFipsCompatibility.f23814a.a()) {
            throw new GeneralSecurityException("Registering AES SIV is not supported in FIPS mode");
        }
        x xVar = ka.a.f29087a;
        t tVar = t.f30555b;
        tVar.f(ka.a.f29087a);
        tVar.e(ka.a.f29088b);
        tVar.d(ka.a.f29089c);
        tVar.c(ka.a.f29090d);
        sVar.a(b.f28728a);
        r rVar = r.f30551b;
        HashMap map = new HashMap();
        map.put("AES256_SIV", i.f28745a);
        fe.h hVar = new fe.h();
        hVar.P(64);
        hVar.f26081c = c.f28734d;
        map.put("AES256_SIV_RAW", hVar.l());
        rVar.b(Collections.unmodifiableMap(map));
        o.f30545b.a(b.f28730c, d.class);
        m.f30537b.a(b.f28731d, d.class);
        ma.c.f30500d.d(b.f28729b);
    }
}
