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

import java.security.GeneralSecurityException;
import java.security.NoSuchAlgorithmException;
import javax.crypto.Cipher;
import javax.crypto.NoSuchPaddingException;

/* JADX INFO: loaded from: classes2.dex */
public abstract class w7 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final String f21314a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final String f21315b;

    static {
        new b8(0);
        f21314a = "type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey";
        new b8(3);
        f21315b = "type.googleapis.com/google.crypto.tink.AesGcmKey";
        new b8(4);
        new b8(2);
        new b8(6);
        new b8(7);
        new b8(5);
        new b8(8);
        int i10 = rd.f21188a;
        try {
            a();
        } catch (GeneralSecurityException e10) {
            throw new ExceptionInInitializerError(e10);
        }
    }

    public static void a() {
        u7.f(new y7());
        ba.a();
        u7.e(new b8(0));
        u7.e(new b8(3));
        if (j8.a()) {
            return;
        }
        u7.e(new b8(2));
        try {
            Cipher.getInstance("AES/GCM-SIV/NoPadding");
            u7.e(new b8(4));
        } catch (NoSuchAlgorithmException | NoSuchPaddingException unused) {
        }
        u7.e(new b8(5));
        u7.e(new b8(6));
        u7.e(new b8(7));
        u7.e(new b8(8));
    }
}
