IAIK ECC
version 2.18

iaik.security.ecc.spec
Class ECCParameterSpec

java.lang.Object
  extended byiaik.security.ecc.spec.ECCParameterSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec

public class ECCParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec

The repository for the elliptic curve parameters.

See Also:
ECCParameterFactory

Field Summary
protected  FieldElement a_
          The elliptic curve parameter a.
protected  FieldElement b_
          The coefficient b (satisfying b^2 * c congruent -27 mod p).
protected  java.math.BigInteger c_
          The output c of the SHA-1 based algorithm.
protected  FieldElement gx_
          The base point x coordinate Gx
protected  FieldElement gy_
          The base point y coordinate Gy
protected  java.math.BigInteger k_
          The co-factor
protected  java.lang.String oid_
          The unique object identifier of this parameter set.
protected  FieldElement p_
          The prime modulus p or the irreducible polynomial, defining the field.
protected  java.math.BigInteger r_
          The order r.
protected  java.math.BigInteger s_
          The 160-bit input seed s to the SHA-1 based algorithm.
protected  int t_
          The type of normal basis (not used)
 
Constructor Summary
ECCParameterSpec(java.math.BigInteger p, java.math.BigInteger k, java.math.BigInteger r, java.math.BigInteger s, java.math.BigInteger c, java.math.BigInteger a, java.math.BigInteger b, java.math.BigInteger gx, java.math.BigInteger gy, java.lang.String oid)
          Generates new parameters for curves over prime fields.
ECCParameterSpec(int[] irreducible, java.math.BigInteger k, java.math.BigInteger r, int[] a, int[] b, int[] gx, int[] gy, java.lang.String oid)
          Generates new parameters for curves over binary fields.
 
Method Summary
 FieldElement getA()
           
 FieldElement getB()
           
 java.math.BigInteger getC()
           
 FieldElement getGx()
           
 FieldElement getGy()
           
 java.math.BigInteger getK()
           
 java.lang.String getOID()
           
 FieldElement getP()
           
 java.math.BigInteger getR()
           
 java.math.BigInteger getS()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

a_

protected FieldElement a_
The elliptic curve parameter a.


b_

protected FieldElement b_
The coefficient b (satisfying b^2 * c congruent -27 mod p). The parameter a is always -3.


c_

protected java.math.BigInteger c_
The output c of the SHA-1 based algorithm. Not needed so far.


gx_

protected FieldElement gx_
The base point x coordinate Gx


gy_

protected FieldElement gy_
The base point y coordinate Gy


k_

protected java.math.BigInteger k_
The co-factor


oid_

protected java.lang.String oid_
The unique object identifier of this parameter set.


p_

protected FieldElement p_
The prime modulus p or the irreducible polynomial, defining the field.


r_

protected java.math.BigInteger r_
The order r.


s_

protected java.math.BigInteger s_
The 160-bit input seed s to the SHA-1 based algorithm. Not needed so far.


t_

protected int t_
The type of normal basis (not used)

Constructor Detail

ECCParameterSpec

public ECCParameterSpec(java.math.BigInteger p,
                        java.math.BigInteger k,
                        java.math.BigInteger r,
                        java.math.BigInteger s,
                        java.math.BigInteger c,
                        java.math.BigInteger a,
                        java.math.BigInteger b,
                        java.math.BigInteger gx,
                        java.math.BigInteger gy,
                        java.lang.String oid)
Generates new parameters for curves over prime fields. Applications should use the ECCarameterFactory to get an instance of this class.

Parameters:
p - the prime modulus p, defining the field.
k - the cofactor.
r - the order r.
s - the 160-bit input seed s to the SHA-1 based algorithm.
c - the output c of the SHA-1 based algorithm.
a - the coefficient a
b - the coefficient b (satisfying b^2 * c congruent -27 mod p);
gx - the base point x coordinate Gx
gy - the base point y coordinate Gy
oid - the objet identifier of this ecc parameter (or null).

ECCParameterSpec

public ECCParameterSpec(int[] irreducible,
                        java.math.BigInteger k,
                        java.math.BigInteger r,
                        int[] a,
                        int[] b,
                        int[] gx,
                        int[] gy,
                        java.lang.String oid)
Generates new parameters for curves over binary fields. Applications should use the NISTParameterFactory to get an instance of this class.

Parameters:
irreducible - the irreducible, defining the field.
k - the cofactor.
r - the order r.
a - the coefficient a
b - the coefficient b (satisfying b^2 * c congruent -27 mod p);
gx - the base point x coordinate Gx
gy - the base point y coordinate Gy
oid - the objet identifier of this ecc parameter (or null).
Method Detail

getA

public FieldElement getA()
Returns:
the curve coefficient a

getB

public FieldElement getB()
Returns:
the curve coefficient b (satisfying b^2 * c congruent -27 mod p);

getC

public java.math.BigInteger getC()
Returns:
the output c of the SHA-1 based algorithm or null if unkonown

getGx

public FieldElement getGx()
Returns:
the base point x coordinate Gx.

getGy

public FieldElement getGy()
Returns:
the base point y coordinate Gy.

getK

public java.math.BigInteger getK()
Returns:
the co-factor k.

getOID

public java.lang.String getOID()
Returns:
the unique object identifier (or null if not specified).

getP

public FieldElement getP()
Returns:
the prime modulus p, defining the field.

getR

public java.math.BigInteger getR()
Returns:
the order r.

getS

public java.math.BigInteger getS()
Returns:
the 160-bit input seed s to the SHA-1 based algorithm or null if unknown

toString

public java.lang.String toString()
Returns:
this parameter set as a string.

IAIK ECC
version 2.18

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