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

Inheritance: IBlockCipher
Afficher le fichier Open project: nonorganic/dssnet Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GetBlockSize ( ) : int
Résultat int

GetSBox() public static méthode

public static GetSBox ( string sBoxName ) : byte[]
sBoxName string
Résultat byte[]

Init() public méthode

public Init ( bool forEncryption, ICipherParameters parameters ) : void
forEncryption bool
parameters ICipherParameters
Résultat void

ProcessBlock() public méthode

public ProcessBlock ( byte input, int inOff, byte output, int outOff ) : int
input byte
inOff int
output byte
outOff int
Résultat int

Reset() public méthode

public Reset ( ) : void
Résultat void