All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.provider.rpk.RPKKeyGenerator

java.lang.Object
   |
   +----java.security.KeyGenerator
           |
           +----cryptix.provider.rpk.RPKKeyGenerator

public class RPKKeyGenerator
extends KeyGenerator
implements RPKParams
A subclass of java.security.KeyGenerator to generate secure RPK cryptographic keys.

The following code illustrates the use of key specifications that are different from the default ones:

     ...
     int[][] newspecs = {{89, 38}, {127, 30}, {521, 163}};
     int newgranularity = 8;
     SecureRandom newprng = new SecureRandom();
     RPKKeyGenerator kg = new RPKKeyGenerator();
     kg.initialize(newspecs, newgranularity, newprng);
     RPKKey k = (RPKKey) kg.generateKey();
     ...
 

References:

  1. William M. Raike, The RPK Public-Key Cryptographic System - Technical Summary (available at http://crypto.swdev.co.nz).

  2. William M. Raike, Detailed Supplemental Technical Description of the RPK Public-Key Cryptographic System (available at http://crypto.swdev.co.nz).

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.2 $

Author:
Raif S. Naffah
See Also:
KeyGenerator

Constructor Index

 o RPKKeyGenerator()

Method Index

 o generateKey()
Generates a key.
 o initialize(int[][], int, SecureRandom)
Initialise an RPK key generator given all its parameters.
 o initialize(SecureRandom)
Initializes the key generator.

Constructors

 o RPKKeyGenerator
 public RPKKeyGenerator()

Methods

 o initialize
 public void initialize(int generatorSpecs[][],
                        int granularity,
                        SecureRandom source) throws InvalidParameterException
Initialise an RPK key generator given all its parameters.

Parameters:
generatorSpecs - An array of 3 pairs of values defining the characteristics of 3 RPK Generators to be combined together forming an RPKKey. When not specified, a default set of values is taken from RPKParams.
granularity - A property (with values from 1 to 8) that defines how many bits from the key's Generators output sequence are to be combined with the input stream. The lower the granularity value is, the less secure the output becomes. A default value for this parameter is defined in RPKParams.
source - A cryptographically strong source of pseudo random data.
Throws: InvalidParameterException
If the specifications array does not contain exactly 3 elements, or an error occured while generating a seed key from the supplied parameters.
See Also:
DEFAULT_KEY_SPECS, DEFAULT_GRANULARITY
 o initialize
 public void initialize(SecureRandom source)
Initializes the key generator.

Overrides:
initialize in class KeyGenerator
 o generateKey
 public SecretKey generateKey()
Generates a key.

Overrides:
generateKey in class KeyGenerator

All Packages  Class Hierarchy  This Package  Previous  Next  Index