All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.IDEAKeyGenerator

java.lang.Object
   |
   +----javax.crypto.KeyGeneratorSpi
           |
           +----au.net.aba.crypto.provider.IDEAKeyGenerator

public class IDEAKeyGenerator
extends KeyGeneratorSpi
This class is used for generating random IDEA keys. This class should not be instantiated directly, instead use the javax.crypto.KeyGenerator interface.

There is no AlgorithmParameterSpec class defined for IDEA so this generator can only be initialised using the keysize,random initialisation.

The keysize is 128 bits.


Variable Index

 o ident

Constructor Index

 o IDEAKeyGenerator()

Method Index

 o engineGenerateKey()
Generates a secret key.
 o engineInit(AlgorithmParameterSpec, SecureRandom)
This method is not implemented as there is no AlgorithmParameterSpec defined for IDEA.
 o engineInit(int, SecureRandom)
Since IDEA keys are of a fixed size, this method does nothing except set the random source.
 o engineInit(SecureRandom)
Initialises the key generator with the given random source.

Variables

 o ident
 public static final String ident

Constructors

 o IDEAKeyGenerator
 public IDEAKeyGenerator()

Methods

 o engineInit
 protected void engineInit(AlgorithmParameterSpec params,
                           SecureRandom random) throws InvalidAlgorithmParameterException
This method is not implemented as there is no AlgorithmParameterSpec defined for IDEA. (Use one of the other initialisation methods!)

Parameters:
params - the algorithm parameter specs for this generator.
random - a source of random numbers for this generator.
Throws: InvalidAlgorithmParameterException
An invalid parameter specification is provided.
Overrides:
engineInit in class KeyGeneratorSpi
 o engineInit
 protected void engineInit(int strength,
                           SecureRandom random)
Since IDEA keys are of a fixed size, this method does nothing except set the random source.

Parameters:
strength - the strength of the key. This parameter is ignored.
random - the source of randomness for this key generator
Overrides:
engineInit in class KeyGeneratorSpi
 o engineInit
 protected void engineInit(SecureRandom random)
Initialises the key generator with the given random source.

Parameters:
random - a source of random numbers for this generator.
Overrides:
engineInit in class KeyGeneratorSpi
 o engineGenerateKey
 protected SecretKey engineGenerateKey()
Generates a secret key.

Returns:
a secret key representing a DES key.
Overrides:
engineGenerateKey in class KeyGeneratorSpi

All Packages  Class Hierarchy  This Package  Previous  Next  Index