part7
Class Utilities

java.lang.Object
  extended bypart7.Utilities

public class Utilities
extends java.lang.Object


Nested Class Summary
static class Utilities.Point
          A class used to represent a point (x,y) on an elliptic curve.
 
Method Summary
static RealPoint newCurve(java.math.BigInteger p, java.security.SecureRandom rnd)
          A method to generate a random elliptic curve over Zp and base point where p is a large prime.
static boolean ok(Curve c)
          A method to deterime if an elliptic curve c satisfies the condition 4a3+27b3 # 0 (mod p).
static java.util.AbstractSet points(Curve c)
          A method to compute the points on an elliptic curve c.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

ok

public static boolean ok(Curve c)
                  throws java.lang.Exception
A method to deterime if an elliptic curve c satisfies the condition 4a3+27b3 # 0 (mod p).

Throws:
java.lang.Exception

points

public static java.util.AbstractSet points(Curve c)
                                    throws java.lang.Exception
A method to compute the points on an elliptic curve c.

Returns:
A set of objects of type Utilities.Point.
Throws:
java.lang.Exception

newCurve

public static RealPoint newCurve(java.math.BigInteger p,
                                 java.security.SecureRandom rnd)
                          throws java.lang.Exception
A method to generate a random elliptic curve over Zp and base point where p is a large prime.

Returns:
The base point. Note that the generated curve can be obtained from the base point.
Throws:
java.lang.Exception