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

◆ GetCurrentHash()

override int Internal.Cryptography.HashProviderCng.GetCurrentHash ( Span< byte > destination)
inline

Definition at line 76 of file HashProviderCng.cs.

77 {
78 using SafeBCryptHashHandle hHash = global::Interop.BCrypt.BCryptDuplicateHash(_hHash);
79 global::Interop.BCrypt.NTSTATUS nTSTATUS = global::Interop.BCrypt.BCryptFinishHash(hHash, destination, _hashSize, 0);
80 if (nTSTATUS != 0)
81 {
82 throw global::Interop.BCrypt.CreateCryptographicException(nTSTATUS);
83 }
84 return _hashSize;
85 }

References Internal.Cryptography.HashProviderCng._hashSize, Internal.Cryptography.HashProviderCng._hHash, and System.destination.