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
candidate
BigInteger
random
SecureRandom
iterations
int
Returns
- Primes.MROutput
GenerateSTRandomPrime(IDigest, int, byte[])
public static Primes.STOutput GenerateSTRandomPrime(IDigest hash, int length, byte[] inputSeed)
Parameters
hash
IDigest
length
int
inputSeed
byte[]
Returns
- Primes.STOutput
HasAnySmallFactors(BigInteger)
public static bool HasAnySmallFactors(BigInteger candidate)
Parameters
candidate
BigInteger
Returns
- bool
IsMRProbablePrime(BigInteger, SecureRandom, int)
public static bool IsMRProbablePrime(BigInteger candidate, SecureRandom random, int iterations)
Parameters
candidate
BigInteger
random
SecureRandom
iterations
int
Returns
- bool
IsMRProbablePrimeToBase(BigInteger, BigInteger)
public static bool IsMRProbablePrimeToBase(BigInteger candidate, BigInteger baseValue)
Parameters
candidate
BigInteger
baseValue
BigInteger
Returns
- bool