|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiaik.security.ecc.math.ecgroup.Coordinate
The base class of all coordinates. It consists of x and y values (which are elements of a finite field).
Field Summary | |
protected int |
coordinateType_
The type of coordinates used. |
protected FieldElement |
x_
the x coordinate |
protected FieldElement |
y_
the y coordinate |
Constructor Summary | |
protected |
Coordinate(FieldElement x,
FieldElement y,
int type)
Used by subclasses. |
Method Summary | |
java.lang.Object |
clone()
|
abstract boolean |
equals(java.lang.Object other)
|
int |
getCoordinateType()
Returns the coordinate id. |
FieldElement |
getX()
|
FieldElement |
getY()
|
abstract int |
hashCode()
Returns the hash code of this value. |
protected void |
setX(FieldElement x)
|
protected void |
setY(FieldElement y)
|
abstract Coordinate |
toAffine()
Transforms the current coordinate representation into affine coordinates. |
abstract iaik.asn1.OCTET_STRING |
toASN1Object()
Elliptic Curve Points to Octet String Conversion Primitive or EC2OSP as defined in P1363. |
java.lang.String |
toString()
A human readable coordinate representation. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int coordinateType_
protected FieldElement x_
protected FieldElement y_
Constructor Detail |
protected Coordinate(FieldElement x, FieldElement y, int type)
x
- the x coordinatey
- the y coordinatetype
- the coordinate type.CoordinateTypes
Method Detail |
public java.lang.Object clone()
public abstract boolean equals(java.lang.Object other)
other
- the other coordinate.
public int getCoordinateType()
CoordinateTypes
public FieldElement getX()
public FieldElement getY()
public abstract int hashCode()
public abstract Coordinate toAffine()
public abstract iaik.asn1.OCTET_STRING toASN1Object()
public java.lang.String toString()
protected void setX(FieldElement x)
x
- the x coordinateprotected void setY(FieldElement y)
y
- the y coordinate
|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |