C# Class CSharpRTMP.Common.CryptLib

Show file Open project: langhuihui/csharprtmp

Public Methods

Method Description
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

Method Details

BNAdd() public static method

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
return System.UInt32

BNBitLength() public static method

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

BNCompare() public static method

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

BNDivide() public static method

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
return int

BNDivideHelper() public static method

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
return System.UInt32

BNDividedw() public static method

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

BNFromByte() public static method

public static BNFromByte ( byte bytes ) : uint[]
bytes byte
return uint[]

BNFromHex() public static method

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

BNModExp() public static method

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

BNModuloTmp() public static method

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
return int

BNMultSub() public static method

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
return System.UInt32

BNMultSubHelper() public static method

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
return void

BNMultiply() public static method

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

BNMultiplyHelper() public static method

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

BNQhatTooBigHelper() public static method

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

BNSetEqual() public static method

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

BNSetEqualdw() public static method

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

BNSetZero() public static method

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

BNShiftLeft() public static method

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

BNShiftRight() public static method

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

BNSizeof() public static method

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

BNSquare() public static method

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

BNToBytes() public static method

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

BNUiceil() public static method

public static BNUiceil ( double x ) : int
x double
return int