|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.security.ecc.parameter.ECCParameterFactory
Collection of elliptic curve and domain parameters. Implemented as a singleton. Use the static getInstance() method. Parameters are either referenced by their names (case insensitive) or by their oid, or both.
Method Summary | |
void |
addECCParameter(java.lang.String parameterName,
java.lang.String oid,
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)
Adds ECC parameters to the repository of the factory. |
void |
addECCParameter(java.lang.String parameterName,
java.lang.String oid,
int[] irreducible,
java.math.BigInteger k,
java.math.BigInteger r,
int[] a,
int[] b,
int[] gx,
int[] gy)
Adds ECC parameters to the repository of the factory. |
void |
clearAll()
Clears all ecc parameters. |
static void |
deleteInstance()
|
static ECCParameterFactory |
getInstance()
Singleton method to get an instance of this class. |
java.util.Enumeration |
getNames()
|
ECCParameterSpec |
getParameterByName(java.lang.String name)
|
ECCParameterSpec |
getParameterByOID(java.lang.String oid)
|
ECCParameterSpec |
removeECCParameterbyName(java.lang.String name)
Removes a set of ECC parameters from the repository. |
ECCParameterSpec |
removeECCParameterbyOID(java.lang.String oid)
Removes a set of ECC parameters with the provided OID from the repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void deleteInstance()
public static ECCParameterFactory getInstance()
public void addECCParameter(java.lang.String parameterName, java.lang.String oid, 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) throws ECCException
parameterName
- the name (alias) for this ecc parameter set. This parameter may be null
if the oid parameter is
specified.oid
- the unique object identifier of this parameter set. If null
the name parameter must be
specified.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 ab
- the coefficient b (satisfying b^2 * c congruent -27 mod p);gx
- the base point x coordinate Gxgy
- the base point y coordinate Gy
ECCException
- if oid and the parameter name are null
public void addECCParameter(java.lang.String parameterName, java.lang.String oid, int[] irreducible, java.math.BigInteger k, java.math.BigInteger r, int[] a, int[] b, int[] gx, int[] gy) throws ECCException
parameterName
- the name (alias) for this ecc parameter set. This parameter may be null
if the oid parameter is
specified.oid
- the unique object identifier of this parameter set. If null
the name parameter must be
specified.irreducible
- the irreducible polynom, defining the field.k
- the cofactor.r
- the order r.a
- the coefficient ab
- the coefficient b (satisfying b^2 * c congruent -27 mod p);gx
- the base point x coordinate Gxgy
- the base point y coordinate Gy
ECCException
- if oid and the parameter name are null
public void clearAll()
public java.util.Enumeration getNames()
public ECCParameterSpec getParameterByName(java.lang.String name)
name
- the name (alias) of the ecc parameter
null
if no such parameter exists.public ECCParameterSpec getParameterByOID(java.lang.String oid)
oid
- the oid ecc parameter
null
if no such parameter exists.public ECCParameterSpec removeECCParameterbyName(java.lang.String name)
name
- the name of the parameter set.
null
if the parameters could not be found.public ECCParameterSpec removeECCParameterbyOID(java.lang.String oid)
oid
- the object identifier for this parameter set.
null
if the parameters could not be found.
|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |