My Project
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
UniExtensions.Crypto.BigInteger Class Reference

Public Member Functions

 BigInteger ()
 
 BigInteger (long value)
 
 BigInteger (ulong value)
 
 BigInteger (BigInteger bi)
 
 BigInteger (string value, int radix)
 
 BigInteger (byte[] inData)
 
 BigInteger (byte[] inData, int inLen)
 
 BigInteger (uint[] inData)
 
override bool Equals (object o)
 
override int GetHashCode ()
 
BigInteger max (BigInteger bi)
 
BigInteger min (BigInteger bi)
 
BigInteger abs ()
 
override string ToString ()
 
string ToString (int radix)
 
string ToHexString ()
 
BigInteger modPow (BigInteger exp, BigInteger n)
 
BigInteger gcd (BigInteger bi)
 
void genRandomBits (int bits, Random rand)
 
int bitCount ()
 
bool FermatLittleTest (int confidence)
 
bool RabinMillerTest (int confidence)
 
bool SolovayStrassenTest (int confidence)
 
bool LucasStrongTest ()
 
bool isProbablePrime (int confidence)
 
bool isProbablePrime ()
 
int IntValue ()
 
long LongValue ()
 
BigInteger genCoPrime (int bits, Random rand)
 
BigInteger modInverse (BigInteger modulus)
 
byte[] getBytes ()
 
void setBit (uint bitNum)
 
void unsetBit (uint bitNum)
 
BigInteger sqrt ()
 

Static Public Member Functions

static implicit operator BigInteger (long value)
 
static implicit operator BigInteger (ulong value)
 
static implicit operator BigInteger (int value)
 
static implicit operator BigInteger (uint value)
 
static BigInteger operator+ (BigInteger bi1, BigInteger bi2)
 
static BigInteger operator++ (BigInteger bi1)
 
static BigInteger operator- (BigInteger bi1, BigInteger bi2)
 
static BigInteger operator-- (BigInteger bi1)
 
static BigInteger operator* (BigInteger bi1, BigInteger bi2)
 
static BigInteger operator<< (BigInteger bi1, int shiftVal)
 
static BigInteger operator>> (BigInteger bi1, int shiftVal)
 
static BigInteger operator~ (BigInteger bi1)
 
static BigInteger operator- (BigInteger bi1)
 
static bool operator== (BigInteger bi1, BigInteger bi2)
 
static bool operator!= (BigInteger bi1, BigInteger bi2)
 
static bool operator> (BigInteger bi1, BigInteger bi2)
 
static bool operator< (BigInteger bi1, BigInteger bi2)
 
static bool operator>= (BigInteger bi1, BigInteger bi2)
 
static bool operator<= (BigInteger bi1, BigInteger bi2)
 
static BigInteger operator/ (BigInteger bi1, BigInteger bi2)
 
static BigInteger operator% (BigInteger bi1, BigInteger bi2)
 
static BigInteger operator& (BigInteger bi1, BigInteger bi2)
 
static BigInteger operator| (BigInteger bi1, BigInteger bi2)
 
static BigInteger operator^ (BigInteger bi1, BigInteger bi2)
 
static int Jacobi (BigInteger a, BigInteger b)
 
static BigInteger genPseudoPrime (int bits, int confidence, Random rand)
 
static BigInteger[] LucasSequence (BigInteger P, BigInteger Q, BigInteger k, BigInteger n)
 

Public Attributes

int dataLength
 

Static Public Attributes

static readonly int[] primesBelow2000
 

Constructor & Destructor Documentation

UniExtensions.Crypto.BigInteger.BigInteger ( )
inline
UniExtensions.Crypto.BigInteger.BigInteger ( long  value)
inline
UniExtensions.Crypto.BigInteger.BigInteger ( ulong  value)
inline
UniExtensions.Crypto.BigInteger.BigInteger ( BigInteger  bi)
inline
UniExtensions.Crypto.BigInteger.BigInteger ( string  value,
int  radix 
)
inline
UniExtensions.Crypto.BigInteger.BigInteger ( byte[]  inData)
inline
UniExtensions.Crypto.BigInteger.BigInteger ( byte[]  inData,
int  inLen 
)
inline
UniExtensions.Crypto.BigInteger.BigInteger ( uint[]  inData)
inline

Member Function Documentation

