package u2;

import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public final class h extends B2.s {

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final g f10343e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final g f10344f;

    public h(int i, int i5, int i6, g gVar, g gVar2) {
        this.f10340b = i;
        this.f10341c = i5;
        this.f10342d = i6;
        this.f10343e = gVar;
        this.f10344f = gVar2;
    }

    public final int b() {
        g gVar = g.f10324j;
        int i = this.f10342d;
        g gVar2 = this.f10343e;
        if (gVar2 == gVar) {
            return i + 16;
        }
        if (gVar2 == g.f10323h || gVar2 == g.i) {
            return i + 21;
        }
        throw new IllegalStateException("Unknown variant");
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof h)) {
            return false;
        }
        h hVar = (h) obj;
        return hVar.f10340b == this.f10340b && hVar.f10341c == this.f10341c && hVar.b() == b() && hVar.f10343e == this.f10343e && hVar.f10344f == this.f10344f;
    }

    public final int hashCode() {
        return Objects.hash(h.class, Integer.valueOf(this.f10340b), Integer.valueOf(this.f10341c), Integer.valueOf(this.f10342d), this.f10343e, this.f10344f);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("AesCtrHmacAead Parameters (variant: ");
        sb.append(this.f10343e);
        sb.append(", hashType: ");
        sb.append(this.f10344f);
        sb.append(", ");
        sb.append(this.f10342d);
        sb.append("-byte tags, and ");
        sb.append(this.f10340b);
        sb.append("-byte AES key, and ");
        return s0.c.d(sb, this.f10341c, "-byte HMAC key)");
    }
}
