C# Class HabboEncryption.Utils.BigIntegerPrime

Show file Open project: Joopie1994/HabboEncryption

Public Methods

Method Description
GeneratePseudoPrime ( int bitLength, int certainty, RandomNumberGenerator random ) : BigInteger
IsProbablePrime ( this source, int certainty, RandomNumberGenerator random ) : bool

Method Details

GeneratePseudoPrime() public static method

public static GeneratePseudoPrime ( int bitLength, int certainty, RandomNumberGenerator random ) : BigInteger
bitLength int
certainty int
random System.Security.Cryptography.RandomNumberGenerator
return BigInteger

IsProbablePrime() public static method

public static IsProbablePrime ( this source, int certainty, RandomNumberGenerator random ) : bool
source this
certainty int
random System.Security.Cryptography.RandomNumberGenerator
return bool