PrimesGenerateSTRandomPrime Method

FIPS 186-4 C.6 Shawe-Taylor Random_Prime Routine.

Definition

Namespace: Org.BouncyCastle.Math
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public static PrimesSTOutput GenerateSTRandomPrime(
	IDigest hash,
	int length,
	byte[] inputSeed
)

Parameters

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.

Return Value

PrimesSTOutput
An PrimesSTOutput instance containing the requested prime.

Remarks

Construct a provable prime number using a hash function.

See Also