PrimesGenerateSTRandomPrime Method
FIPS 186-4 C.6 Shawe-Taylor Random_Prime Routine.
Namespace: Org.BouncyCastle.MathAssembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
Org.BouncyCastle.Math.Primes.GenerateSTRandomPrime = function(hash, length, inputSeed);
- hash IDigest
- The IDigest instance to use (as "Hash()"). Cannot be null.
- length Int32
- The length (in bits) of the prime to be generated. Must be at least 2.
- inputSeed Byte
- The seed to be used for the generation of the requested prime. Cannot be null or
empty.
PrimesSTOutputAn
PrimesSTOutput instance containing the requested prime.
Construct a provable prime number using a hash function.