Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SafeAlgorithmHandle.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
Microsoft.Win32.SafeHandles
;
4
5
namespace
Internal.NativeCrypto
;
6
7
internal
sealed
class
SafeAlgorithmHandle :
Microsoft
.Win32.SafeHandles.
SafeBCryptHandle
8
{
9
protected
sealed
override
bool
ReleaseHandle
()
10
{
11
uint num =
BCryptCloseAlgorithmProvider
(
handle
, 0);
12
return
num == 0;
13
}
14
15
[DllImport(
"BCrypt.dll"
)]
16
private
static
extern
uint
BCryptCloseAlgorithmProvider
(
IntPtr
hAlgorithm,
int
dwFlags);
17
}
Internal.NativeCrypto.SafeAlgorithmHandle.BCryptCloseAlgorithmProvider
static uint BCryptCloseAlgorithmProvider(IntPtr hAlgorithm, int dwFlags)
Internal.NativeCrypto.SafeAlgorithmHandle.ReleaseHandle
override bool ReleaseHandle()
Definition
SafeAlgorithmHandle.cs:9
Microsoft.Win32.SafeHandles.SafeBCryptHandle
Definition
SafeBCryptHandle.cs:7
System.Runtime.InteropServices.SafeHandle.handle
IntPtr handle
Definition
SafeHandle.cs:8
Internal.NativeCrypto
Definition
Cng.cs:6
Microsoft.Win32.SafeHandles
Definition
SafeProcessHandle.cs:3
Microsoft
Definition
AlphaTestEffect.cs:1
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System
Definition
BlockingCollection.cs:8
System.IntPtr
Definition
IntPtr.cs:14
source
System.Security.Cryptography.Cng
Internal.NativeCrypto
SafeAlgorithmHandle.cs
Generated by
1.10.0