iaik.security.dh
Class ESDHParameterGenerator

java.lang.Object
  |
  +--java.security.AlgorithmParameterGeneratorSpi
        |
        +--iaik.security.dh.DHParameterGenerator
              |
              +--iaik.security.dh.ESDHParameterGenerator

public class ESDHParameterGenerator
extends DHParameterGenerator

This class implements an AlgorithmParameterGenerator that generates parameters for key-agreement according to the Ephemeral Static Diffie Hellman key agreement protocol.

The algorithm used is taken from RFC 2631. It specifies a minimum prime length of 512 bit and minimum exponent length of 160 bit; defaults in this implementation are 1024 and 300 bits respectively. Access to the verification parameters provided by the generation algorithm is not possible with the current API.

Note that parameter generation is fairly slow but this should not be a problem as this is a hardly performed activity anyway. Typically they will be generated once per user group by the CA and then the users will generate their keys using the parameters provided.

Applications shall use AlgorithmParameterGenerator.getInstance("ESDH") for obtaining an AlgorithmParamterGenerator for generating ESDH parameters in opaque representation. Once the generator has been created, it shall be properly initialized by one of the several init methods. If none explicit initialization is done, per default the length of the prime modulus is set to 1024 bits and the length of the exponent (private value) is chosen to be 300 bits. After initializing the generator (or relying on default settings), the reguired parameters actually are created by calling the generateParameters method.

Version:
File Revision 8
See Also:
AlgorithmParameterGenerator, ESDHParameterSpec, ESDHParameters, ESDHPublicKey, ESDHPrivateKey, ESDHKeyPairGenerator, ESDHKeyFactory, ESDHKeyAgreement

Constructor Summary
ESDHParameterGenerator()
          The default constructor.
 
Methods inherited from class iaik.security.dh.DHParameterGenerator
engineGenerateParameters, engineInit, engineInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESDHParameterGenerator

public ESDHParameterGenerator()
The default constructor. Only internally used for creating an ESDHParameterGenerator object. Applications shall use one of the AlgorithmParameterGenerator.getInstance factory methods for obtaining an AlgorithmParamterGenerator for generating paramters for Diffie Hellman key agreement.

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