what-the-bank/sources/org/bouncycastle/crypto/ec/ECPair.java

38 lines
804 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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;
}
}