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

◆ BCryptOpenAlgorithmProvider() [2/2]

static Internal.NativeCrypto.SafeAlgorithmHandle Internal.NativeCrypto.Cng.BCryptOpenAlgorithmProvider ( string pszAlgId,
string pszImplementation,
OpenAlgorithmProviderFlags dwFlags )
inlinestatic

Definition at line 34 of file Cng.cs.

35 {
37 global::Interop.BCrypt.NTSTATUS nTSTATUS = Interop.BCryptOpenAlgorithmProvider(out phAlgorithm, pszAlgId, pszImplementation, (int)dwFlags);
38 if (nTSTATUS != 0)
39 {
40 throw CreateCryptographicException(nTSTATUS);
41 }
42 return phAlgorithm;
43 }
static Exception CreateCryptographicException(global::Interop.BCrypt.NTSTATUS ntStatus)
Definition Cng.cs:72

References Internal.NativeCrypto.Cng.Interop.BCryptOpenAlgorithmProvider(), and Internal.NativeCrypto.Cng.CreateCryptographicException().