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

◆ ComputeBaseValue()

byte[] System.Security.Cryptography.PasswordDeriveBytes.ComputeBaseValue ( )
inlineprivate

Definition at line 232 of file PasswordDeriveBytes.cs.

233 {
236 if (_salt != null)
237 {
238 _hash.TransformBlock(_salt, 0, _salt.Length, _salt, 0);
239 }
240 _hash.TransformFinalBlock(Array.Empty<byte>(), 0, 0);
243 for (int i = 1; i < _iterations - 1; i++)
244 {
247 }
248 return _baseValue;
249 }
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[]? outputBuffer, int outputOffset)

References System.Security.Cryptography.PasswordDeriveBytes._baseValue, System.Security.Cryptography.PasswordDeriveBytes._hash, System.Security.Cryptography.PasswordDeriveBytes._iterations, System.Security.Cryptography.PasswordDeriveBytes._password, System.Security.Cryptography.PasswordDeriveBytes._salt, System.Security.Cryptography.HashAlgorithm.ComputeHash(), System.Security.Cryptography.HashAlgorithm.Hash, System.Security.Cryptography.HashAlgorithm.Initialize(), System.Security.Cryptography.HashAlgorithm.TransformBlock(), and System.Security.Cryptography.HashAlgorithm.TransformFinalBlock().

Referenced by System.Security.Cryptography.PasswordDeriveBytes.GetBytes().