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

Inheritance: IBlockCipher
Exibir arquivo Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
CamelliaEngine ( ) : 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
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
setKey ( bool forEncryption, byte key ) : void
uint2bytes ( uint word, byte dst, int offset ) : void

Method Details

CamelliaEngine() public method

public CamelliaEngine ( ) : 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