C# 클래스 CSharpRTMP.Common.CryptLib

파일 보기 프로젝트 열기: langhuihui/csharprtmp

공개 메소드들

메소드 설명
BNAdd ( UInt32 C, UInt32 A, int offset, UInt32 B, int nSize ) : UInt32
BNBitLength ( UInt32 d, int nSize ) : int
BNCompare ( UInt32 a, UInt32 b, int nSize ) : int
BNDivide ( UInt32 q, UInt32 r, UInt32 u, int usize, UInt32 v, int vsize ) : int
BNDivideHelper ( UInt32 &q, UInt32 &r, uint u0, uint u1, UInt32 v ) : UInt32
BNDividedw ( UInt32 q, UInt32 u, UInt32 v, int nSize ) : UInt32
BNFromByte ( byte bytes ) : uint[]
BNFromHex ( string source ) : System.UInt32[]
BNModExp ( UInt32 x, UInt32 e, UInt32 m, int nSize ) : System.UInt32[]
BNModuloTmp ( UInt32 r, UInt32 u, int nUSize, UInt32 v, int nVSize, UInt32 tqq, UInt32 trr ) : int
BNMultSub ( UInt32 wn, UInt32 w, int offset, UInt32 v, UInt32 q, int nSize ) : UInt32
BNMultSubHelper ( uint &uu0, uint &uu1, UInt32 qhat, UInt32 v1, UInt32 v0 ) : void
BNMultiply ( UInt32 C, UInt32 A, UInt32 B, int nSize ) : int
BNMultiplyHelper ( uint &p0, uint &p1, UInt32 x, UInt32 y ) : int
BNQhatTooBigHelper ( UInt32 qhat, UInt32 rhat, UInt32 vn2, UInt32 ujn2 ) : bool
BNSetEqual ( UInt32 a, UInt32 b, int nSize ) : void
BNSetEqualdw ( UInt32 a, UInt32 d, int nSize ) : void
BNSetZero ( UInt32 A, int nSize ) : void
BNShiftLeft ( UInt32 a, UInt32 b, int x, int nSize ) : UInt32
BNShiftRight ( UInt32 a, UInt32 b, int x, int nSize ) : UInt32
BNSizeof ( UInt32 A, int nSize ) : int
BNSquare ( UInt32 w, UInt32 x, int nSize ) : int
BNToBytes ( UInt32 a ) : byte[]
BNUiceil ( double x ) : int

메소드 상세

BNAdd() 공개 정적인 메소드

public static BNAdd ( UInt32 C, UInt32 A, int offset, UInt32 B, int nSize ) : UInt32
C System.UInt32
A System.UInt32
offset int
B System.UInt32
nSize int
리턴 System.UInt32

BNBitLength() 공개 정적인 메소드

public static BNBitLength ( UInt32 d, int nSize ) : int
d System.UInt32
nSize int
리턴 int

BNCompare() 공개 정적인 메소드

public static BNCompare ( UInt32 a, UInt32 b, int nSize ) : int
a System.UInt32
b System.UInt32
nSize int
리턴 int

BNDivide() 공개 정적인 메소드

public static BNDivide ( UInt32 q, UInt32 r, UInt32 u, int usize, UInt32 v, int vsize ) : int
q System.UInt32
r System.UInt32
u System.UInt32
usize int
v System.UInt32
vsize int
리턴 int

BNDivideHelper() 공개 정적인 메소드

public static BNDivideHelper ( UInt32 &q, UInt32 &r, uint u0, uint u1, UInt32 v ) : UInt32
q System.UInt32
r System.UInt32
u0 uint
u1 uint
v System.UInt32
리턴 System.UInt32

BNDividedw() 공개 정적인 메소드

public static BNDividedw ( UInt32 q, UInt32 u, UInt32 v, int nSize ) : UInt32
q System.UInt32
u System.UInt32
v System.UInt32
nSize int
리턴 System.UInt32

BNFromByte() 공개 정적인 메소드

