IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keypairgenerators
Class X942DhKeyPairGenerator

java.lang.Object
  extended by java.security.KeyPairGeneratorSpi
      extended by iaik.pkcs.pkcs11.provider.keypairgenerators.PKCS11KeyPairGenerator
          extended by iaik.pkcs.pkcs11.provider.keypairgenerators.X942DhKeyPairGenerator
All Implemented Interfaces:
PKCS11EngineClass

public class X942DhKeyPairGenerator
extends PKCS11KeyPairGenerator

An engine class for generating X9.42 Diffie Hellman key-pairs on a token. The application must call initialize(AlgorithmParameterSpec, SecureRandom) before calling generateKeyPair(). It uses Diffie Hellman as specified in ANSI x9.42.
The provided parameter specification includes a java.security.spec.DSAParameterSpec object which provides the prime, sub-prime and base component. This interface has been chosen because DSA requires the same parameters for generating key pairs.

This implementation only supports 512, 768, 1024 and 2048 bit as key size. The default key size is 1024 bit.

Author:
Karl Scheibelhofer

Constructor Summary
X942DhKeyPairGenerator()
          Construct new generator.
 
Method Summary
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keypairgenerators.PKCS11KeyPairGenerator
generateKeyPair, initialize, initialize, isSupportedBy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X942DhKeyPairGenerator

public X942DhKeyPairGenerator()
Construct new generator.


IAIK PKCS#11 Provider API Documentation
version 1.6

IAIK JavaSecurity Website http://jce.iaik.tugraz.at/

IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2004, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.
version 1.6