IAIK ECC
version 2.18

iaik.security.ecc.spec
Class ECDSAPrivateKeySpec

java.lang.Object
  extended byiaik.security.ecc.spec.ECDSAPrivateKeySpec
All Implemented Interfaces:
java.security.spec.KeySpec

public class ECDSAPrivateKeySpec
extends java.lang.Object
implements java.security.spec.KeySpec

Since their are no such classes defined in the JCE/JCA framework, this class defines a ECDSA private key spec. This is a transparent representation of the private key material, which consists of the scalar s and domain parameters.


Field Summary
protected  ECPoint g_
          the base point g
protected  java.math.BigInteger k_
          the co-factor
protected  java.math.BigInteger r_
          the order order of g
 
Constructor Summary
ECDSAPrivateKeySpec(java.math.BigInteger s, java.math.BigInteger r, java.math.BigInteger k, ECPoint g)
          Creates a new private key spec from the specified parameters
 
Method Summary
 ECPoint getG()
          The generator of the subgroub of order r.
 java.math.BigInteger getK()
           
 java.math.BigInteger getR()
           
 java.math.BigInteger getS()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

g_

protected ECPoint g_
the base point g


k_

protected java.math.BigInteger k_
the co-factor


r_

protected java.math.BigInteger r_
the order order of g

Constructor Detail

ECDSAPrivateKeySpec

public ECDSAPrivateKeySpec(java.math.BigInteger s,
                           java.math.BigInteger r,
                           java.math.BigInteger k,
                           ECPoint g)
Creates a new private key spec from the specified parameters

Parameters:
s - the private key
r - the order of the subgroup generated by g.
k - the co-factor = #E / r
g - the base point and generator of the group
Method Detail

getG

public ECPoint getG()
The generator of the subgroub of order r.

Returns:
the base point of order r
See Also:
getR()

getK

public java.math.BigInteger getK()
Returns:
the cofactor k = #E / r or null if not known

getR

public java.math.BigInteger getR()
Returns:
the order of the subgroup (base point)

getS

public java.math.BigInteger getS()
Returns:
the private key s, satisfying W = s*G

IAIK ECC
version 2.18

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