|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part7.ECPoint part7.RealPoint
A class used to represent a real point (x,y) on an elliptic curve.
Field Summary |
Fields inherited from class part7.ECPoint |
_c |
Constructor Summary | |
RealPoint(Curve c,
java.math.BigInteger x,
java.math.BigInteger y)
|
Method Summary | |
ECPoint |
add(ECPoint p)
A method to add this point to the point p . |
int |
compareTo(java.lang.Object obj)
A method that implements lexicographic ordering of points. |
java.math.BigInteger |
getX()
|
java.math.BigInteger |
getY()
|
ECPoint |
inverse()
A method to return the inverse of this point. |
java.math.BigInteger |
log(ECPoint p)
A method to compute the log of this point to the base b . |
java.math.BigInteger |
order()
A method to return the order of this point. |
ECPoint |
power(java.math.BigInteger e)
A method to raise this point to the power e . |
java.lang.String |
toString()
|
Methods inherited from class part7.ECPoint |
getCurve, ord, points |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RealPoint(Curve c, java.math.BigInteger x, java.math.BigInteger y) throws java.lang.Exception
java.lang.Exception
- if the point (x,y)
is not on the curve c
.Method Detail |
public int compareTo(java.lang.Object obj)
ECPoint
java.language.Comparible
to allow objects of type
Point
to be compared when added to collection types such as
AbstractSte
.
compareTo
in interface java.lang.Comparable
compareTo
in class ECPoint
public java.lang.String toString()
public ECPoint add(ECPoint p) throws java.lang.Exception
ECPoint
this
point to the point p
.
add
in class ECPoint
this + p
- Throws:
java.lang.Exception
- if the points to be added are on different curves.
public ECPoint power(java.math.BigInteger e) throws java.lang.Exception
ECPoint
this
point to the power e
.
power
in class ECPoint
thise
- Throws:
java.lang.Exception
public java.math.BigInteger log(ECPoint p) throws java.lang.Exception
ECPoint
this
point to the base b
.
log
in class ECPoint
logbthis
- Throws:
java.lang.Exception
public ECPoint inverse() throws java.lang.Exception
ECPoint
this
point.
inverse
in class ECPoint
this-1
java.lang.Exception
public java.math.BigInteger order() throws java.lang.Exception
ECPoint
this
point.
order
in class ECPoint
ord(this)
java.lang.Exception
public java.math.BigInteger getX() throws java.lang.Exception
java.lang.Exception
public java.math.BigInteger getY() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |