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

◆ BCryptDuplicateHash() [1/2]

static SafeBCryptHashHandle Interop.BCrypt.BCryptDuplicateHash ( SafeBCryptHashHandle hHash)
inlinestaticpackage

Definition at line 484 of file Interop.cs.

485 {
486 SafeBCryptHashHandle phNewHash;
487 NTSTATUS nTSTATUS = BCryptDuplicateHash(hHash, out phNewHash, IntPtr.Zero, 0, 0);
488 if (nTSTATUS != 0)
489 {
490 phNewHash.Dispose();
491 throw CreateCryptographicException(nTSTATUS);
492 }
493 return phNewHash;
494 }
static Exception CreateCryptographicException(NTSTATUS ntStatus)
Definition Interop.cs:461
static SafeBCryptHashHandle BCryptDuplicateHash(SafeBCryptHashHandle hHash)
Definition Interop.cs:484
static readonly IntPtr Zero
Definition IntPtr.cs:18

References Interop.BCrypt.BCryptDuplicateHash(), Interop.BCrypt.CreateCryptographicException(), System.Runtime.InteropServices.SafeHandle.Dispose(), and System.IntPtr.Zero.

Referenced by Interop.BCrypt.BCryptDuplicateHash().