package B2;

import java.util.Objects;

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

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

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

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

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

    public o(int i, int i5, g gVar, g gVar2) {
        this.f171b = i;
        this.f172c = i5;
        this.f173d = gVar;
        this.f174e = gVar2;
    }

    public final int b() {
        g gVar = g.f156o;
        int i = this.f172c;
        g gVar2 = this.f173d;
        if (gVar2 == gVar) {
            return i;
        }
        if (gVar2 == g.f153l) {
            return i + 5;
        }
        if (gVar2 == g.f154m) {
            return i + 5;
        }
        if (gVar2 == g.f155n) {
            return i + 5;
        }
        throw new IllegalStateException("Unknown variant");
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof o)) {
            return false;
        }
        o oVar = (o) obj;
        return oVar.f171b == this.f171b && oVar.b() == b() && oVar.f173d == this.f173d && oVar.f174e == this.f174e;
    }

    public final int hashCode() {
        return Objects.hash(o.class, Integer.valueOf(this.f171b), Integer.valueOf(this.f172c), this.f173d, this.f174e);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("HMAC Parameters (variant: ");
        sb.append(this.f173d);
        sb.append(", hashType: ");
        sb.append(this.f174e);
        sb.append(", ");
        sb.append(this.f172c);
        sb.append("-byte tags, and ");
        return s0.c.d(sb, this.f171b, "-byte key)");
    }
}
