package org.bouncycastle.crypto.params;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class CramerShoupKeyParameters extends org.bouncycastle.crypto.params.AsymmetricKeyParameter {
    private org.bouncycastle.crypto.params.CramerShoupParameters b;

    protected CramerShoupKeyParameters(boolean z, org.bouncycastle.crypto.params.CramerShoupParameters cramerShoupParameters) {
        super(z);
        this.b = cramerShoupParameters;
    }

    public boolean equals(java.lang.Object obj) {
        if (!(obj instanceof org.bouncycastle.crypto.params.CramerShoupKeyParameters)) {
            return false;
        }
        org.bouncycastle.crypto.params.CramerShoupKeyParameters cramerShoupKeyParameters = (org.bouncycastle.crypto.params.CramerShoupKeyParameters) obj;
        org.bouncycastle.crypto.params.CramerShoupParameters cramerShoupParameters = this.b;
        if (cramerShoupParameters == null) {
            return cramerShoupKeyParameters.g() == null;
        }
        return cramerShoupParameters.equals(cramerShoupKeyParameters.g());
    }

    public org.bouncycastle.crypto.params.CramerShoupParameters g() {
        return this.b;
    }

    public int hashCode() {
        int i = !f() ? 1 : 0;
        org.bouncycastle.crypto.params.CramerShoupParameters cramerShoupParameters = this.b;
        return cramerShoupParameters != null ? cramerShoupParameters.hashCode() ^ i : i;
    }
}
