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