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

◆ TryGetHashAndReset()

bool System.Security.Cryptography.IncrementalHash.TryGetHashAndReset ( Span< byte > destination,
out int bytesWritten )
inline

Definition at line 108 of file IncrementalHash.cs.

109 {
110 if (_disposed)
111 {
112 throw new ObjectDisposedException("IncrementalHash");
113 }
114 if (destination.Length < HashLengthInBytes)
115 {
116 bytesWritten = 0;
117 return false;
118 }
119 bytesWritten = GetHashAndResetCore(destination);
120 return true;
121 }
int GetHashAndResetCore(Span< byte > destination)

References System.Security.Cryptography.IncrementalHash._disposed, System.destination, System.Security.Cryptography.IncrementalHash.GetHashAndResetCore(), and System.Security.Cryptography.IncrementalHash.HashLengthInBytes.

Referenced by System.Security.Cryptography.Pkcs.Pkcs12Kdf.Derive(), System.Security.Cryptography.HKDF.GetHashAndReset(), System.Security.Cryptography.MD5CryptoServiceProvider.Initialize(), System.Security.Cryptography.SHA1CryptoServiceProvider.Initialize(), System.Security.Cryptography.SHA256CryptoServiceProvider.Initialize(), System.Security.Cryptography.SHA384CryptoServiceProvider.Initialize(), System.Security.Cryptography.SHA512CryptoServiceProvider.Initialize(), System.Security.Cryptography.RsaPaddingProcessor.Mgf1(), System.Security.Cryptography.PasswordBasedEncryption.Pbkdf1(), System.Security.Cryptography.MD5CryptoServiceProvider.TryHashFinal(), System.Security.Cryptography.SHA1CryptoServiceProvider.TryHashFinal(), System.Security.Cryptography.SHA256CryptoServiceProvider.TryHashFinal(), System.Security.Cryptography.SHA384CryptoServiceProvider.TryHashFinal(), and System.Security.Cryptography.SHA512CryptoServiceProvider.TryHashFinal().