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

◆ BCryptOpenAlgorithmProvider() [1/2]

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

Definition at line 34 of file Cng.cs.

35 {
36 SafeAlgorithmHandle phAlgorithm;
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().

Referenced by Internal.Cryptography.BCryptAeadHandleCache.GetCachedAlgorithmHandle(), Internal.Cryptography.TripleDesBCryptModes.Open3DesAlgorithm(), Internal.Cryptography.AesBCryptModes.OpenAesAlgorithm(), Internal.Cryptography.DesBCryptModes.OpenDesAlgorithm(), and Internal.Cryptography.RC2BCryptModes.OpenRC2Algorithm().