C# Class BigInteger, otp.net

Afficher le fichier Open project: saleyn/otp.net Class Usage Examples

Méthodes publiques

Свойство Type Description
dataLength int
primesBelow2000 int[]

Méthodes publiques

Méthode Description
BigInteger ( ) : System
BigInteger ( BigInteger, bi ) : System
BigInteger ( byte inData ) : System
BigInteger ( byte inData, int inLen ) : 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
IntValue ( ) : int
Jacobi ( BigInteger a, BigInteger b ) : int
LongValue ( ) : long
LucasSequence ( BigInteger P, BigInteger Q, BigInteger k, BigInteger n ) : BigInteger[]
LucasStrongTest ( ) : bool
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
aMain ( string args ) : void
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

Méthode Description
BarrettReduction ( BigInteger, x, BigInteger, n, BigInteger, constant ) : BigInteger,
LucasSequenceHelper ( BigInteger P, BigInteger Q, BigInteger k, BigInteger n, BigInteger constant, int s ) : 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 méthode

public BigInteger ( ) : System
Résultat System

BigInteger() public méthode

public BigInteger ( BigInteger, bi ) : System
bi BigInteger,
Résultat System

BigInteger() public méthode

public BigInteger ( byte inData ) : System
inData byte
Résultat System

BigInteger() public méthode

public BigInteger ( byte inData, int inLen ) : System
inData byte
inLen int
Résultat System

BigInteger() public méthode

public BigInteger ( long value ) : System
value long
Résultat System

BigInteger() public méthode

public BigInteger ( string value, int radix ) : System
value string
radix int
Résultat System

BigInteger() public méthode

public BigInteger ( uint inData ) : System
inData uint
Résultat System

BigInteger() public méthode

public BigInteger ( ulong value ) : System
value ulong
Résultat System

Equals() public méthode

public Equals ( object o ) : bool
o object
Résultat bool

FermatLittleTest() public méthode

public FermatLittleTest ( int confidence ) : bool
confidence int
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IntValue() public méthode

public IntValue ( ) : int
Résultat int

Jacobi() public static méthode

public static Jacobi ( BigInteger a, BigInteger b ) : int
a BigInteger
b BigInteger
Résultat int

LongValue() public méthode

public LongValue ( ) : long
Résultat long

LucasSequence() public static méthode

public static LucasSequence ( BigInteger P, BigInteger Q, BigInteger k, BigInteger n ) : BigInteger[]
P BigInteger
Q BigInteger
k BigInteger
n BigInteger
Résultat BigInteger[]

LucasStrongTest() public méthode

public LucasStrongTest ( ) : bool
Résultat bool

MulDivTest() public static méthode

public static MulDivTest ( int rounds ) : void
rounds int
Résultat void

RSATest() public static méthode

public static RSATest ( int rounds ) : void
rounds int
Résultat void

RSATest2() public static méthode

public static RSATest2 ( int rounds ) : void
rounds int
Résultat void

RabinMillerTest() public méthode

public RabinMillerTest ( int confidence ) : bool
confidence int
Résultat bool

SolovayStrassenTest() public méthode

public SolovayStrassenTest ( int confidence ) : bool
confidence int
Résultat bool

SqrtTest() public static méthode

public static SqrtTest ( int rounds ) : void
rounds int
Résultat void

ToHexString() public méthode

public ToHexString ( ) : string
Résultat string

ToString() public méthode

public ToString ( ) : string
Résultat string

ToString() public méthode

public ToString ( int radix ) : string
radix int
Résultat string

aMain() public static méthode

public static aMain ( string args ) : void
args string
Résultat void

abs() public méthode

public abs ( ) : BigInteger
Résultat BigInteger

bitCount() public méthode

public bitCount ( ) : int
Résultat int

gcd() public méthode

public gcd ( BigInteger bi ) : BigInteger
bi BigInteger
Résultat BigInteger

genCoPrime() public méthode

public genCoPrime ( int bits, Random rand ) : BigInteger
bits int
rand Random
Résultat BigInteger

genPseudoPrime() public static méthode

public static genPseudoPrime ( int bits, int confidence, Random rand ) : BigInteger
bits int
confidence int
rand Random
Résultat BigInteger

genRandomBits() public méthode

public genRandomBits ( int bits, Random rand ) : void
bits int
rand Random
Résultat void

getBytes() public méthode

public getBytes ( ) : byte[]
Résultat byte[]

isProbablePrime() public méthode

public isProbablePrime ( ) : bool
Résultat bool

isProbablePrime() public méthode

public isProbablePrime ( int confidence ) : bool
confidence int
Résultat bool

max() public méthode

public max ( BigInteger bi ) : BigInteger
bi BigInteger
Résultat BigInteger

min() public méthode

public min ( BigInteger bi ) : BigInteger
bi BigInteger
Résultat BigInteger

modInverse() public méthode

public modInverse ( BigInteger modulus ) : BigInteger
modulus BigInteger
Résultat BigInteger

modPow() public méthode

public modPow ( BigInteger exp, BigInteger n ) : BigInteger
exp BigInteger
n BigInteger
Résultat BigInteger

operator() public static méthode

public static operator ( ) : BigInteger
Résultat BigInteger

operator() public static méthode

public static operator ( ) : bool
Résultat bool

setBit() public méthode

public setBit ( uint bitNum ) : void
bitNum uint
Résultat void

sqrt() public méthode

public sqrt ( ) : BigInteger
Résultat BigInteger

unsetBit() public méthode

public unsetBit ( uint bitNum ) : void
bitNum uint
Résultat void

Property Details

dataLength public_oe property

public int dataLength
Résultat int

primesBelow2000 public_oe static_oe property

public static int[] primesBelow2000
Résultat int[]