C# Class NSoft.NFramework.Cryptography.Aria.AriaEngine

显示文件 Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
AriaEngine ( int keySize ) : System
Decrypt ( byte i, int ioffset ) : byte[]

복호화를 수행하여, 결과를 반환합니다.

Decrypt ( byte i, int ioffset, byte o, int ooffset ) : void

복호화를 수행하여, 결과를 대상 버퍼에 씁니다.

Encrypt ( byte i, int ioffset ) : byte[]

암호화를 수행하여, 결과를 반환합니다.

Encrypt ( byte i, int ioffset, byte o, int ooffset ) : void

암호화를 수행하여, 결과를 o에 저장합니다.

Reset ( ) : void
SetKey ( byte masterKey ) : void
SetupRoundKeys ( ) : void

Private Methods

Method Description
AriaEngine ( ) : System

Static Initializer

AssertValidKeySize ( int keySize ) : void
Badc ( long t ) : long
Cdab ( long t ) : long
Dcba ( long t ) : long
Diff ( int i, int offset1, int o, int offset2 ) : void
DoCrypt ( byte i, int ioffset, int rk, int nr, byte o, int ooffset ) : void
DoDecKeySetup ( int rk, int keyBits ) : void
DoEncKeySetup ( byte mk, int rk, int keyBits ) : void
Gsrk ( int x, int y, int rot, int rk, int offset ) : void
M ( long t ) : long
SetupDecRoundKeys ( ) : void
SetupEncRoundKeys ( ) : void
SwapAndDiffuse ( int arr, int offset1, int offset2, int tmp ) : void
SwapBlocks ( int arr, int offset1, int offset2 ) : void
ToInt ( byte b0, byte b1, byte b2, byte b3 ) : int

Method Details

AriaEngine() public method

public AriaEngine ( int keySize ) : System
keySize int
return System

Decrypt() public method

복호화를 수행하여, 결과를 반환합니다.
public Decrypt ( byte i, int ioffset ) : byte[]
i byte
ioffset int
return byte[]

Decrypt() public method

복호화를 수행하여, 결과를 대상 버퍼에 씁니다.
public Decrypt ( byte i, int ioffset, byte o, int ooffset ) : void
i byte
ioffset int
o byte
ooffset int
return void

Encrypt() public method

암호화를 수행하여, 결과를 반환합니다.
public Encrypt ( byte i, int ioffset ) : byte[]
i byte
ioffset int
return byte[]

Encrypt() public method

암호화를 수행하여, 결과를 o에 저장합니다.
public Encrypt ( byte i, int ioffset, byte o, int ooffset ) : void
i byte
ioffset int
o byte
ooffset int
return void

Reset() public method

public Reset ( ) : void
return void

SetKey() public method

public SetKey ( byte masterKey ) : void
masterKey byte
return void

SetupRoundKeys() public method

public SetupRoundKeys ( ) : void
return void