iaik.security.dh
Class ESDHPrivateKeySpec

java.lang.Object
  |
  +--javax.crypto.spec.DHPrivateKeySpec
        |
        +--iaik.security.dh.ESDHPrivateKeySpec
All Implemented Interfaces:
KeySpec

public class ESDHPrivateKeySpec
extends DHPrivateKeySpec

Ephemeral Static Diffie Hellman private key specification. A key specification is a transparent representation of the key material constituting the key. An Ephemeral Static Diffie Hellman private key specification represents the private value x, and the Diffie Hellman parameters p (prime modulus), g (base generator), and l (length of the private value x).

Version:
File Revision 9
See Also:
ESDHPrivateKey

Fields inherited from class javax.crypto.spec.DHPrivateKeySpec
g, p, x
 
Constructor Summary
ESDHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g, BigInteger q)
          Creates an Ephemeral Static Diffie-Hellman private key specification based on given private value x, prime modulus p, base generator g and prime factor q.
ESDHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g, BigInteger q, BigInteger j)
          Creates an Ephemeral Static Diffie-Hellman private key specification based on given private value x, prime modulus p, base generator g, prime factor q and subgroup factor j.
ESDHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g, BigInteger q, BigInteger j, byte[] seed, int pgenCounter)
          Creates an Ephemeral Static Diffie-Hellman private key specification based on given private value x, prime modulus p, base generator g, prime factor q, subgroup factor j and the seed and counter used in the system parameter generation process.
ESDHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g, BigInteger q, byte[] seed, int pgenCounter)
          Creates an Ephemeral Static Diffie-Hellman private key specification based on given private value x, prime modulus p, base generator g, prime factor q and the seed and counter used in the system parameter generation process.
 
Method Summary
 BigInteger getJ()
          Returns the subgroup factor j.
 long getL()
          This method overrides the method of the super class and always returns 0 since we don't use parameter L in ESDH.
 int getPGenCounter()
          Returns the counter used in the system parameter generation process.
 BigInteger getQ()
          Returns the prime factor q.
 byte[] getSeed()
          Returns the seed used in the system parameter generation process.
 
Methods inherited from class javax.crypto.spec.DHPrivateKeySpec
getG, getP, getX
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESDHPrivateKeySpec

public ESDHPrivateKeySpec(BigInteger x,
                          BigInteger p,
                          BigInteger g,
                          BigInteger q)
Creates an Ephemeral Static Diffie-Hellman private key specification based on given private value x, prime modulus p, base generator g and prime factor q.
Parameters:
x - the public value
p - the prime modulus
g - the base generator
q - the prime factor

ESDHPrivateKeySpec

public ESDHPrivateKeySpec(BigInteger x,
                          BigInteger p,
                          BigInteger g,
                          BigInteger q,
                          BigInteger j)
Creates an Ephemeral Static Diffie-Hellman private key specification based on given private value x, prime modulus p, base generator g, prime factor q and subgroup factor j.
Parameters:
x - the public value
p - the prime modulus
g - the base generator
q - the prime factor
j - the subgroup factor

ESDHPrivateKeySpec

public ESDHPrivateKeySpec(BigInteger x,
                          BigInteger p,
                          BigInteger g,
                          BigInteger q,
                          byte[] seed,
                          int pgenCounter)
Creates an Ephemeral Static Diffie-Hellman private key specification based on given private value x, prime modulus p, base generator g, prime factor q and the seed and counter used in the system parameter generation process.
Parameters:
x - the public value
p - the prime modulus
g - the base generator
q - the prime factor
j - the subgroup factor
seed - the the seed used in the system parameter generation process
pgenCounter - the counter used in the system parameter generation process

ESDHPrivateKeySpec

public ESDHPrivateKeySpec(BigInteger x,
                          BigInteger p,
                          BigInteger g,
                          BigInteger q,
                          BigInteger j,
                          byte[] seed,
                          int pgenCounter)
Creates an Ephemeral Static Diffie-Hellman private key specification based on given private value x, prime modulus p, base generator g, prime factor q, subgroup factor j and the seed and counter used in the system parameter generation process.
Parameters:
x - the public value
p - the prime modulus
g - the base generator
q - the prime factor
j - the subgroup factor
seed - the the seed used in the system parameter generation process
pgenCounter - the counter used in the system parameter generation process
Method Detail

getL

public long getL()
This method overrides the method of the super class and always returns 0 since we don't use parameter L in ESDH.
Returns:
0 is returned

getQ

public BigInteger getQ()
Returns the prime factor q.
Returns:
the prime factor q

getJ

public BigInteger getJ()
Returns the subgroup factor j.
Returns:
the subgroup factor j

getSeed

public byte[] getSeed()
Returns the seed used in the system parameter generation process.
Returns:
the seed used in the system parameter generation process

getPGenCounter

public int getPGenCounter()
Returns the counter used in the system parameter generation process.
Returns:
the counter used in the system parameter generation process

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK