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
)
Visual Basic (Declaration)
Public Sub New ( _
	hashAlgorithm As HashAlgorithm, _
	data As Byte() _
)
Visual C++
public:
HashChain(
	HashAlgorithm^ hashAlgorithm, 
	array<unsigned char>^ data
)

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.

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