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

◆ AcquireCsp()

static void Internal.NativeCrypto.CapiHelper.AcquireCsp ( CspParameters cspParameters,
out SafeProvHandle safeProvHandle )
inlinestaticpackage

Definition at line 516 of file CapiHelper.cs.

517 {
518 SafeProvHandle safeProvHandle2;
519 int num = OpenCSP(cspParameters, 4026531840u, out safeProvHandle2);
520 if (num != 0)
521 {
522 safeProvHandle2.Dispose();
523 throw num.ToCryptographicException();
524 }
525 safeProvHandle = safeProvHandle2;
526 }
static int OpenCSP(CspParameters cspParameters, uint flags, out SafeProvHandle safeProvHandle)
override void Dispose(bool disposing)

References System.Security.Cryptography.SafeProvHandle.Dispose(), and Internal.NativeCrypto.CapiHelper.OpenCSP().

Referenced by Internal.Cryptography.BasicSymmetricCipherCsp.AcquireSafeProviderHandle(), System.Security.Cryptography.DSACryptoServiceProvider.AcquireSafeProviderHandle(), System.Security.Cryptography.RSACryptoServiceProvider.AcquireSafeProviderHandle(), and System.Security.Cryptography.PasswordDeriveBytes.AcquireSafeProviderHandle().