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

◆ FinalizeHashAndReset() [3/3]

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

Definition at line 64 of file HashProviderCng.cs.

65 {
66 global::Interop.BCrypt.NTSTATUS nTSTATUS = global::Interop.BCrypt.BCryptFinishHash(_hHash, destination, _hashSize, 0);
67 if (nTSTATUS != 0)
68 {
69 throw global::Interop.BCrypt.CreateCryptographicException(nTSTATUS);
70 }
71 _running = false;
72 Reset();
73 return _hashSize;
74 }

References Internal.Cryptography.HashProviderCng._hashSize, Internal.Cryptography.HashProviderCng._hHash, Internal.Cryptography.HashProviderCng._running, System.destination, and Internal.Cryptography.HashProviderCng.Reset().