IAIK ECC
version 2.18

iaik.security.ecc.math.ecgroup
Class CoordinateTypes

java.lang.Object
  extended byiaik.security.ecc.math.ecgroup.CoordinateTypes

public class CoordinateTypes
extends java.lang.Object

Enumerates all known types of coordinates.


Field Summary
static int AFFINE_COORDINATES
          Id for affine coordinates.
protected static java.util.Hashtable defaultCoordinates_
          Maps fieldID->coordinatesID
static int MIXED_COORDINATES
          Id for mixed (projective and affine) coordinates.
static int PROJECTIVE_COORDINATES
          Id for projective coordinates, compliant to IEEE 1363
 
Constructor Summary
CoordinateTypes()
           
 
Method Summary
static int getDefaultCoordinates(int fieldID)
          Gets the coordinate type to be used for a certain field.
static void setDefaultCoordinates(int fieldID, int coordinateType)
          Sets the default coordinate type for a certain field type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AFFINE_COORDINATES

public static final int AFFINE_COORDINATES
Id for affine coordinates.

See Also:
ECDSAParameter.ECDSAParameter(ECCParameterSpec, int), Constant Field Values

PROJECTIVE_COORDINATES

public static final int PROJECTIVE_COORDINATES
Id for projective coordinates, compliant to IEEE 1363

See Also:
ECDSAParameter.ECDSAParameter(ECCParameterSpec, int), Constant Field Values

MIXED_COORDINATES

public static final int MIXED_COORDINATES
Id for mixed (projective and affine) coordinates.

See Also:
Constant Field Values

defaultCoordinates_

protected static java.util.Hashtable defaultCoordinates_
Maps fieldID->coordinatesID

Constructor Detail

CoordinateTypes

public CoordinateTypes()
Method Detail

getDefaultCoordinates

public static int getDefaultCoordinates(int fieldID)
Gets the coordinate type to be used for a certain field.

Parameters:
fieldID - the field identifier
Returns:
the coordinates to be used.

setDefaultCoordinates

public static void setDefaultCoordinates(int fieldID,
                                         int coordinateType)
Sets the default coordinate type for a certain field type.

Parameters:
fieldID - the field identifier.
coordinateType - the coordinate type to be used.

IAIK ECC
version 2.18

IAIK-ECC 2.18, (c) 2002 IAIK, (c) 2003 SIC