28 lines
807 B
Java
28 lines
807 B
Java
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;
|
|
}
|
|
}
|