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

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

Public Methods

Method Description
GetBlockSize ( ) : int
GetSBox ( string sBoxName ) : byte[]
Init ( bool forEncryption, ICipherParameters parameters ) : void
ProcessBlock ( byte input, int inOff, byte output, int outOff ) : int
Reset ( ) : void

Private Methods

Method Description
AddSBox ( string sBoxName, byte sBox ) : void
Gost28147Engine ( ) : System
Gost28147Func ( int workingKey, byte inBytes, int inOff, byte outBytes, int outOff ) : void
Gost28147_mainStep ( int n1, int key ) : int
bytesToint ( byte inBytes, int inOff ) : int
generateWorkingKey ( bool forEncryption, byte userKey ) : int[]
intTobytes ( int num, byte outBytes, int outOff ) : void

Method Details

GetBlockSize() public method

public GetBlockSize ( ) : int
return int

GetSBox() public static method

public static GetSBox ( string sBoxName ) : byte[]
sBoxName string
return byte[]

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