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

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