All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.security.KeyGenerator
|
+----cryptix.provider.rpk.RPKKeyGenerator
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:
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.2 $
public RPKKeyGenerator()
public void initialize(int generatorSpecs[][],
int granularity,
SecureRandom source) throws InvalidParameterException
Generators to be
combined together forming an RPKKey. When not
specified, a default set of values is taken from
RPKParams.
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.
public void initialize(SecureRandom source)
public SecretKey generateKey()
All Packages Class Hierarchy This Package Previous Next Index