PrimesIsMRProbablePrimeToBase Method
FIPS 186-4 C.3.1 Miller-Rabin Probabilistic Primality Test (to a fixed base).
Namespace: Org.BouncyCastle.MathAssembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
Org.BouncyCastle.Math.Primes.IsMRProbablePrimeToBase = function(candidate, baseValue);
- candidate BigInteger
- The BigInteger instance to test for primality.
- baseValue BigInteger
- The base value to use for this iteration.
Booleanfalse if
baseValue is a witness to compositeness (so
candidate is definitely NOT prime), or else
true.
Run a single iteration of the Miller-Rabin algorithm against the specified base.