what-the-bank/sources/org/bouncycastle/crypto/params/DHPublicKeyParameters.java

28 lines
804 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 DHPublicKeyParameters extends DHKeyParameters {
private BigInteger y;
@Override // org.bouncycastle.crypto.params.DHKeyParameters
public int hashCode() {
return this.y.hashCode() ^ super.hashCode();
}
public BigInteger getY() {
return this.y;
}
@Override // org.bouncycastle.crypto.params.DHKeyParameters
public boolean equals(Object obj) {
return (obj instanceof DHPublicKeyParameters) && ((DHPublicKeyParameters) obj).getY().equals(this.y) && super.equals(obj);
}
public DHPublicKeyParameters(BigInteger bigInteger, DHParameters dHParameters) {
super(false, dHParameters);
this.y = bigInteger;
}
}