C# Class CASCExplorer.Salsa20.Salsa20CryptoTransform

Salsa20Impl is an implementation of ICryptoTransform that uses the Salsa20 algorithm.
Inheritance: ICryptoTransform
Afficher le fichier Open project: WoW-Tools/CASCExplorer

Méthodes publiques

Méthode Description
Dispose ( ) : void
Salsa20CryptoTransform ( byte key, byte iv, int rounds ) : System
TransformBlock ( byte inputBuffer, int inputOffset, int inputCount, byte outputBuffer, int outputOffset ) : int
TransformFinalBlock ( byte inputBuffer, int inputOffset, int inputCount ) : byte[]

Private Methods

Méthode Description
Add ( uint v, uint w ) : uint
AddOne ( uint v ) : uint
Hash ( byte output, uint input ) : void
Initialize ( byte key, byte iv ) : void
Rotate ( uint v, int c ) : uint
ToBytes ( uint input, byte output, int outputOffset ) : void
ToUInt32 ( byte input, int inputOffset ) : uint

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Salsa20CryptoTransform() public méthode

public Salsa20CryptoTransform ( byte key, byte iv, int rounds ) : System
key byte
iv byte
rounds int
Résultat System

TransformBlock() public méthode

public TransformBlock ( byte inputBuffer, int inputOffset, int inputCount, byte outputBuffer, int outputOffset ) : int
inputBuffer byte
inputOffset int
inputCount int
outputBuffer byte
outputOffset int
Résultat int

TransformFinalBlock() public méthode

public TransformFinalBlock ( byte inputBuffer, int inputOffset, int inputCount ) : byte[]
inputBuffer byte
inputOffset int
inputCount int
Résultat byte[]