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

Inheritance: IBlockCipher
Show file Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
GetBlockSize ( ) : int
Init ( bool forEncryption, ICipherParameters parameters ) : void
ProcessBlock ( byte inBuf, int inOff, byte outBuf, int outOff ) : int
Reset ( ) : void

Private Methods

Method Description
F ( int ki0, int ki1, long r ) : long
G ( int x ) : int
bytesToLong ( byte src, int srcOff ) : long
createWorkingKey ( byte inKey ) : int[]
extractW0 ( long lVal ) : int
extractW1 ( long lVal ) : int
longToBytes ( byte dest, int destOff, long value ) : void
phaseCalc1 ( int r0, int ki0, int r1, int ki1 ) : int
phaseCalc2 ( int r0, int ki0, int r1, int ki1 ) : int
rotateLeft8 ( long x ) : long
rotateRight8 ( long x ) : long

Method Details

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 inBuf, int inOff, byte outBuf, int outOff ) : int
inBuf byte
inOff int
outBuf byte
outOff int
return int

Reset() public method

public Reset ( ) : void
return void