Org.BouncyCastle.Crypto.Parameters.NaccacheSternKeyGenerationParameters.NaccacheSternKeyGenerationParameters C# (CSharp) Method

NaccacheSternKeyGenerationParameters() public method

public NaccacheSternKeyGenerationParameters ( SecureRandom random, int strength, int certainty, int countSmallPrimes, bool debug ) : System
random Org.BouncyCastle.Security.SecureRandom
strength int
certainty int
countSmallPrimes int
debug bool
return System
		public NaccacheSternKeyGenerationParameters(SecureRandom random,
			int		strength,
			int		certainty,
			int		countSmallPrimes,
			bool	debug)
			: base(random, strength)
		{
			if (countSmallPrimes % 2 == 1)
			{
				throw new ArgumentException("countSmallPrimes must be a multiple of 2");
			}
			if (countSmallPrimes < 30)
			{
				throw new ArgumentException("countSmallPrimes must be >= 30 for security reasons");
			}
			this.certainty = certainty;
			this.countSmallPrimes = countSmallPrimes;
			this.debug = debug;
		}

Same methods

NaccacheSternKeyGenerationParameters::NaccacheSternKeyGenerationParameters ( SecureRandom random, int strength, int certainty, int countSmallPrimes ) : System
NaccacheSternKeyGenerationParameters