package org.bouncycastle.crypto.params; import java.math.BigInteger; /* loaded from: classes6.dex */ public class ElGamalPrivateKeyParameters extends ElGamalKeyParameters { private BigInteger x; @Override // org.bouncycastle.crypto.params.ElGamalKeyParameters public int hashCode() { return getX().hashCode(); } public BigInteger getX() { return this.x; } @Override // org.bouncycastle.crypto.params.ElGamalKeyParameters public boolean equals(Object obj) { if ((obj instanceof ElGamalPrivateKeyParameters) && ((ElGamalPrivateKeyParameters) obj).getX().equals(this.x)) { return super.equals(obj); } return false; } public ElGamalPrivateKeyParameters(BigInteger bigInteger, ElGamalParameters elGamalParameters) { super(true, elGamalParameters); this.x = bigInteger; } }