BigInteger UniExtensions.Crypto.BigInteger.abs ( )
inline
int UniExtensions.Crypto.BigInteger.bitCount ( )
inline
override bool UniExtensions.Crypto.BigInteger.Equals ( object  o)
inline
bool UniExtensions.Crypto.BigInteger.FermatLittleTest ( int  confidence)
inline
BigInteger UniExtensions.Crypto.BigInteger.gcd ( BigInteger  bi)
inline
BigInteger UniExtensions.Crypto.BigInteger.genCoPrime ( int  bits,
Random  rand 
)
inline
static BigInteger UniExtensions.Crypto.BigInteger.genPseudoPrime ( int  bits,
int  confidence,
Random  rand 
)
inlinestatic
void UniExtensions.Crypto.BigInteger.genRandomBits ( int  bits,
Random  rand 
)
inline
byte [] UniExtensions.Crypto.BigInteger.getBytes ( )
inline
override int UniExtensions.Crypto.BigInteger.GetHashCode ( )
inline
int UniExtensions.Crypto.BigInteger.IntValue ( )
inline
bool UniExtensions.Crypto.BigInteger.isProbablePrime ( int  confidence)
inline
bool UniExtensions.Crypto.BigInteger.isProbablePrime ( )
inline
static int UniExtensions.Crypto.BigInteger.Jacobi ( BigInteger  a,
BigInteger  b 
)
inlinestatic
long UniExtensions.Crypto.BigInteger.LongValue ( )
inline
static BigInteger [] UniExtensions.Crypto.BigInteger.LucasSequence ( BigInteger  P,
BigInteger  Q,
BigInteger  k,
BigInteger  n 
)
inlinestatic
bool UniExtensions.Crypto.BigInteger.LucasStrongTest ( )
inline
BigInteger UniExtensions.Crypto.BigInteger.max ( BigInteger  bi)
inline
BigInteger UniExtensions.Crypto.BigInteger.min ( BigInteger  bi)
inline
BigInteger UniExtensions.Crypto.BigInteger.modInverse ( BigInteger  modulus)
inline
BigInteger UniExtensions.Crypto.BigInteger.modPow ( BigInteger  exp,
BigInteger  n 
)
inline
static implicit UniExtensions.Crypto.BigInteger.operator BigInteger ( long  value)
inlinestatic
static implicit UniExtensions.Crypto.BigInteger.operator BigInteger ( ulong  value)
inlinestatic
static implicit UniExtensions.Crypto.BigInteger.operator BigInteger ( int  value)
inlinestatic
static implicit UniExtensions.Crypto.BigInteger.operator BigInteger ( uint  value)
inlinestatic
static bool UniExtensions.Crypto.BigInteger.operator!= ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator% ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator& ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator* ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator+ ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator++ ( BigInteger  bi1)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator- ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator- ( BigInteger  bi1)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator-- ( BigInteger  bi1)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator/ ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static bool UniExtensions.Crypto.BigInteger.operator< ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator<< ( BigInteger  bi1,
int  shiftVal 
)
inlinestatic
static bool UniExtensions.Crypto.BigInteger.operator<= ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static bool UniExtensions.Crypto.BigInteger.operator== ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static bool UniExtensions.Crypto.BigInteger.operator> ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static bool UniExtensions.Crypto.BigInteger.operator>= ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator>> ( BigInteger  bi1,
int  shiftVal 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator^ ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator| ( BigInteger  bi1,
BigInteger  bi2 
)
inlinestatic
static BigInteger UniExtensions.Crypto.BigInteger.operator~ ( BigInteger  bi1)
inlinestatic
bool UniExtensions.Crypto.BigInteger.RabinMillerTest ( int  confidence)
inline
void UniExtensions.Crypto.BigInteger.setBit ( uint  bitNum)
inline
bool UniExtensions.Crypto.BigInteger.SolovayStrassenTest ( int  confidence)
inline
BigInteger UniExtensions.Crypto.BigInteger.sqrt ( )
inline
string UniExtensions.Crypto.BigInteger.ToHexString ( )
inline
override string UniExtensions.Crypto.BigInteger.ToString ( )
inline
string UniExtensions.Crypto.BigInteger.ToString ( int  radix)
inline
void UniExtensions.Crypto.BigInteger.unsetBit ( uint  bitNum)
inline

Member Data Documentation

int UniExtensions.Crypto.BigInteger.dataLength
readonly int [] UniExtensions.Crypto.BigInteger.primesBelow2000
static

The documentation for this class was generated from the following file: