System.Security.Cryptography.RSACryptoServiceProvider.AcquireSafeProviderHandle C# (CSharp) Method

AcquireSafeProviderHandle() private method

This method helps Acquire the default CSP and avoids the need for static SafeProvHandle in CapiHelper class
private AcquireSafeProviderHandle ( ) : System.Security.Cryptography.SafeProvHandle
return System.Security.Cryptography.SafeProvHandle
        private SafeProvHandle AcquireSafeProviderHandle()
        {
            SafeProvHandle safeProvHandle;
            CapiHelper.AcquireCsp(new CspParameters(CapiHelper.DefaultRsaProviderType), out safeProvHandle);
            return safeProvHandle;
        }