Salsa20Core.Compute Method

CryptSharp

Salsa20CoreCompute Method CryptSharp
Applies the Salsa20 hash function. It maps a 16 element input to an output of the same size.

Namespace: CryptSharp.Utility
Assembly: CryptSharp (in CryptSharp.dll) Version: 2.1.0.0
Syntax

public static void Compute(
	int rounds,
	uint[] input,
	int inputOffset,
	uint[] output,
	int outputOffset
)
Public Shared Sub Compute ( 
	rounds As Integer,
	input As UInteger(),
	inputOffset As Integer,
	output As UInteger(),
	outputOffset As Integer
)
public:
static void Compute(
	int rounds, 
	array<unsigned int>^ input, 
	int inputOffset, 
	array<unsigned int>^ output, 
	int outputOffset
)
static member Compute : 
        rounds : int * 
        input : uint32[] * 
        inputOffset : int * 
        output : uint32[] * 
        outputOffset : int -> unit 

Parameters

rounds
Type: SystemInt32
The number of rounds. SCrypt uses 8.
input
Type: SystemUInt32
The input buffer.
inputOffset
Type: SystemInt32
The offset into the input buffer.
output
Type: SystemUInt32
The output buffer.
outputOffset
Type: SystemInt32
The offset into the output buffer.
See Also

Reference