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

import java.security.InvalidAlgorithmParameterException;
import java.util.Arrays;
import javax.crypto.spec.SecretKeySpec;

/* JADX INFO: loaded from: classes2.dex */
public final class b92 implements cw1 {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public static final byte[] f9451e = {0};

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final q22 f9452a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f9453b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final byte[] f9454c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final byte[] f9455d;

    public b92(r12 r12Var) {
        this.f9452a = ih1.W(o22.z(p22.b(r12Var.f15951b.f17476a), r12Var.f15952c));
        v12 v12Var = r12Var.f15951b;
        this.f9453b = v12Var.f17477b;
        this.f9454c = r12Var.f15953d.b();
        if (v12Var.f17478c.equals(u12.f17062d)) {
            this.f9455d = Arrays.copyOf(f9451e, 1);
        } else {
            this.f9455d = new byte[0];
        }
    }

    public b92(a22 a22Var) {
        String strValueOf = String.valueOf(a22Var.f8464b.f10995d);
        this.f9452a = new a92("HMAC".concat(strValueOf), new SecretKeySpec(a22Var.f8465c.h(), "HMAC"), 0);
        f22 f22Var = a22Var.f8464b;
        this.f9453b = f22Var.f10993b;
        this.f9454c = a22Var.f8466d.b();
        if (f22Var.f10994c.equals(e22.f10604d)) {
            this.f9455d = Arrays.copyOf(f9451e, 1);
        } else {
            this.f9455d = new byte[0];
        }
    }

    public b92(a92 a92Var, int i10) throws InvalidAlgorithmParameterException {
        this.f9452a = a92Var;
        this.f9453b = i10;
        this.f9454c = new byte[0];
        this.f9455d = new byte[0];
        a92Var.a(i10, new byte[0]);
    }
}