public static BNFromByte ( byte bytes ) : uint[]
bytes byte
리턴 uint[]

BNFromHex() 공개 정적인 메소드

public static BNFromHex ( string source ) : System.UInt32[]
source string
리턴 System.UInt32[]

BNModExp() 공개 정적인 메소드

public static BNModExp ( UInt32 x, UInt32 e, UInt32 m, int nSize ) : System.UInt32[]
x System.UInt32
e System.UInt32
m System.UInt32
nSize int
리턴 System.UInt32[]

BNModuloTmp() 공개 정적인 메소드

public static BNModuloTmp ( UInt32 r, UInt32 u, int nUSize, UInt32 v, int nVSize, UInt32 tqq, UInt32 trr ) : int
r System.UInt32
u System.UInt32
nUSize int
v System.UInt32
nVSize int
tqq System.UInt32
trr System.UInt32
리턴 int

BNMultSub() 공개 정적인 메소드

public static BNMultSub ( UInt32 wn, UInt32 w, int offset, UInt32 v, UInt32 q, int nSize ) : UInt32
wn System.UInt32
w System.UInt32
offset int
v System.UInt32
q System.UInt32
nSize int
리턴 System.UInt32

BNMultSubHelper() 공개 정적인 메소드

public static BNMultSubHelper ( uint &uu0, uint &uu1, UInt32 qhat, UInt32 v1, UInt32 v0 ) : void
uu0 uint
uu1 uint
qhat System.UInt32
v1 System.UInt32
v0 System.UInt32
리턴 void

BNMultiply() 공개 정적인 메소드

public static BNMultiply ( UInt32 C, UInt32 A, UInt32 B, int nSize ) : int
C System.UInt32
A System.UInt32
B System.UInt32
nSize int
리턴 int

BNMultiplyHelper() 공개 정적인 메소드

public static BNMultiplyHelper ( uint &p0, uint &p1, UInt32 x, UInt32 y ) : int
p0 uint
p1 uint
x System.UInt32
y System.UInt32
리턴 int

BNQhatTooBigHelper() 공개 정적인 메소드

public static BNQhatTooBigHelper ( UInt32 qhat, UInt32 rhat, UInt32 vn2, UInt32 ujn2 ) : bool
qhat System.UInt32
rhat System.UInt32
vn2 System.UInt32
ujn2 System.UInt32
리턴 bool

BNSetEqual() 공개 정적인 메소드

public static BNSetEqual ( UInt32 a, UInt32 b, int nSize ) : void
a System.UInt32
b System.UInt32
nSize int
리턴 void

BNSetEqualdw() 공개 정적인 메소드

public static BNSetEqualdw ( UInt32 a, UInt32 d, int nSize ) : void
a System.UInt32
d System.UInt32
nSize int
리턴 void

BNSetZero() 공개 정적인 메소드

public static BNSetZero ( UInt32 A, int nSize ) : void
A System.UInt32
nSize int
리턴 void

BNShiftLeft() 공개 정적인 메소드

public static BNShiftLeft ( UInt32 a, UInt32 b, int x, int nSize ) : UInt32
a System.UInt32
b System.UInt32
x int
nSize int
리턴 System.UInt32

BNShiftRight() 공개 정적인 메소드

public static BNShiftRight ( UInt32 a, UInt32 b, int x, int nSize ) : UInt32
a System.UInt32
b System.UInt32
x int
nSize int
리턴 System.UInt32

BNSizeof() 공개 정적인 메소드

public static BNSizeof ( UInt32 A, int nSize ) : int
A System.UInt32
nSize int
리턴 int

BNSquare() 공개 정적인 메소드

public static BNSquare ( UInt32 w, UInt32 x, int nSize ) : int
w System.UInt32
x System.UInt32
nSize int
리턴 int

BNToBytes() 공개 정적인 메소드

public static BNToBytes ( UInt32 a ) : byte[]
a System.UInt32
리턴 byte[]

BNUiceil() 공개 정적인 메소드

public static BNUiceil ( double x ) : int
x double
리턴 int