package org.bouncycastle.crypto.params; import java.math.BigInteger; /* loaded from: classes6.dex */ public class CramerShoupPublicKeyParameters extends CramerShoupKeyParameters { private BigInteger c; private BigInteger d; private BigInteger h; @Override // org.bouncycastle.crypto.params.CramerShoupKeyParameters public int hashCode() { return ((this.c.hashCode() ^ this.d.hashCode()) ^ this.h.hashCode()) ^ super.hashCode(); } public BigInteger getH() { return this.h; } public BigInteger getD() { return this.d; } public BigInteger getC() { return this.c; } @Override // org.bouncycastle.crypto.params.CramerShoupKeyParameters public boolean equals(Object obj) { if (!(obj instanceof CramerShoupPublicKeyParameters)) { return false; } CramerShoupPublicKeyParameters cramerShoupPublicKeyParameters = (CramerShoupPublicKeyParameters) obj; return cramerShoupPublicKeyParameters.getC().equals(this.c) && cramerShoupPublicKeyParameters.getD().equals(this.d) && cramerShoupPublicKeyParameters.getH().equals(this.h) && super.equals(obj); } public CramerShoupPublicKeyParameters(CramerShoupParameters cramerShoupParameters, BigInteger bigInteger, BigInteger bigInteger2, BigInteger bigInteger3) { super(false, cramerShoupParameters); this.c = bigInteger; this.d = bigInteger2; this.h = bigInteger3; } }