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

◆ HashCore() [2/2]

virtual void System.Security.Cryptography.HashAlgorithm.HashCore ( ReadOnlySpan< byte > source)
inlineprotectedvirtualinherited

Reimplemented in System.Security.Cryptography.HMACMD5, System.Security.Cryptography.HMACSHA1, System.Security.Cryptography.HMACSHA256, System.Security.Cryptography.HMACSHA384, System.Security.Cryptography.HMACSHA512, System.Security.Cryptography.MD5.Implementation, System.Security.Cryptography.SHA1.Implementation, System.Security.Cryptography.SHA1Managed, System.Security.Cryptography.SHA256.Implementation, System.Security.Cryptography.SHA256Managed, System.Security.Cryptography.SHA384.Implementation, System.Security.Cryptography.SHA384Managed, System.Security.Cryptography.SHA512.Implementation, System.Security.Cryptography.SHA512Managed, System.Security.Cryptography.MD5CryptoServiceProvider, System.Security.Cryptography.SHA1CryptoServiceProvider, System.Security.Cryptography.SHA256CryptoServiceProvider, System.Security.Cryptography.SHA384CryptoServiceProvider, System.Security.Cryptography.SHA512CryptoServiceProvider, and System.Security.Cryptography.HMAC.

Definition at line 260 of file HashAlgorithm.cs.

261 {
262 byte[] array = ArrayPool<byte>.Shared.Rent(source.Length);
263 source.CopyTo(array);
264 HashCore(array, 0, source.Length);
265 Array.Clear(array, 0, source.Length);
267 }
static ArrayPool< T > Shared
Definition ArrayPool.cs:7
void HashCore(byte[] array, int ibStart, int cbSize)

References System.array, System.Array.Clear(), System.Security.Cryptography.HashAlgorithm.HashCore(), System.Buffers.ArrayPool< T >.Shared, and System.source.