C# Class TLSharp.Core.MTProto.Crypto.AesEngine

Exibir arquivo Open project: sochix/TLSharp Class Usage Examples

Public Methods

Method Description
GetBlockSize ( ) : int
Init ( bool forEncryption, byte key ) : void
ProcessBlock ( byte input, int inOff, byte output, int outOff ) : int
Reset ( ) : void

Private Methods

Method Description
DecryptBlock ( uint KW ) : void
EncryptBlock ( uint KW ) : void
FFmulX ( uint x ) : uint
GenerateWorkingKey ( byte key, bool forEncryption ) : ].uint[
Inv_Mcol ( uint x ) : uint
PackBlock ( byte bytes, int off ) : void
Shift ( uint r, int shift ) : uint
SubWord ( uint x ) : uint
UnPackBlock ( byte bytes, int off ) : void

Method Details

GetBlockSize() public method

public GetBlockSize ( ) : int
return int

Init() public method

public Init ( bool forEncryption, byte key ) : void
forEncryption bool
key byte
return void

ProcessBlock() public method

public ProcessBlock ( byte input, int inOff, byte output, int outOff ) : int
input byte
inOff int
output byte
outOff int
return int

Reset() public method

public Reset ( ) : void
return void