Resets the state of the operation.
Syntax
Visual Basic (Declaration) | |
---|
Sub Reset() |
Example
Library/Library.Test/TestHashDerivedBytes.cs
C# | Copy Code |
---|
using (IPasswordDerivedBytes pd = DerivedBytes(TEST_PASSWORD))
{
pd.IterationCount = 10;
byte[] bytes = pd.GetBytes(1000);
Assert.AreNotEqual(bytes, pd.GetBytes(bytes.Length));
pd.Reset();
Assert.AreEqual(bytes, pd.GetBytes(bytes.Length));
} |
VB.NET | Copy Code |
---|
Using pd As IPasswordDerivedBytes = DerivedBytes(TEST_PASSWORD)
pd.IterationCount = 10
Dim bytes As Byte() = pd.GetBytes(1000)
Assert.AreNotEqual(bytes, pd.GetBytes(bytes.Length))
pd.Reset()
Assert.AreEqual(bytes, pd.GetBytes(bytes.Length))
End Using |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also