Property | Type | Description | |
---|---|---|---|
smallPrimes | uint[] |
Property | Type | Description | |
---|---|---|---|
Normalize | void | ||
isProbablePrime | bool |
Method | Description | |
---|---|---|
BigInteger ( ) : System | ||
BigInteger ( |
||
BigInteger ( |
||
BigInteger ( Sign sign, uint len ) : System | ||
BigInteger ( byte inData ) : System | ||
BigInteger ( uint inData ) : System | ||
BigInteger ( ulong ul ) : System | ||
Clear ( ) : void | ||
Compare ( |
||
Equals ( object o ) : bool | ||
GetHashCode ( ) : int | ||
Incr2 ( ) : void |
Increments this by two
|
|
LowestSetBit ( ) : int | ||
NextHightestPrime ( |
Generates the smallest prime >= bi
|
|
Parse ( string number ) : |
||
ToString ( ) : string | ||
ToString ( uint radix ) : string | ||
ToString ( uint radix, string charSet ) : string | ||
bitCount ( ) : int | ||
clearBit ( uint bitNum ) : void | ||
gcd ( |
||
genPseudoPrime ( int bits ) : |
||
genRandom ( int bits ) : |
Generates a new, random BigInteger of the specified length using the default RNG crypto service provider.
|
|
genRandom ( int bits, |
Generates a new, random BigInteger of the specified length.
|
|
getBytes ( ) : byte[] | ||
isProbablePrime ( ) : bool | ||
modInverse ( |
||
modPow ( |
||
operator ( ) : |
||
operator ( ) : bool | ||
operator ( ) : int | ||
operator ( ) : uint | ||
randomize ( ) : void |
Randomizes the bits in "this" from the default RNG.
|
|
randomize ( |
Randomizes the bits in "this" from the specified RNG.
|
|
setBit ( uint bitNum ) : void | ||
setBit ( uint bitNum, bool val ) : void | ||
testBit ( int bitNum ) : bool | ||
testBit ( uint bitNum ) : bool |
Tests if the specified bit is 1.
|
Method | Description | |
---|---|---|
Normalize ( ) : void |
Normalizes this by setting the length to the actual number of uints used in data and by setting the sign to Sign.Zero if the value of this is 0.
|
|
isProbablePrime ( int notUsed ) : bool |
public BigInteger ( |
||
bi | ||
len | uint | |
return | System |
public BigInteger ( Sign sign, uint len ) : System | ||
sign | Sign | |
len | uint | |
return | System |
public static NextHightestPrime ( |
||
bi | A BigInteger | |
return |
public static Parse ( string number ) : |
||
number | string | |
return |
public ToString ( uint radix, string charSet ) : string | ||
radix | uint | |
charSet | string | |
return | string |
public static genPseudoPrime ( int bits ) : |
||
bits | int | |
return |
public static genRandom ( int bits ) : |
||
bits | int | The number of bits for the new number. |
return |
public static genRandom ( int bits, |
||
bits | int | The number of bits for the new number. |
rng | A random number generator to use to obtain the bits. | |
return |
public modInverse ( |
||
mod | ||
return |
public modPow ( |
||
exp | ||
n | ||
return |
public randomize ( |
||
rng | A RNG. | |
return | void |
public setBit ( uint bitNum, bool val ) : void | ||
bitNum | uint | |
val | bool | |
return | void |
public testBit ( uint bitNum ) : bool | ||
bitNum | uint | The bit to test. The least significant bit is 0. |
return | bool |