C# Class CASCExplorer.Salsa20.Salsa20CryptoTransform

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

Public Methods

Method 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

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

public Dispose ( ) : void
return void

Salsa20CryptoTransform() public method

public Salsa20CryptoTransform ( byte key, byte iv, int rounds ) : System
key byte
iv byte
rounds int
return System

TransformBlock() public method

public TransformBlock ( byte inputBuffer, int inputOffset, int inputCount, byte outputBuffer, int outputOffset ) : int
inputBuffer byte
inputOffset int
inputCount int
outputBuffer byte
outputOffset int
return int

TransformFinalBlock() public method

public TransformFinalBlock ( byte inputBuffer, int inputOffset, int inputCount ) : byte[]
inputBuffer byte
inputOffset int
inputCount int
return byte[]