what-the-bank/sources/org/bouncycastle/crypto/params/ElGamalPublicKeyParameters....

28 lines
854 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.crypto.params;
import java.math.BigInteger;
/* loaded from: classes6.dex */
public class ElGamalPublicKeyParameters extends ElGamalKeyParameters {
private BigInteger y;
@Override // org.bouncycastle.crypto.params.ElGamalKeyParameters
public int hashCode() {
return this.y.hashCode() ^ super.hashCode();
}
public BigInteger getY() {
return this.y;
}
@Override // org.bouncycastle.crypto.params.ElGamalKeyParameters
public boolean equals(Object obj) {
return (obj instanceof ElGamalPublicKeyParameters) && ((ElGamalPublicKeyParameters) obj).getY().equals(this.y) && super.equals(obj);
}
public ElGamalPublicKeyParameters(BigInteger bigInteger, ElGamalParameters elGamalParameters) {
super(false, elGamalParameters);
this.y = bigInteger;
}
}