public final class AffineXY
extends java.lang.Object
| Constructor and Description |
|---|
AffineXY(java.math.BigInteger x,
java.math.BigInteger y)
Constructs an
AffineXY object representing the affine coordinates of an elliptic curve
point. |
AffineXY(ECPoint point)
Constructs an
AffineXY object representing the affine coordinates of the provided
elliptic curve point. |
AffineXY(ECPoint point,
boolean normalize)
Constructs an
AffineXY object representing the affine coordinates of the provided
elliptic curve point. |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getX()
Retrieves the x-coordinate of the affine point.
|
java.math.BigInteger |
getY()
Retrieves the y-coordinate of the affine point.
|
ECPoint |
toPoint(ECCurve curve)
Converts the affine coordinates of this object into an elliptic curve point on the specified
curve.
|
public AffineXY(java.math.BigInteger x,
java.math.BigInteger y)
AffineXY object representing the affine coordinates of an elliptic curve
point.x - the x-coordinate of the affine pointy - the y-coordinate of the affine pointpublic AffineXY(ECPoint point)
AffineXY object representing the affine coordinates of the provided
elliptic curve point.point - the elliptic curve point from which the affine coordinates will be extractedjava.lang.IllegalArgumentException - if the provided point is at infinitypublic AffineXY(ECPoint point, boolean normalize)
AffineXY object representing the affine coordinates of the provided
elliptic curve point.point - the elliptic curve point from which the affine coordinates will be extractednormalize - true if the point should be normalized before extracting coordinates,
false otherwisejava.lang.IllegalArgumentException - if the provided point is at infinitypublic ECPoint toPoint(ECCurve curve)
curve - the elliptic curve to which the point belongsECPoint object created using the affine coordinates of this object on the
given curvepublic java.math.BigInteger getX()
BigIntegerpublic java.math.BigInteger getY()
BigInteger