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

Inheritance: IBlockCipher
显示文件 Open project: nonorganic/dssnet Class Usage Examples

Public Methods

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

Private Methods

Method Description
AddInv ( int x ) : int
BytesToWord ( byte input, int inOff ) : int
ExpandKey ( byte uKey ) : int[]
GenerateWorkingKey ( bool forEncryption, byte userKey ) : int[]
IdeaFunc ( int workingKey, byte input, int inOff, byte outBytes, int outOff ) : void
InvertKey ( int inKey ) : int[]
Mul ( int x, int y ) : int
MulInv ( int x ) : int
WordToBytes ( int word, byte outBytes, int outOff ) : void

Method Details

GetBlockSize() public method

public GetBlockSize ( ) : int
return int

IdeaEngine() public method

public IdeaEngine ( ) : System
return System

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