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

Inheritance: IBlockCipher
Exibir arquivo 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

Private Methods

Method Description
BytesToWord ( byte src, int srcOff ) : int
DecryptBlock ( byte input, int inOff, byte outBytes, int outOff ) : void
EncryptBlock ( byte input, int inOff, byte outBytes, int outOff ) : void
Ib0 ( int a, int b, int c, int d ) : void
Ib1 ( int a, int b, int c, int d ) : void
Ib2 ( int a, int b, int c, int d ) : void
Ib3 ( int a, int b, int c, int d ) : void
Ib4 ( int a, int b, int c, int d ) : void
Ib5 ( int a, int b, int c, int d ) : void
Ib6 ( int a, int b, int c, int d ) : void
Ib7 ( int a, int b, int c, int d ) : void
InverseLT ( ) : void
LT ( ) : void
MakeWorkingKey ( byte key ) : int[]
RotateLeft ( int x, int bits ) : int
RotateRight ( int x, int bits ) : int
Sb0 ( int a, int b, int c, int d ) : void
Sb1 ( int a, int b, int c, int d ) : void
Sb2 ( int a, int b, int c, int d ) : void
Sb3 ( int a, int b, int c, int d ) : void
Sb4 ( int a, int b, int c, int d ) : void
Sb5 ( int a, int b, int c, int d ) : void
Sb6 ( int a, int b, int c, int d ) : void
Sb7 ( int a, int b, int c, int d ) : void
WordToBytes ( int word, byte dst, int dstOff ) : 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