|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part7.ECPoint
A superclass used to represent points (including
the point at infinity) of an elliptic curve.
Note that objects of type ECPoint
and all derived classes are immutable.
Field Summary | |
protected Curve |
_c
|
Constructor Summary | |
ECPoint(Curve c)
A constructor for points on the curve c . |
Method Summary | |
abstract ECPoint |
add(ECPoint p)
A method to add this point to the point p . |
abstract int |
compareTo(java.lang.Object obj)
A method that implements lexicographic ordering of points. |
Curve |
getCurve()
A method to return the curve on which this point is located. |
abstract ECPoint |
inverse()
A method to return the inverse of this point. |
abstract java.math.BigInteger |
log(ECPoint b)
A method to compute the log of this point to the base b . |
java.math.BigInteger |
ord()
A method to compute the order of the curve of this pint. |
abstract java.math.BigInteger |
order()
A method to return the order of this point. |
java.util.AbstractSet |
points()
A method to return all the points of the curve used by this point. |
abstract ECPoint |
power(java.math.BigInteger e)
A method to raise this point to the power e . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Curve _c
Constructor Detail |
public ECPoint(Curve c) throws java.lang.Exception
c
.
java.lang.Exception
- if c
is not an acceptable curve.Method Detail |
public final Curve getCurve() throws java.lang.Exception
java.lang.Exception
public abstract ECPoint add(ECPoint p) throws java.lang.Exception
this
point to the point p
.
this + p
- Throws:
java.lang.Exception
- if the points to be added are on different curves.
public abstract ECPoint power(java.math.BigInteger e) throws java.lang.Exception
this
point to the power e
.
thise
- Throws:
java.lang.Exception
public abstract java.math.BigInteger log(ECPoint b) throws java.lang.Exception
this
point to the base b
.
logbthis
- Throws:
java.lang.Exception
public abstract ECPoint inverse() throws java.lang.Exception
this
point.
this-1
java.lang.Exception
public abstract java.math.BigInteger order() throws java.lang.Exception
this
point.
ord(this)
java.lang.Exception
public final java.math.BigInteger ord() throws java.lang.Exception
java.lang.Exception
public abstract int compareTo(java.lang.Object obj)
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
public final java.util.AbstractSet points() throws java.lang.Exception
ECPoint
.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |