Initializes a new instance of the HashChain class.

Namespace:  Classless.Hasher.Methods
Assembly:  Classless.Hasher (in Classless.Hasher.dll) Version: 0.8.3649.33599

Syntax

C#
public HashChain(
	HashAlgorithm hashAlgorithm,
	byte[] data,
	int offset,
	int length,
	int initialize
)
Visual Basic (Declaration)
Public Sub New ( _
	hashAlgorithm As HashAlgorithm, _
	data As Byte(), _
	offset As Integer, _
	length As Integer, _
	initialize As Integer _
)
Visual C++
public:
HashChain(
	HashAlgorithm^ hashAlgorithm, 
	array<unsigned char>^ data, 
	int offset, 
	int length, 
	int initialize
)

Parameters

hashAlgorithm
Type: System.Security.Cryptography..::.HashAlgorithm
The HashAlgorithm to calculate the chain iterations with.
data
Type: array< System..::.Byte >[]()[]
The value to initialize the chain with.
offset
Type: System..::.Int32
Position in the byte array to begin the conversion.
length
Type: System..::.Int32
How many bytes in the array to use.
initialize
Type: System..::.Int32
How many iterations to calculate during instantiation.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionWhen the specified HashALgorithm is null.
System..::.ArgumentExceptionWhen the range specified for the array is invalid or the initialization value is less than 1.

See Also