com.mindbright.util
Class Math

java.lang.Object
  extended bycom.mindbright.util.Math

public final class Math
extends java.lang.Object


Constructor Summary
Math()
           
 
Method Summary
static java.math.BigInteger findRandomGenerator(java.math.BigInteger order, java.math.BigInteger modulo, SecureRandom random)
           
static java.math.BigInteger[] findRandomStrongPrime(int primeBits, int orderBits, SecureRandom random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Math

public Math()
Method Detail

findRandomGenerator

public static java.math.BigInteger findRandomGenerator(java.math.BigInteger order,
                                                       java.math.BigInteger modulo,
                                                       SecureRandom random)

findRandomStrongPrime

public static java.math.BigInteger[] findRandomStrongPrime(int primeBits,
                                                           int orderBits,
                                                           SecureRandom random)