|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.security.rsa.RSAKeyGen
This class is an RSA key pair generator.
Copyright (c) 1995, 1996 Systemics Ltd (http://www.systemics.com/) All rights reserved.
Field Summary | |
protected RandomStream |
rand
|
Constructor Summary | |
RSAKeyGen(RandomStream rand0)
|
Method Summary | |
SecretKey |
createKey(int bitlen)
This function creates a Secret Key. |
SecretKey |
createKey(int bitlen,
RSAKeyGenObserver obsrv)
An observer class is used to monitor progress. |
static SecretKey |
createKey(RandomStream rand,
int bitlen)
This function creates a Secret Key. |
static SecretKey |
createKey(RandomStream rand,
int bitlen,
RSAKeyGenObserver obsrv)
An observer class is used to monitor progress. |
protected SecretKey |
deriveKeys(BigInteger p,
BigInteger q,
BigInteger e)
An observer class is used to monitor progress. |
BigInteger |
randomPrime(int bitlen,
RSAKeyGenObserver obsrv)
An observer class is used to monitor progress. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected RandomStream rand
Constructor Detail |
public RSAKeyGen(RandomStream rand0)
rand0
- the source of random numbers for the prime number
generation.Method Detail |
public BigInteger randomPrime(int bitlen, RSAKeyGenObserver obsrv)
public static final SecretKey createKey(RandomStream rand, int bitlen)
N.B. this can take a LONG time.
rand
- the source of random data for the prime number generation.bitlen
- the bit length of the final n
public static final SecretKey createKey(RandomStream rand, int bitlen, RSAKeyGenObserver obsrv)
rand
- the source of random data for the prime number generation.bitlen
- The bit length of the final nobsrv
- The callback interface.
public SecretKey createKey(int bitlen)
N.B. this can take a LONG time.
bitlen
- the bit length of the final n
public SecretKey createKey(int bitlen, RSAKeyGenObserver obsrv)
bitlen
- The bit length of the final nobsrv
- The callback interface.
protected final SecretKey deriveKeys(BigInteger p, BigInteger q, BigInteger e)
p
- the largest factor of nq
- the other factor of ne
- the initial public exponent (must be odd).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |