C# Class ARIAEngine, AaltoTLS

Datei anzeigen Open project: juhovh/AaltoTLS Class Usage Examples

Public Methods

Method Description
ARIAEngine ( byte masterKey ) : System
Decrypt ( byte inputBuffer, int inputOffset, byte outputBuffer, int outputOffset ) : void
Encrypt ( byte inputBuffer, int inputOffset, byte outputBuffer, int outputOffset ) : void

Private Methods

Method Description
CircularShiftLeft ( byte x, int c ) : byte[]
Diffuse ( byte x, byte y ) : void
F ( bool even, bool final, byte input, byte key, byte output ) : void
GenerateRoundKeys ( byte MK ) : void
Substitute ( bool even, byte x, byte y ) : void
XOR ( byte x1, byte x2, byte y ) : void

Method Details

ARIAEngine() public method

public ARIAEngine ( byte masterKey ) : System
masterKey byte
return System

Decrypt() public method

public Decrypt ( byte inputBuffer, int inputOffset, byte outputBuffer, int outputOffset ) : void
inputBuffer byte
inputOffset int
outputBuffer byte
outputOffset int
return void

Encrypt() public method

public Encrypt ( byte inputBuffer, int inputOffset, byte outputBuffer, int outputOffset ) : void
inputBuffer byte
inputOffset int
outputBuffer byte
outputOffset int
return void