C# 클래스 BigInteger, otp.net

파일 보기 프로젝트 열기: saleyn/otp.net 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
dataLength int
primesBelow2000 int[]

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

BigInteger() 공개 메소드

public BigInteger ( ) : System
리턴 System

BigInteger() 공개 메소드

public BigInteger ( BigInteger, bi ) : System
bi BigInteger,
리턴 System

BigInteger() 공개 메소드

public BigInteger ( byte inData ) : System
inData byte
리턴 System

BigInteger() 공개 메소드

public BigInteger ( byte inData, int inLen ) : System
inData byte
inLen int
리턴 System

BigInteger() 공개 메소드

public BigInteger ( long value ) : System
value long
리턴 System

BigInteger() 공개 메소드

public BigInteger ( string value, int radix ) : System
value string
radix int
리턴 System

BigInteger() 공개 메소드

public BigInteger ( uint inData ) : System
inData uint
리턴 System

BigInteger() 공개 메소드

public BigInteger ( ulong value ) : System
value ulong
리턴 System

Equals() 공개 메소드

public Equals ( object o ) : bool
o object
리턴 bool

FermatLittleTest() 공개 메소드

public FermatLittleTest ( int confidence ) : bool
confidence int
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

IntValue() 공개 메소드

public IntValue ( ) : int
리턴 int

Jacobi() 공개 정적인 메소드

public static Jacobi ( BigInteger a, BigInteger b ) : int
a BigInteger
b BigInteger
리턴 int

LongValue() 공개 메소드

public LongValue ( ) : long
리턴 long

LucasSequence() 공개 정적인 메소드

public static LucasSequence ( BigInteger P, BigInteger Q, BigInteger k, BigInteger n ) : BigInteger[]
P BigInteger
Q BigInteger
k BigInteger
n BigInteger
리턴 BigInteger[]

LucasStrongTest() 공개 메소드

public LucasStrongTest ( ) : bool
리턴 bool

MulDivTest() 공개 정적인 메소드

public static MulDivTest ( int rounds ) : void
rounds int
리턴 void

RSATest() 공개 정적인 메소드

public static RSATest ( int rounds ) : void
rounds int
리턴 void

RSATest2() 공개 정적인 메소드

public static RSATest2 ( int rounds ) : void
rounds int
리턴 void

RabinMillerTest() 공개 메소드

public RabinMillerTest ( int confidence ) : bool
confidence int
리턴 bool

SolovayStrassenTest() 공개 메소드

public SolovayStrassenTest ( int confidence ) : bool
confidence int
리턴 bool

SqrtTest() 공개 정적인 메소드

public static SqrtTest ( int rounds ) : void
rounds int
리턴 void

ToHexString() 공개 메소드

public ToHexString ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( int radix ) : string
radix int
리턴 string

aMain() 공개 정적인 메소드

public static aMain ( string args ) : void
args string
리턴 void

abs() 공개 메소드

public abs ( ) : BigInteger
리턴 BigInteger

bitCount() 공개 메소드

public bitCount ( ) : int
리턴 int

gcd() 공개 메소드

public gcd ( BigInteger bi ) : BigInteger
bi BigInteger
리턴 BigInteger

genCoPrime() 공개 메소드

public genCoPrime ( int bits, Random rand ) : BigInteger
bits int
rand Random
리턴 BigInteger

genPseudoPrime() 공개 정적인 메소드

public static genPseudoPrime ( int bits, int confidence, Random rand ) : BigInteger
bits int
confidence int
rand Random
리턴 BigInteger

genRandomBits() 공개 메소드

public genRandomBits ( int bits, Random rand ) : void
bits int
rand Random
리턴 void

getBytes() 공개 메소드

public getBytes ( ) : byte[]
리턴 byte[]

isProbablePrime() 공개 메소드

public isProbablePrime ( ) : bool
리턴 bool

isProbablePrime() 공개 메소드

public isProbablePrime ( int confidence ) : bool
confidence int
리턴 bool

max() 공개 메소드

public max ( BigInteger bi ) : BigInteger
bi BigInteger
리턴 BigInteger

min() 공개 메소드

public min ( BigInteger bi ) : BigInteger
bi BigInteger
리턴 BigInteger

modInverse() 공개 메소드

public modInverse ( BigInteger modulus ) : BigInteger
modulus BigInteger
리턴 BigInteger

modPow() 공개 메소드

public modPow ( BigInteger exp, BigInteger n ) : BigInteger
exp BigInteger
n BigInteger
리턴 BigInteger

operator() 공개 정적인 메소드

public static operator ( ) : BigInteger
리턴 BigInteger

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

setBit() 공개 메소드

public setBit ( uint bitNum ) : void
bitNum uint
리턴 void

sqrt() 공개 메소드

public sqrt ( ) : BigInteger
리턴 BigInteger

unsetBit() 공개 메소드

public unsetBit ( uint bitNum ) : void
bitNum uint
리턴 void

프로퍼티 상세

dataLength 공개적으로 프로퍼티

public int dataLength
리턴 int

primesBelow2000 공개적으로 정적으로 프로퍼티

public static int[] primesBelow2000
리턴 int[]