Свойство | Тип | Описание | |
---|---|---|---|
smallPrimes | uint[] |
Свойство | Тип | Описание | |
---|---|---|---|
Normalize | void | ||
isProbablePrime | bool |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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 | ||
Результат | System |
public BigInteger ( |
||
bi | ||
len | uint | |
Результат | System |
public BigInteger ( Sign sign, uint len ) : System | ||
sign | Sign | |
len | uint | |
Результат | System |
public BigInteger ( byte inData ) : System | ||
inData | byte | |
Результат | System |
public BigInteger ( uint inData ) : System | ||
inData | uint | |
Результат | System |
public static NextHightestPrime ( |
||
bi | A BigInteger | |
Результат |
public static Parse ( string number ) : |
||
number | string | |
Результат |
public ToString ( uint radix, string charSet ) : string | ||
radix | uint | |
charSet | string | |
Результат | string |
public static genPseudoPrime ( int bits ) : |
||
bits | int | |
Результат |
public static genRandom ( int bits ) : |
||
bits | int | The number of bits for the new number. |
Результат |
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. | |
Результат |
public modInverse ( |
||
mod | ||
Результат |
public modPow ( |
||
exp | ||
n | ||
Результат |
public randomize ( |
||
rng | A RNG. | |
Результат | void |
public setBit ( uint bitNum, bool val ) : void | ||
bitNum | uint | |
val | bool | |
Результат | void |
public testBit ( uint bitNum ) : bool | ||
bitNum | uint | The bit to test. The least significant bit is 0. |
Результат | bool |