cryptix.examples.pgp
Class VanityRSAKeyGen

java.lang.Object
  extended bycryptix.security.rsa.RSAKeyGen
      extended bycryptix.examples.pgp.VanityRSAKeyGen

final class VanityRSAKeyGen
extends RSAKeyGen

This class is a RSA key pair generator.

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


Field Summary
 
Fields inherited from class cryptix.security.rsa.RSAKeyGen
rand
 
Constructor Summary
VanityRSAKeyGen(RandomStream rand0)
           
 
Method Summary
 SecretKey createKey(int bitlen, int id, RSAKeyGenObserver obsrv)
           
 BigInteger randomPrime(int bitlen, byte[] lsbFix, RSAKeyGenObserver obsrv)
           
 BigInteger randomPrime(int bitlen, int lsbFix, RSAKeyGenObserver obsrv)
           
 BigInteger randomPrime(int bitlen, long lsbFix, RSAKeyGenObserver obsrv)
           
 
Methods inherited from class cryptix.security.rsa.RSAKeyGen
createKey, createKey, createKey, createKey, deriveKeys, randomPrime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VanityRSAKeyGen

public VanityRSAKeyGen(RandomStream rand0)
Method Detail

randomPrime

public BigInteger randomPrime(int bitlen,
                              long lsbFix,
                              RSAKeyGenObserver obsrv)

randomPrime

public BigInteger randomPrime(int bitlen,
                              int lsbFix,
                              RSAKeyGenObserver obsrv)

randomPrime

public BigInteger randomPrime(int bitlen,
                              byte[] lsbFix,
                              RSAKeyGenObserver obsrv)

createKey

public SecretKey createKey(int bitlen,
                           int id,
                           RSAKeyGenObserver obsrv)