38 lines
804 B
Java
38 lines
804 B
Java
|
package org.bouncycastle.crypto.ec;
|
||
|
|
||
|
import org.bouncycastle.math.ec.ECPoint;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class ECPair {
|
||
|
private final ECPoint x;
|
||
|
private final ECPoint y;
|
||
|
|
||
|
public int hashCode() {
|
||
|
return this.x.hashCode() + (this.y.hashCode() * 37);
|
||
|
}
|
||
|
|
||
|
public ECPoint getY() {
|
||
|
return this.y;
|
||
|
}
|
||
|
|
||
|
public ECPoint getX() {
|
||
|
return this.x;
|
||
|
}
|
||
|
|
||
|
public boolean equals(ECPair eCPair) {
|
||
|
return eCPair.getX().equals(getX()) && eCPair.getY().equals(getY());
|
||
|
}
|
||
|
|
||
|
public boolean equals(Object obj) {
|
||
|
if (obj instanceof ECPair) {
|
||
|
return equals((ECPair) obj);
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public ECPair(ECPoint eCPoint, ECPoint eCPoint2) {
|
||
|
this.x = eCPoint;
|
||
|
this.y = eCPoint2;
|
||
|
}
|
||
|
}
|