C# Class VoltDB.ThirdParty.Math.BigInteger

Mostrar archivo Open project: VoltDB/voltdb-client-csharp Class Usage Examples

Public Properties

Property Type Description
dataLength int
primesBelow2000 int[]

Public Methods

Method Description
BigInteger ( ) : System
BigInteger ( BigInteger bi ) : System
BigInteger ( byte inData ) : System
BigInteger ( byte inData, int inLen ) : System
BigInteger ( int inData ) : System
BigInteger ( long value ) : System
BigInteger ( string value, int radix ) : System
BigInteger ( uint inData ) : System
BigInteger ( ulong value ) : System
Equals ( object o ) : bool
FermatLittleTest ( int confidence ) : bool
GetHashCode ( ) : int
GetSerializationBytes ( ) : byte[]
IntValue ( ) : int
Jacobi ( BigInteger a, BigInteger b ) : int
LongValue ( ) : long
LucasSequence ( BigInteger P, BigInteger Q, BigInteger k, BigInteger n ) : VoltDB.ThirdParty.Math.BigInteger[]
LucasStrongTest ( ) : bool
Main ( string args ) : void
MulDivTest ( int rounds ) : void
RSATest ( int rounds ) : void
RSATest2 ( int rounds ) : void
RabinMillerTest ( int confidence ) : bool
SolovayStrassenTest ( int confidence ) : bool
SqrtTest ( int rounds ) : void
ToHexString ( ) : string
ToString ( ) : string
ToString ( int radix ) : string
abs ( ) : BigInteger
bitCount ( ) : int
gcd ( BigInteger bi ) : BigInteger
genCoPrime ( int bits, Random rand ) : BigInteger
genPseudoPrime ( int bits, int confidence, Random rand ) : BigInteger
genRandomBits ( int bits, Random rand ) : void
getBytes ( ) : byte[]
isProbablePrime ( ) : bool
isProbablePrime ( int confidence ) : bool
max ( BigInteger bi ) : BigInteger
min ( BigInteger bi ) : BigInteger
modInverse ( BigInteger modulus ) : BigInteger
modPow ( BigInteger exp, BigInteger n ) : BigInteger
operator ( ) : BigInteger
operator ( ) : bool
setBit ( uint bitNum ) : void
sqrt ( ) : BigInteger
unsetBit ( uint bitNum ) : void

Private Methods

Method Description
BarrettReduction ( BigInteger x, BigInteger n, BigInteger constant ) : BigInteger
LucasSequenceHelper ( BigInteger P, BigInteger Q, BigInteger k, BigInteger n, BigInteger constant, int s ) : VoltDB.ThirdParty.Math.BigInteger[]
LucasStrongTestHelper ( BigInteger thisVal ) : bool
multiByteDivide ( BigInteger bi1, BigInteger bi2, BigInteger outQuotient, BigInteger outRemainder ) : void
shiftLeft ( uint buffer, int shiftVal ) : int
shiftRight ( uint buffer, int shiftVal ) : int
singleByteDivide ( BigInteger bi1, BigInteger bi2, BigInteger outQuotient, BigInteger outRemainder ) : void

Method Details

BigInteger() public method

public BigInteger ( ) : System
return System

BigInteger() public method

public BigInteger ( BigInteger bi ) : System
bi BigInteger
return System

BigInteger() public method

public BigInteger ( byte inData ) : System
inData byte
return System

BigInteger() public method

public BigInteger ( byte inData, int inLen ) : System
inData byte
inLen int
return System

BigInteger() public method

public BigInteger ( int inData ) : System
inData int
return System

BigInteger() public method

public BigInteger ( long value ) : System
value long
return System

BigInteger() public method

public BigInteger ( string value, int radix ) : System
value string
radix int
return System

BigInteger() public method

public BigInteger ( uint inData ) : System
inData uint
return System

BigInteger() public method

public BigInteger ( ulong value ) : System
value ulong
return System

Equals() public method

public Equals ( object o ) : bool
o object
return bool

FermatLittleTest() public method

public FermatLittleTest ( int confidence ) : bool
confidence int
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetSerializationBytes() public method

public GetSerializationBytes ( ) : byte[]
return byte[]

IntValue() public method

public IntValue ( ) : int
return int

Jacobi() public static method

public static Jacobi ( BigInteger a, BigInteger b ) : int
a BigInteger
b BigInteger
return int

LongValue() public method

public LongValue ( ) : long
return long

LucasSequence() public static method

public static LucasSequence ( BigInteger P, BigInteger Q, BigInteger k, BigInteger n ) : VoltDB.ThirdParty.Math.BigInteger[]
P BigInteger
Q BigInteger
k BigInteger
n BigInteger
return VoltDB.ThirdParty.Math.BigInteger[]

LucasStrongTest() public method

public LucasStrongTest ( ) : bool
return bool

Main() public static method

public static Main ( string args ) : void
args string
return void

MulDivTest() public static method

public static MulDivTest ( int rounds ) : void
rounds int
return void

RSATest() public static method

public static RSATest ( int rounds ) : void
rounds int
return void

RSATest2() public static method

public static RSATest2 ( int rounds ) : void
rounds int
return void

RabinMillerTest() public method

public RabinMillerTest ( int confidence ) : bool
confidence int
return bool

SolovayStrassenTest() public method

public SolovayStrassenTest ( int confidence ) : bool
confidence int
return bool

SqrtTest() public static method

public static SqrtTest ( int rounds ) : void
rounds int
return void

ToHexString() public method

public ToHexString ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string

ToString() public method

public ToString ( int radix ) : string
radix int
return string

abs() public method

public abs ( ) : BigInteger
return BigInteger

bitCount() public method

public bitCount ( ) : int
return int

gcd() public method

public gcd ( BigInteger bi ) : BigInteger
bi BigInteger
return BigInteger

genCoPrime() public method

public genCoPrime ( int bits, Random rand ) : BigInteger
bits int
rand System.Random
return BigInteger

genPseudoPrime() public static method

public static genPseudoPrime ( int bits, int confidence, Random rand ) : BigInteger
bits int
confidence int
rand System.Random
return BigInteger

genRandomBits() public method

public genRandomBits ( int bits, Random rand ) : void
bits int
rand System.Random
return void

getBytes() public method

public getBytes ( ) : byte[]
return byte[]

isProbablePrime() public method

public isProbablePrime ( ) : bool
return bool

isProbablePrime() public method

public isProbablePrime ( int confidence ) : bool
confidence int
return bool

max() public method

public max ( BigInteger bi ) : BigInteger
bi BigInteger
return BigInteger

min() public method

public min ( BigInteger bi ) : BigInteger
bi BigInteger
return BigInteger

modInverse() public method

public modInverse ( BigInteger modulus ) : BigInteger
modulus BigInteger
return BigInteger

modPow() public method

public modPow ( BigInteger exp, BigInteger n ) : BigInteger
exp BigInteger
n BigInteger
return BigInteger

operator() public static method

public static operator ( ) : BigInteger
return BigInteger

operator() public static method

public static operator ( ) : bool
return bool

setBit() public method

public setBit ( uint bitNum ) : void
bitNum uint
return void

sqrt() public method

public sqrt ( ) : BigInteger
return BigInteger

unsetBit() public method

public unsetBit ( uint bitNum ) : void
bitNum uint
return void

Property Details

dataLength public_oe property

public int dataLength
return int

primesBelow2000 public_oe static_oe property

public static int[] primesBelow2000
return int[]