public FfcDomainParametersValidateRequest(FfcDomainParameters pqgDomainParameters, DomainSeed seed, Counter count, BitString index, PrimeGenMode primeGen, GeneratorGenMode genGen) { PqgDomainParameters = pqgDomainParameters; Seed = seed; Count = count; Index = index; PrimeGen = primeGen; GeneratorGen = genGen; }
public FfcDomainParametersGenerateRequest(int seedLength, int pLength, int qLength, int hashLength, BitString index, PrimeGenMode primeGen, GeneratorGenMode genGen) { SeedLength = seedLength; PLength = pLength; QLength = qLength; HashLength = hashLength; Index = index; PrimeGen = primeGen; GeneratorGen = genGen; }
public IPQGeneratorValidator GetGeneratorValidator(PrimeGenMode primeGenMode, ISha sha, EntropyProviderTypes entropyType = EntropyProviderTypes.Random) { switch (primeGenMode) { case PrimeGenMode.Probable: return(new ProbablePQGeneratorValidator(sha, entropyType)); case PrimeGenMode.Provable: return(new ProvablePQGeneratorValidator(sha, entropyType)); default: throw new ArgumentOutOfRangeException("Invalid PrimeGenMode provided"); } }