Class au.net.aba.crypto.provider.RC4KeyGenerator
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.RC4KeyGenerator

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

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

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

The default keysize is 128 bits, and may be any multiple of 8 less than (or equal to) 256.


Variable Index

 o ident

Constructor Index

 o RC4KeyGenerator()

Method Index

 o engineGenerateKey()
Generates a random secret key.
 o engineInit(AlgorithmParameterSpec, SecureRandom)
Initialises the key generator with the specified parameter set and a user-provided source of randomness.
 o engineInit(SecureRandom)
Initialises the key generator with the given random number source.

Variables

 o ident
  public final static String ident

Constructors

 o RC4KeyGenerator
  public RC4KeyGenerator()

Methods

 o engineInit
  protected void engineInit(AlgorithmParameterSpec params,
                            SecureRandom random)
Initialises the key generator with the specified parameter set and a user-provided source of randomness.
Overrides:
engineInit in class KeyGeneratorSpi
 o engineInit
  protected void engineInit(SecureRandom random)
Initialises the key generator with the given random number source.
Overrides:
engineInit in class KeyGeneratorSpi
 o engineGenerateKey
  protected SecretKey engineGenerateKey()
Generates a random secret key.
Returns:
the RC4 key.
Overrides:
engineGenerateKey in class KeyGeneratorSpi

All Packages  Class Hierarchy  This Package  Previous  Next  Index