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

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

Public Methods

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

Private Methods

Method Description
Bits32ToBytes ( int inData, byte b, int offset ) : void
BytesTo32Bits ( byte b, int p ) : int
DecryptBlock ( byte src, int srcIndex, byte dst, int dstIndex ) : void
EncryptBlock ( byte src, int srcIndex, byte dst, int dstIndex ) : void
F32 ( int x, int k32 ) : int
Fe32_0 ( int x ) : int
Fe32_3 ( int x ) : int
LFSR1 ( int x ) : int
LFSR2 ( int x ) : int
M_b0 ( int x ) : int
M_b1 ( int x ) : int
M_b2 ( int x ) : int
M_b3 ( int x ) : int
Mx_X ( int x ) : int
Mx_Y ( int x ) : int
RS_MDS_Encode ( int k0, int k1 ) : int
RS_rem ( int x ) : int
SetKey ( byte key ) : void

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 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

TwofishEngine() public method

public TwofishEngine ( ) : System
return System