Class Primes
  
  
  
    - Namespace
- Enterprises.Org.BouncyCastle.Math
- Assembly
- Enterprises.BouncyCastle.Crypto.dll
 
  
  
  
    public abstract class Primes
   
  
    - Inheritance
- 
      
      Primes 
    - Inherited Members
- 
    
    
    
    
    
    
    
  
Constructors
  
  
  Primes()
  
  
  
  
  
  Fields
  
  SmallFactorLimit
  
  
  
  
  
    public static readonly int SmallFactorLimit
   
  Field Value
  
    - int
Methods
  
  
  EnhancedMRProbablePrimeTest(BigInteger, SecureRandom, int)
  
  
  
  
  
    public static Primes.MROutput EnhancedMRProbablePrimeTest(BigInteger candidate, SecureRandom random, int iterations)
   
  Parameters
  
    - candidateBigInteger
- randomSecureRandom
- iterationsint
Returns
  
    - Primes.MROutput
  GenerateSTRandomPrime(IDigest, int, byte[])
  
  
  
  
  
    public static Primes.STOutput GenerateSTRandomPrime(IDigest hash, int length, byte[] inputSeed)
   
  Parameters
  
    - hashIDigest
- lengthint
- inputSeedbyte[]
Returns
  
    - Primes.STOutput
  HasAnySmallFactors(BigInteger)
  
  
  
  
  
    public static bool HasAnySmallFactors(BigInteger candidate)
   
  Parameters
  
    - candidateBigInteger
Returns
  
    - bool
  IsMRProbablePrime(BigInteger, SecureRandom, int)
  
  
  
  
  
    public static bool IsMRProbablePrime(BigInteger candidate, SecureRandom random, int iterations)
   
  Parameters
  
    - candidateBigInteger
- randomSecureRandom
- iterationsint
Returns
  
    - bool
  IsMRProbablePrimeToBase(BigInteger, BigInteger)
  
  
  
  
  
    public static bool IsMRProbablePrimeToBase(BigInteger candidate, BigInteger baseValue)
   
  Parameters
  
    - candidateBigInteger
- baseValueBigInteger
Returns
  
    - bool