C# Class Org.BouncyCastle.Crypto.Engines.CamelliaLightEngine

Inheritance: IBlockCipher
Datei anzeigen Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
CamelliaLightEngine ( ) : System
GetBlockSize ( ) : int
Init ( bool forEncryption, ICipherParameters parameters ) : void
ProcessBlock ( byte input, int inOff, byte output, int outOff ) : int
Reset ( ) : void

Private Methods

Method Description
bytes2uint ( byte src, int offset ) : uint
camelliaF2 ( uint s, uint skey, int keyoff ) : void
camelliaFLs ( uint s, uint fkey, int keyoff ) : void
decroldq ( int rot, uint ki, int ioff, uint ko, int ooff ) : void
decroldqo32 ( int rot, uint ki, int ioff, uint ko, int ooff ) : void
lRot8 ( byte v, int rot ) : byte
leftRotate ( uint x, int s ) : uint
processBlock128 ( byte input, int inOff, byte output, int outOff ) : int
processBlock192or256 ( byte input, int inOff, byte output, int outOff ) : int
rightRotate ( uint x, int s ) : uint
roldq ( int rot, uint ki, int ioff, uint ko, int ooff ) : void
roldqo32 ( int rot, uint ki, int ioff, uint ko, int ooff ) : void
sbox2 ( int x ) : uint
sbox3 ( int x ) : uint
sbox4 ( int x ) : uint
setKey ( bool forEncryption, byte key ) : void
uint2bytes ( uint word, byte dst, int offset ) : void

Method Details

CamelliaLightEngine() public method

public CamelliaLightEngine ( ) : System
return System

GetBlockSize() public method

public GetBlockSize ( ) : int
return int

Init() public method

public Init ( bool forEncryption, ICipherParameters parameters ) : void
forEncryption bool
parameters ICipherParameters
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