C# Class CSharpRTMP.Core.Protocols.Rtmfp.AESEngine

ファイルを表示 Open project: langhuihui/csharprtmp Class Usage Examples

Public Properties

Property Type Description
Type AESType
_key uint[]

Public Methods

Method Description
AESEngine ( ) : System
AESEngine ( AESEngine other, AESType type ) : System
AESEngine ( byte key = null, Direction direction = Direction.DECRYPT ) : System
Compute ( byte ary ) : byte
Decrypt ( BufferWithOffset encryptArray ) : void
Encrypt ( BufferWithOffset inArray ) : void

Next ( AESType t ) : AESEngine
Process ( System.Stream outStream ) : void

Private Methods

Method Description
ByteArrayToU32 ( byte byteArray, int start, UInt32 &s0, UInt32 &s1, UInt32 &s2, UInt32 &s3 ) : void
Decrypt16Byte ( BufferWithOffset inArray, int start, UInt32 key ) : void
Encrypt16Byte ( byte outArray, int start, UInt32 key ) : void

加密16个byte

GetDecryptKey ( byte key ) : System.UInt32[]
GetEncryptKey ( byte key ) : System.UInt32[]
GetU32 ( byte str, int offset ) : UInt32
U32ToByteArray ( UInt32 s0, UInt32 s1, UInt32 s2, UInt32 s3, byte byteArray, int start ) : void

Method Details

AESEngine() public method

public AESEngine ( ) : System
return System

AESEngine() public method

public AESEngine ( AESEngine other, AESType type ) : System
other AESEngine
type AESType
return System

AESEngine() public method

public AESEngine ( byte key = null, Direction direction = Direction.DECRYPT ) : System
key byte
direction Direction
return System

Compute() public static method

public static Compute ( byte ary ) : byte
ary byte
return byte

Decrypt() public method

public Decrypt ( BufferWithOffset encryptArray ) : void
encryptArray CSharpRTMP.Common.BufferWithOffset
return void

Encrypt() public method

public Encrypt ( BufferWithOffset inArray ) : void
inArray CSharpRTMP.Common.BufferWithOffset
return void

Next() public method

public Next ( AESType t ) : AESEngine
t AESType
return AESEngine

Process() public method

public Process ( System.Stream outStream ) : void
outStream System.Stream
return void

Property Details

Type public_oe property

public AESType Type
return AESType

_key public_oe property

public uint[] _key
return uint[]