IAIK ECC
version 2.18

iaik.security.ecc.spec
Class ECDSAPublicKeySpec

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

public class ECDSAPublicKeySpec
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 public key spec. This is a transparent representation of the pubic key material, which consists of the elliptic curve point W, 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
protected  ECPoint w_
          the public key, which is the Point W: satisfying W = s*G, where s is the private key.
 
Constructor Summary
ECDSAPublicKeySpec(ECPoint w, java.math.BigInteger r, java.math.BigInteger k, ECPoint g)
          Constructs a new spec. for a ECDSA public key.
 
Method Summary
 ECPoint getG()
          The generator of the subgroub of order r.
 java.math.BigInteger getK()
           
 java.math.BigInteger getR()
           
 ECPoint getW()
           
 
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


w_

protected ECPoint w_
the public key, which is the Point W: satisfying W = s*G, where s is the private key.

Constructor Detail

ECDSAPublicKeySpec

public ECDSAPublicKeySpec(ECPoint w,
                          java.math.BigInteger r,
                          java.math.BigInteger k,
                          ECPoint g)
Constructs a new spec. for a ECDSA public key.

Parameters:
w - the public 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)

getW

public ECPoint getW()
Returns:
the Point W: satisfying W = s*G

IAIK ECC
version 2.18

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