Class cryptix.security.rsa.RSAKeyGen
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.security.rsa.RSAKeyGen

java.lang.Object
   |
   +----cryptix.security.rsa.RSAKeyGen

public class RSAKeyGen
extends Object
This class is an RSA key pair generator.

Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/) All rights reserved.


Variable Index

 o rand

Constructor Index

 o RSAKeyGen(RandomStream)

Method Index

 o createKey(int)
This function creates a Secret Key

N.B. this can take a LONG time.

 o createKey(int, RSAKeyGenObserver)
An observer class is used to monitor progress.

 o createKey(RandomStream, int)
This function creates a Secret Key

N.B. this can take a LONG time.

 o createKey(RandomStream, int, RSAKeyGenObserver)
An observer class is used to monitor progress.

 o deriveKeys(BigInteger, BigInteger, BigInteger)
An observer class is used to monitor progress.

 o randomPrime(int, RSAKeyGenObserver)
An observer class is used to monitor progress.

Variables

 o rand
  protected RandomStream rand

Constructors

 o RSAKeyGen
  public RSAKeyGen(RandomStream rand0)
Parameters:
rand0 - the source of random numbers for the prime number generation.

Methods

 o randomPrime
  public BigInteger randomPrime(int bitlen,
                                RSAKeyGenObserver obsrv)
An observer class is used to monitor progress.

 o createKey
  public final static SecretKey createKey(RandomStream rand,
                                          int bitlen)
This function creates a Secret Key

N.B. this can take a LONG time.

 o createKey
  public final static SecretKey createKey(RandomStream rand,
                                          int bitlen,
                                          RSAKeyGenObserver obsrv)
An observer class is used to monitor progress.

 o createKey
  public SecretKey createKey(int bitlen)
This function creates a Secret Key

N.B. this can take a LONG time.

 o createKey
  public SecretKey createKey(int bitlen,
                             RSAKeyGenObserver obsrv)
An observer class is used to monitor progress.

 o deriveKeys
  protected final SecretKey deriveKeys(BigInteger p,
                                       BigInteger q,
                                       BigInteger e)
An observer class is used to monitor progress.


All Packages  Class Hierarchy  This Package  Previous  Next  Index