Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Dispose() [2/2]

override void System.Security.Cryptography.PasswordDeriveBytes.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from System.Security.Cryptography.DeriveBytes.

Definition at line 207 of file PasswordDeriveBytes.cs.

208 {
209 base.Dispose(disposing);
210 if (disposing)
211 {
212 _hash?.Dispose();
213 if (_baseValue != null)
214 {
215 Array.Clear(_baseValue);
216 }
217 if (_extra != null)
218 {
219 Array.Clear(_extra);
220 }
221 if (_password != null)
222 {
223 Array.Clear(_password);
224 }
225 if (_salt != null)
226 {
227 Array.Clear(_salt);
228 }
229 }
230 }

References System.Security.Cryptography.PasswordDeriveBytes._baseValue, System.Security.Cryptography.PasswordDeriveBytes._extra, System.Security.Cryptography.PasswordDeriveBytes._hash, System.Security.Cryptography.PasswordDeriveBytes._password, System.Security.Cryptography.PasswordDeriveBytes._salt, System.Array.Clear(), and System.Security.Cryptography.HashAlgorithm.Dispose().