}
}
- ~PasswordDeriveBytes ()
- {
#if NET_4_0
- Dispose (false);
- }
-
protected override void Dispose (bool disposing)
{
-#endif
// zeroize buffer
if (initial != null) {
Array.Clear (initial, 0, initial.Length);
initial = null;
}
// zeroize temporary password storage
- Array.Clear (password, 0, password.Length);
-#if NET_4_0
+ if (password != null) {
+ Array.Clear (password, 0, password.Length);
+ password = null;
+ }
base.Dispose (disposing);
-#endif
}
+#endif
private void Prepare (string strPassword, byte[] rgbSalt, string strHashName, int iterations)
{